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());
187 return &this->m_bufferIn_InputPort[portNum];
198 return &this->m_comIn_InputPort[portNum];
209 return &this->m_comStatusIn_InputPort[portNum];
227 this->m_bufferDeallocate_OutputPort[portNum].
addCallPort(port);
241 this->m_comStatusOut_OutputPort[portNum].
addCallPort(port);
255 this->m_framedAllocate_OutputPort[portNum].
addCallPort(port);
269 this->m_framedOut_OutputPort[portNum].
addCallPort(port);
272 #if FW_PORT_SERIALIZATION
281 Fw::InputSerializePort* port
289 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
295 Fw::InputSerializePort* port
303 this->m_comStatusOut_OutputPort[portNum].registerSerialPort(port);
314 Fw::PassiveComponentBase(compName)
387 return this->m_bufferDeallocate_OutputPort[portNum].
isConnected();
398 return this->m_comStatusOut_OutputPort[portNum].
isConnected();
409 return this->m_framedAllocate_OutputPort[portNum].
isConnected();
420 return this->m_framedOut_OutputPort[portNum].
isConnected();
514 this->m_bufferDeallocate_OutputPort[portNum].
invoke(
529 this->m_comStatusOut_OutputPort[portNum].
invoke(
544 return this->m_framedAllocate_OutputPort[portNum].
invoke(
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(
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
PlatformIndexType FwIndexType
void init()
Initialization function.
Drv::SendStatus invoke(Fw::Buffer &sendBuffer)
Invoke a port interface.
void addCallPort(InputByteStreamSendPort *callPort)
Register an input port.
Status returned by the send call.
void init()
Object initializer.
const char * toChar() const
void init()
Initialization function.
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
Fw::Buffer invoke(U32 size)
Invoke a port interface.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
void invoke(Fw::Buffer &fwBuffer)
Invoke a port interface.
void init()
Initialization function.
void invoke(Fw::Success &condition)
Invoke a port interface.
void init()
Initialization function.
void addCallPort(InputSuccessConditionPort *callPort)
Register an input port.
void format(const CHAR *formatString,...)
write formatted string to buffer
void unLock()
unlock the mutex and assert success
void lock()
lock the mutex and assert success
Auto-generated base for Framer component.
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum)
Fw::InputBufferSendPort * get_bufferIn_InputPort(FwIndexType portNum)
virtual void comStatusIn_handler(FwIndexType portNum, Fw::Success &condition)=0
Handler for input port comStatusIn.
void bufferIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferIn.
virtual void unLock()
Unlock the guarded mutex.
FwIndexType getNum_framedOut_OutputPorts() const
virtual void comIn_handler(FwIndexType portNum, Fw::ComBuffer &data, U32 context)=0
Handler for input port comIn.
virtual ~FramerComponentBase()
Destroy FramerComponentBase object.
void comIn_handlerBase(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Handler base-class function for input port comIn.
void set_framedOut_OutputPort(FwIndexType portNum, Drv::InputByteStreamSendPort *port)
Connect port to framedOut[portNum].
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
FwIndexType getNum_framedAllocate_OutputPorts() const
FwIndexType getNum_comStatusOut_OutputPorts() const
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition)
Invoke output port comStatusOut.
Fw::InputSuccessConditionPort * get_comStatusIn_InputPort(FwIndexType portNum)
bool isConnected_framedOut_OutputPort(FwIndexType portNum)
Fw::InputComPort * get_comIn_InputPort(FwIndexType portNum)
void comStatusIn_handlerBase(FwIndexType portNum, Fw::Success &condition)
Handler base-class function for input port comStatusIn.
FwIndexType getNum_comStatusIn_InputPorts() const
FramerComponentBase(const char *compName="")
Construct FramerComponentBase object.
FwIndexType getNum_bufferIn_InputPorts() const
Drv::SendStatus framedOut_out(FwIndexType portNum, Fw::Buffer &sendBuffer)
Invoke output port framedOut.
FwIndexType getNum_comIn_InputPorts() const
void set_framedAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to framedAllocate[portNum].
Fw::Buffer framedAllocate_out(FwIndexType portNum, U32 size)
Invoke output port framedAllocate.
FwIndexType getNum_bufferDeallocate_OutputPorts() const
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
virtual void bufferIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferIn.
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum)
bool isConnected_framedAllocate_OutputPort(FwIndexType portNum)
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
virtual void lock()
Lock the guarded mutex.