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, fileName, priority, size);
92 #if FW_PORT_SERIALIZATION == 1
99 #if FW_PORT_TRACING == 1
107 Fw::ExternalString fileName(__fprime_ac_fileName_buffer,
sizeof __fprime_ac_fileName_buffer);
138 Fw::OutputPortBase(),
155 this->m_port = callPort;
158 #if FW_PORT_SERIALIZATION == 1
159 this->m_serPort =
nullptr;
170 #if FW_PORT_TRACING == 1
174 #if FW_PORT_SERIALIZATION
175 FW_ASSERT((this->m_port !=
nullptr) || (this->m_serPort !=
nullptr));
177 if (this->m_port !=
nullptr) {
178 this->m_port->
invoke(fileName, priority, size);
182 DpWrittenPortBuffer _buffer;
184 _status = _buffer.serialize(fileName);
187 _status = _buffer.serialize(priority);
190 _status = _buffer.serialize(size);
193 _status = this->m_serPort->invokeSerial(_buffer);
198 this->m_port->
invoke(fileName, priority, size);
uint8_t U8
8-bit unsigned integer
PlatformAssertArgType FwAssertArgType
PlatformSizeType FwSizeType
A string backed by an external buffer.
NATIVE_UINT_TYPE SizeType
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
OutputDpWrittenPort()
Constructor.
void invoke(const Fw::StringBase &fileName, FwDpPriorityType priority, FwSizeType size)
Invoke a port interface.
void addCallPort(InputDpWrittenPort *callPort)
Register an input port.
void init()
Initialization function.
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.