mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
* lestarch: adding logical types implementation into Linux/StandardTypes.hpp * lestarch: removing VxWorks StandardTypes from repository * updated fprime types for correct compilation with vxworks and baremetal * lestarch: refactoring types and configuration header w.r.t type design * lestarch: replacing usages of AssertArg with FwAssertArgType * lestarch: missspelled configuration * lestarch: minor compilation fixes * lestarch: renaming StandardTypes.hpp -> PlatformTypes.hpp * lestarch: updating PRI tokens * lestarch: replacing BasicTypes.hpp includes with FpConfig.hpp * lestarch: UT and compilation fixes for types refactor * lestarch: sp * lestarch: fixing RPI issues in PassiveConsoleTextLogger * lestarch: converting RPI build to debug * lestarch: removing duplicate config imports * lestarch: fixing documentation * lestarch: fixing up multiple definitions and RPI compilation problems * lestarch: reverting debug build * lestarch: reverting platform types to class-based constants * lestarch: reworking basic types * lestarch: configured types refactor into classes * lestarch: fixing bugs with static constants in classes * lestarch: fixing platform types spelling and documentation * lestarch: adding include guards to types headers Co-authored-by: Kevin F Ortega <kevin.f.ortega@jpl.nasa.gov>
55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
/*
|
|
* Msg1Port.hpp
|
|
*
|
|
* Created on: Monday, 09 September 2013
|
|
* Author: reder
|
|
*
|
|
*/
|
|
#ifndef MSG1PORT_HPP_
|
|
#define MSG1PORT_HPP_
|
|
|
|
#include <Fw/Cfg/FwConfig.hpp>
|
|
#include <Fw/Port/FwInputPortBase.hpp>
|
|
#include <Fw/Port/FwOutputPortBase.hpp>
|
|
#include <Fw/Comp/FwCompBase.hpp>
|
|
#include <FpConfig.hpp>
|
|
#include <Fw/Types/FwSerializable.hpp>
|
|
|
|
#include <Fw/Types/FwStringType.hpp>
|
|
|
|
|
|
namespace Ports {
|
|
|
|
class InputMsg1Port : public Fw::InputPortBase {
|
|
public:
|
|
enum {
|
|
SERIALIZED_SIZE = sizeof(U32) + sizeof(U32 *) + sizeof(U32)
|
|
};
|
|
typedef void (*CompFuncPtr)(Fw::ComponentBase* callComp, NATIVE_INT_TYPE portNum, U32 arg1, U32 *arg2, U32 &arg3);
|
|
|
|
InputMsg1Port();
|
|
void init();
|
|
void addCallComp(Fw::ComponentBase* callComp, CompFuncPtr funcPtr);
|
|
void invoke(U32 arg1, U32 *arg2, U32 &arg3);
|
|
protected:
|
|
private:
|
|
CompFuncPtr m_func;
|
|
#if FW_PORT_SERIALIZATION == 1
|
|
void invokeSerial(Fw::SerializeBufferBase &buffer);
|
|
#endif
|
|
};
|
|
|
|
class OutputMsg1Port : public Fw::OutputPortBase {
|
|
public:
|
|
OutputMsg1Port();
|
|
void init();
|
|
void addCallPort(InputMsg1Port* callPort);
|
|
void invoke(U32 arg1, U32 *arg2, U32 &arg3);
|
|
protected:
|
|
private:
|
|
InputMsg1Port* m_port;
|
|
};
|
|
};
|
|
#endif /* MSG1_HPP_ */
|
|
|