31 const U8* getBuffAddr()
const {
47 InputCmdResponsePort ::
48 InputCmdResponsePort() :
55 void InputCmdResponsePort ::
61 void InputCmdResponsePort ::
70 this->m_comp = callComp;
71 this->m_func = funcPtr;
72 this->m_connObj = callComp;
75 void InputCmdResponsePort ::
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
124 this->m_func(this->m_comp, this->m_portNum, opCode, cmdSeq, response);
135 OutputCmdResponsePort ::
136 OutputCmdResponsePort() :
143 void OutputCmdResponsePort ::
149 void OutputCmdResponsePort ::
154 this->m_port = callPort;
155 this->m_connObj = callPort;
157#if FW_PORT_SERIALIZATION == 1
158 this->m_serPort =
nullptr;
162 void OutputCmdResponsePort ::
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.
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.