31 const U8* getBuffAddr()
const {
71 this->m_func = funcPtr;
82 #if FW_PORT_TRACING == 1
89 return this->m_func(this->
m_comp, this->
m_portNum, opCode, cmdSeq, response);
92 #if FW_PORT_SERIALIZATION == 1
99 #if FW_PORT_TRACING == 1
154 this->m_port = callPort;
157 #if FW_PORT_SERIALIZATION == 1
158 this->m_serPort =
nullptr;
169 #if FW_PORT_TRACING == 1
173 #if FW_PORT_SERIALIZATION
174 FW_ASSERT((this->m_port !=
nullptr) || (this->m_serPort !=
nullptr));
176 if (this->m_port !=
nullptr) {
177 this->m_port->
invoke(opCode, cmdSeq, response);
181 CmdResponsePortBuffer _buffer;
183 _status = _buffer.serialize(opCode);
186 _status = _buffer.serialize(cmdSeq);
189 _status = _buffer.serialize(response);
192 _status = this->m_serPort->invokeSerial(_buffer);
197 this->m_port->
invoke(opCode, cmdSeq, response);
uint8_t U8
8-bit unsigned integer
PlatformAssertArgType FwAssertArgType
Enum representing a command response.
void init()
Initialization function.
void addCallPort(InputCmdResponsePort *callPort)
Register an input port.
OutputCmdResponsePort()
Constructor.
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Invoke a port interface.
NATIVE_UINT_TYPE SizeType
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.