9 #if FW_ENABLE_TEXT_LOGGING 28 #if !FW_DIRECT_PORT_CALLS 35 this->m_comStatusIn_InputPort[port].
init();
40 this->m_comStatusIn_InputPort[port].
setPortNum(port);
42 #if FW_OBJECT_NAMES == 1 46 this->m_objName.toChar(),
49 this->m_comStatusIn_InputPort[port].setObjName(portName.
toChar());
54 #if !FW_DIRECT_PORT_CALLS 61 this->m_dataIn_InputPort[port].
init();
66 this->m_dataIn_InputPort[port].
setPortNum(port);
68 #if FW_OBJECT_NAMES == 1 72 this->m_objName.toChar(),
75 this->m_dataIn_InputPort[port].setObjName(portName.
toChar());
80 #if !FW_DIRECT_PORT_CALLS 87 this->m_dataReturnIn_InputPort[port].
init();
92 this->m_dataReturnIn_InputPort[port].
setPortNum(port);
94 #if FW_OBJECT_NAMES == 1 98 this->m_objName.toChar(),
101 this->m_dataReturnIn_InputPort[port].setObjName(portName.
toChar());
106 #if !FW_DIRECT_PORT_CALLS 113 this->m_logOut_OutputPort[port].
init();
115 #if FW_OBJECT_NAMES == 1 119 this->m_objName.toChar(),
122 this->m_logOut_OutputPort[port].setObjName(portName.
toChar());
127 #if !FW_DIRECT_PORT_CALLS && FW_ENABLE_TEXT_LOGGING 131 port < static_cast<FwIndexType>(this->getNum_logTextOut_OutputPorts());
134 this->m_logTextOut_OutputPort[port].
init();
136 #if FW_OBJECT_NAMES == 1 140 this->m_objName.toChar(),
143 this->m_logTextOut_OutputPort[port].setObjName(portName.
toChar());
148 #if !FW_DIRECT_PORT_CALLS 155 this->m_prmGetOut_OutputPort[port].
init();
157 #if FW_OBJECT_NAMES == 1 161 this->m_objName.toChar(),
164 this->m_prmGetOut_OutputPort[port].setObjName(portName.
toChar());
169 #if !FW_DIRECT_PORT_CALLS 176 this->m_prmSetOut_OutputPort[port].
init();
178 #if FW_OBJECT_NAMES == 1 182 this->m_objName.toChar(),
185 this->m_prmSetOut_OutputPort[port].setObjName(portName.
toChar());
190 #if !FW_DIRECT_PORT_CALLS 197 this->m_timeCaller_OutputPort[port].
init();
199 #if FW_OBJECT_NAMES == 1 203 this->m_objName.toChar(),
206 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
211 #if !FW_DIRECT_PORT_CALLS 218 this->m_tlmOut_OutputPort[port].
init();
220 #if FW_OBJECT_NAMES == 1 224 this->m_objName.toChar(),
227 this->m_tlmOut_OutputPort[port].setObjName(portName.
toChar());
232 #if !FW_DIRECT_PORT_CALLS 239 this->m_comStatusOut_OutputPort[port].
init();
241 #if FW_OBJECT_NAMES == 1 245 this->m_objName.toChar(),
248 this->m_comStatusOut_OutputPort[port].setObjName(portName.
toChar());
253 #if !FW_DIRECT_PORT_CALLS 260 this->m_dataOut_OutputPort[port].
init();
262 #if FW_OBJECT_NAMES == 1 266 this->m_objName.toChar(),
269 this->m_dataOut_OutputPort[port].setObjName(portName.
toChar());
274 #if !FW_DIRECT_PORT_CALLS 281 this->m_dataReturnOut_OutputPort[port].
init();
283 #if FW_OBJECT_NAMES == 1 287 this->m_objName.toChar(),
290 this->m_dataReturnOut_OutputPort[port].setObjName(portName.
toChar());
296 #if !FW_DIRECT_PORT_CALLS 307 static_cast<FwAssertArgType>(portNum)
310 return &this->m_comStatusIn_InputPort[portNum];
318 static_cast<FwAssertArgType>(portNum)
321 return &this->m_dataIn_InputPort[portNum];
329 static_cast<FwAssertArgType>(portNum)
332 return &this->m_dataReturnIn_InputPort[portNum];
337 #if !FW_DIRECT_PORT_CALLS 351 static_cast<FwAssertArgType>(portNum)
354 this->m_logOut_OutputPort[portNum].
addCallPort(port);
357 #if FW_ENABLE_TEXT_LOGGING == 1 359 void AosFramerComponentBase ::
360 set_logTextOut_OutputPort(
366 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
367 static_cast<FwAssertArgType>(portNum)
370 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
383 static_cast<FwAssertArgType>(portNum)
386 this->m_prmGetOut_OutputPort[portNum].
addCallPort(port);
397 static_cast<FwAssertArgType>(portNum)
400 this->m_prmSetOut_OutputPort[portNum].
addCallPort(port);
411 static_cast<FwAssertArgType>(portNum)
414 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
425 static_cast<FwAssertArgType>(portNum)
428 this->m_tlmOut_OutputPort[portNum].
addCallPort(port);
433 #if !FW_DIRECT_PORT_CALLS 447 static_cast<FwAssertArgType>(portNum)
450 this->m_comStatusOut_OutputPort[portNum].
addCallPort(port);
461 static_cast<FwAssertArgType>(portNum)
464 this->m_dataOut_OutputPort[portNum].
addCallPort(port);
475 static_cast<FwAssertArgType>(portNum)
478 this->m_dataReturnOut_OutputPort[portNum].
addCallPort(port);
483 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 492 Fw::InputSerializePort* port
497 static_cast<FwAssertArgType>(portNum)
500 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
503 #if FW_ENABLE_TEXT_LOGGING == 1 505 void AosFramerComponentBase ::
506 set_logTextOut_OutputPort(
508 Fw::InputSerializePort* port
512 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
513 static_cast<FwAssertArgType>(portNum)
516 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
524 Fw::InputSerializePort* port
529 static_cast<FwAssertArgType>(portNum)
532 this->m_prmSetOut_OutputPort[portNum].registerSerialPort(port);
538 Fw::InputSerializePort* port
543 static_cast<FwAssertArgType>(portNum)
546 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
552 Fw::InputSerializePort* port
557 static_cast<FwAssertArgType>(portNum)
560 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
565 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 574 Fw::InputSerializePort* port
579 static_cast<FwAssertArgType>(portNum)
582 this->m_comStatusOut_OutputPort[portNum].registerSerialPort(port);
588 Fw::InputSerializePort* port
593 static_cast<FwAssertArgType>(portNum)
596 this->m_dataOut_OutputPort[portNum].registerSerialPort(port);
602 Fw::InputSerializePort* port
607 static_cast<FwAssertArgType>(portNum)
610 this->m_dataReturnOut_OutputPort[portNum].registerSerialPort(port);
621 Fw::PassiveComponentBase(compName)
632 #if !FW_DIRECT_PORT_CALLS 643 static_cast<FwAssertArgType>(portNum)
646 return this->m_logOut_OutputPort[portNum].
isConnected();
649 #if FW_ENABLE_TEXT_LOGGING == 1 651 bool AosFramerComponentBase ::
652 isConnected_logTextOut_OutputPort(
FwIndexType portNum)
const 655 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
656 static_cast<FwAssertArgType>(portNum)
659 return this->m_logTextOut_OutputPort[portNum].isConnected();
669 static_cast<FwAssertArgType>(portNum)
672 return this->m_prmGetOut_OutputPort[portNum].
isConnected();
680 static_cast<FwAssertArgType>(portNum)
683 return this->m_prmSetOut_OutputPort[portNum].
isConnected();
691 static_cast<FwAssertArgType>(portNum)
694 return this->m_timeCaller_OutputPort[portNum].
isConnected();
702 static_cast<FwAssertArgType>(portNum)
705 return this->m_tlmOut_OutputPort[portNum].
isConnected();
710 #if !FW_DIRECT_PORT_CALLS 721 static_cast<FwAssertArgType>(portNum)
724 return this->m_comStatusOut_OutputPort[portNum].
isConnected();
732 static_cast<FwAssertArgType>(portNum)
735 return this->m_dataOut_OutputPort[portNum].
isConnected();
743 static_cast<FwAssertArgType>(portNum)
746 return this->m_dataReturnOut_OutputPort[portNum].
isConnected();
766 static_cast<FwAssertArgType>(portNum)
786 static_cast<FwAssertArgType>(portNum)
807 static_cast<FwAssertArgType>(portNum)
818 #if !FW_DIRECT_PORT_CALLS 832 static_cast<FwAssertArgType>(portNum)
836 this->m_comStatusOut_OutputPort[portNum].isConnected(),
837 static_cast<FwAssertArgType>(portNum)
839 this->m_comStatusOut_OutputPort[portNum].
invoke(
853 static_cast<FwAssertArgType>(portNum)
857 this->m_dataOut_OutputPort[portNum].isConnected(),
858 static_cast<FwAssertArgType>(portNum)
860 this->m_dataOut_OutputPort[portNum].
invoke(
875 static_cast<FwAssertArgType>(portNum)
879 this->m_dataReturnOut_OutputPort[portNum].isConnected(),
880 static_cast<FwAssertArgType>(portNum)
882 this->m_dataReturnOut_OutputPort[portNum].
invoke(
899 this->timeCaller_out(0, _time);
911 void AosFramerComponentBase ::
926 void AosFramerComponentBase ::
936 compPtr->dataIn_handlerBase(
943 void AosFramerComponentBase ::
953 compPtr->dataReturnIn_handlerBase(
960 #if !FW_DIRECT_PORT_CALLS 966 void AosFramerComponentBase ::
974 static_cast<FwAssertArgType>(portNum)
978 this->m_timeCaller_OutputPort[portNum].isConnected(),
979 static_cast<FwAssertArgType>(portNum)
981 this->m_timeCaller_OutputPort[portNum].
invoke(
void set_prmGetOut_OutputPort(FwIndexType portNum, Fw::InputPrmGetPort *port)
Connect port to prmGetOut[portNum].
void addCallPort(InputTimePort *callPort)
Register an input port.
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
static constexpr FwIndexType getNum_prmGetOut_OutputPorts()
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
bool isConnected_dataOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_comStatusOut_OutputPorts()
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
static constexpr FwIndexType getNum_dataReturnIn_InputPorts()
static constexpr FwIndexType getNum_comStatusIn_InputPorts()
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
void comStatusIn_handlerBase(FwIndexType portNum, Fw::Success &condition)
Handler base-class function for input port comStatusIn.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataOut.
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
virtual void comStatusIn_handler(FwIndexType portNum, Fw::Success &condition)=0
Handler for input port comStatusIn.
void addCallPort(InputPrmSetPort *callPort)
Register an input port.
Auto-generated base for AosFramer component.
virtual ~AosFramerComponentBase()
Destroy AosFramerComponentBase object.
void init()
Initialization function.
No time base has been established (Required)
void addCallPort(InputSuccessConditionPort *callPort)
Register an input port.
static constexpr FwIndexType getNum_logOut_OutputPorts()
bool isConnected_prmSetOut_OutputPort(FwIndexType portNum) const
void init()
Initialization function.
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition) const
Invoke output port comStatusOut.
void addCallPort(InputComDataWithContextPort *callPort)
Register an input port.
void addCallPort(InputTlmPort *callPort)
Register an input port.
void addCallPort(InputPrmGetPort *callPort)
Register an input port.
void init()
Object initializer.
virtual void dataReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataReturnIn.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataReturnOut.
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
static constexpr FwIndexType getNum_prmSetOut_OutputPorts()
bool isConnected_tlmOut_OutputPort(FwIndexType portNum) const
void init()
Initialization function.
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void set_prmSetOut_OutputPort(FwIndexType portNum, Fw::InputPrmSetPort *port)
Connect port to prmSetOut[portNum].
static constexpr FwIndexType getNum_tlmOut_OutputPorts()
bool isConnected_prmGetOut_OutputPort(FwIndexType portNum) const
Svc::InputComDataWithContextPort * get_dataReturnIn_InputPort(FwIndexType portNum)
void invoke(Fw::Time &time) const
Invoke a port connection.
const char * toChar() const
Convert to a C-style char*.
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum) const
void invoke(Fw::Success &condition) const
Invoke a port connection.
void invoke(Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port connection.
void init()
Initialization function.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
static constexpr FwIndexType getNum_dataOut_OutputPorts()
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_dataIn_InputPorts()
void init()
Initialization function.
Fw::InputSuccessConditionPort * get_comStatusIn_InputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
PlatformIndexType FwIndexType
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void addCallPort(InputLogPort *callPort)
Register an input port.
AosFramerComponentBase(const char *compName="")
Construct AosFramerComponentBase object.
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
Implementation of malloc based allocator.
bool isConnected_logOut_OutputPort(FwIndexType portNum) const
void init()
Initialization function.
void init()
Initialization function.