10 #if FW_ENABLE_TEXT_LOGGING 32 this->m_bufferIn_InputPort[port].
init();
37 this->m_bufferIn_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1 43 this->m_objName.toChar(),
46 this->m_bufferIn_InputPort[port].setObjName(portName.
toChar());
56 this->m_comIn_InputPort[port].
init();
61 this->m_comIn_InputPort[port].
setPortNum(port);
63 #if FW_OBJECT_NAMES == 1 67 this->m_objName.toChar(),
70 this->m_comIn_InputPort[port].setObjName(portName.
toChar());
80 this->m_comStatusIn_InputPort[port].
init();
85 this->m_comStatusIn_InputPort[port].
setPortNum(port);
87 #if FW_OBJECT_NAMES == 1 91 this->m_objName.toChar(),
94 this->m_comStatusIn_InputPort[port].setObjName(portName.
toChar());
104 this->m_bufferDeallocate_OutputPort[port].
init();
106 #if FW_OBJECT_NAMES == 1 110 this->m_objName.toChar(),
113 this->m_bufferDeallocate_OutputPort[port].setObjName(portName.
toChar());
123 this->m_comStatusOut_OutputPort[port].
init();
125 #if FW_OBJECT_NAMES == 1 129 this->m_objName.toChar(),
132 this->m_comStatusOut_OutputPort[port].setObjName(portName.
toChar());
142 this->m_framedAllocate_OutputPort[port].
init();
144 #if FW_OBJECT_NAMES == 1 148 this->m_objName.toChar(),
151 this->m_framedAllocate_OutputPort[port].setObjName(portName.
toChar());
161 this->m_framedOut_OutputPort[port].
init();
163 #if FW_OBJECT_NAMES == 1 167 this->m_objName.toChar(),
170 this->m_framedOut_OutputPort[port].setObjName(portName.
toChar());
184 static_cast<FwAssertArgType>(portNum)
187 return &this->m_bufferIn_InputPort[portNum];
195 static_cast<FwAssertArgType>(portNum)
198 return &this->m_comIn_InputPort[portNum];
206 static_cast<FwAssertArgType>(portNum)
209 return &this->m_comStatusIn_InputPort[portNum];
224 static_cast<FwAssertArgType>(portNum)
227 this->m_bufferDeallocate_OutputPort[portNum].
addCallPort(port);
238 static_cast<FwAssertArgType>(portNum)
241 this->m_comStatusOut_OutputPort[portNum].
addCallPort(port);
252 static_cast<FwAssertArgType>(portNum)
255 this->m_framedAllocate_OutputPort[portNum].
addCallPort(port);
266 static_cast<FwAssertArgType>(portNum)
269 this->m_framedOut_OutputPort[portNum].
addCallPort(port);
272 #if FW_PORT_SERIALIZATION 281 Fw::InputSerializePort* port
286 static_cast<FwAssertArgType>(portNum)
289 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
295 Fw::InputSerializePort* port
300 static_cast<FwAssertArgType>(portNum)
303 this->m_comStatusOut_OutputPort[portNum].registerSerialPort(port);
314 Fw::PassiveComponentBase(compName)
384 static_cast<FwAssertArgType>(portNum)
387 return this->m_bufferDeallocate_OutputPort[portNum].
isConnected();
395 static_cast<FwAssertArgType>(portNum)
398 return this->m_comStatusOut_OutputPort[portNum].
isConnected();
406 static_cast<FwAssertArgType>(portNum)
409 return this->m_framedAllocate_OutputPort[portNum].
isConnected();
417 static_cast<FwAssertArgType>(portNum)
420 return this->m_framedOut_OutputPort[portNum].
isConnected();
438 static_cast<FwAssertArgType>(portNum)
464 static_cast<FwAssertArgType>(portNum)
490 static_cast<FwAssertArgType>(portNum)
512 static_cast<FwAssertArgType>(portNum)
514 this->m_bufferDeallocate_OutputPort[portNum].
invoke(
527 static_cast<FwAssertArgType>(portNum)
529 this->m_comStatusOut_OutputPort[portNum].
invoke(
542 static_cast<FwAssertArgType>(portNum)
544 return this->m_framedAllocate_OutputPort[portNum].
invoke(
557 static_cast<FwAssertArgType>(portNum)
559 return this->m_framedOut_OutputPort[portNum].
invoke(
574 this->m_guardedPortMutex.
lock();
580 this->m_guardedPortMutex.
unLock();
587 void FramerComponentBase ::
602 void FramerComponentBase ::
612 compPtr->comIn_handlerBase(
619 void FramerComponentBase ::
628 compPtr->comStatusIn_handlerBase(
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition)
Invoke output port comStatusOut.
virtual void comIn_handler(FwIndexType portNum, Fw::ComBuffer &data, U32 context)=0
Handler for input port comIn.
virtual void comStatusIn_handler(FwIndexType portNum, Fw::Success &condition)=0
Handler for input port comStatusIn.
Fw::Buffer invoke(U32 size) const
Invoke a port interface.
void bufferIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferIn.
virtual void lock()
Lock the guarded mutex.
void unLock()
unlock the mutex and assert success
PlatformIndexType FwIndexType
void addCallPort(InputSuccessConditionPort *callPort)
Register an input port.
Drv::SendStatus framedOut_out(FwIndexType portNum, Fw::Buffer &sendBuffer)
Invoke output port framedOut.
void init()
Object initializer.
virtual void bufferIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferIn.
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
Fw::InputBufferSendPort * get_bufferIn_InputPort(FwIndexType portNum)
Auto-generated base for Framer component.
bool isConnected_framedAllocate_OutputPort(FwIndexType portNum)
FramerComponentBase(const char *compName="")
Construct FramerComponentBase object.
FwIndexType getNum_bufferDeallocate_OutputPorts() const
FwIndexType getNum_comIn_InputPorts() const
FwIndexType getNum_framedOut_OutputPorts() const
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
const char * toChar() const
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
void invoke(Fw::Success &condition) const
Invoke a port interface.
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum)
Fw::Buffer framedAllocate_out(FwIndexType portNum, U32 size)
Invoke output port framedAllocate.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
#define PRI_PlatformIntType
virtual ~FramerComponentBase()
Destroy FramerComponentBase object.
virtual void unLock()
Unlock the guarded mutex.
Status returned by the send call.
FwIndexType getNum_bufferIn_InputPorts() const
void init()
Initialization function.
FwIndexType getNum_framedAllocate_OutputPorts() const
bool isConnected_framedOut_OutputPort(FwIndexType portNum)
FwIndexType getNum_comStatusOut_OutputPorts() const
void set_framedAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to framedAllocate[portNum].
void init()
Initialization function.
void comStatusIn_handlerBase(FwIndexType portNum, Fw::Success &condition)
Handler base-class function for input port comStatusIn.
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void addCallPort(InputByteStreamSendPort *callPort)
Register an input port.
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum)
void init()
Initialization function.
void set_framedOut_OutputPort(FwIndexType portNum, Drv::InputByteStreamSendPort *port)
Connect port to framedOut[portNum].
FwIndexType getNum_comStatusIn_InputPorts() const
Fw::InputComPort * get_comIn_InputPort(FwIndexType portNum)
void comIn_handlerBase(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Handler base-class function for input port comIn.
Fw::InputSuccessConditionPort * get_comStatusIn_InputPort(FwIndexType portNum)
Drv::SendStatus invoke(Fw::Buffer &sendBuffer) const
Invoke a port interface.
void init()
Initialization function.
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
void lock()
lock the mutex and assert success