31 const U8* getBuffAddr()
const {
71 this->m_func = funcPtr;
83 #if FW_PORT_TRACING == 1
90 return this->m_func(this->
m_comp, this->
m_portNum,
id, timeTag, severity, text);
93 #if FW_PORT_SERIALIZATION == 1
100 #if FW_PORT_TRACING == 1
131 this->m_func(this->
m_comp, this->
m_portNum,
id, timeTag, severity, text);
161 this->m_port = callPort;
164 #if FW_PORT_SERIALIZATION == 1
165 this->m_serPort =
nullptr;
177 #if FW_PORT_TRACING == 1
181 #if FW_PORT_SERIALIZATION
182 FW_ASSERT((this->m_port !=
nullptr) || (this->m_serPort !=
nullptr));
184 if (this->m_port !=
nullptr) {
185 this->m_port->
invoke(
id, timeTag, severity, text);
189 LogTextPortBuffer _buffer;
191 _status = _buffer.serialize(
id);
194 _status = _buffer.serialize(timeTag);
197 _status = _buffer.serialize(severity);
200 _status = _buffer.serialize(text);
203 _status = this->m_serPort->invokeSerial(_buffer);
208 this->m_port->
invoke(
id, timeTag, severity, text);
uint8_t U8
8-bit unsigned integer
PlatformAssertArgType FwAssertArgType
InputLogTextPort()
Constructor.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::TextLogString &text)
Invoke a port interface.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void init()
Initialization function.
@ SERIALIZED_SIZE
The size of the serial representations of the port arguments.
Enum representing event severity.
void init()
Initialization function.
void addCallPort(InputLogTextPort *callPort)
Register an input port.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::TextLogString &text)
Invoke a port interface.
OutputLogTextPort()
Constructor.
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.