9 #if FW_ENABLE_TEXT_LOGGING 34 class ComponentIpcSerializableBuffer :
44 MAX_DATA_SIZE =
sizeof(BuffUnion),
46 SERIALIZATION_SIZE = DATA_OFFSET + MAX_DATA_SIZE
49 ComponentIpcSerializableBuffer() :
Fw::LinearBufferBase(m_buff, sizeof(m_buff)) {
55 U8 m_buff[SERIALIZATION_SIZE];
73 #if !FW_DIRECT_PORT_CALLS 80 this->m_cmdIn_InputPort[port].
init();
85 this->m_cmdIn_InputPort[port].
setPortNum(port);
87 #if FW_OBJECT_NAMES == 1 91 this->m_objName.toChar(),
94 this->m_cmdIn_InputPort[port].setObjName(portName.
toChar());
99 #if !FW_DIRECT_PORT_CALLS 106 this->m_comIn_InputPort[port].
init();
111 this->m_comIn_InputPort[port].
setPortNum(port);
113 #if FW_OBJECT_NAMES == 1 117 this->m_objName.toChar(),
120 this->m_comIn_InputPort[port].setObjName(portName.
toChar());
125 #if !FW_DIRECT_PORT_CALLS 132 this->m_pingIn_InputPort[port].
init();
137 this->m_pingIn_InputPort[port].
setPortNum(port);
139 #if FW_OBJECT_NAMES == 1 143 this->m_objName.toChar(),
146 this->m_pingIn_InputPort[port].setObjName(portName.
toChar());
151 #if !FW_DIRECT_PORT_CALLS && FW_ENABLE_TEXT_LOGGING 155 port < static_cast<FwIndexType>(this->getNum_LogText_OutputPorts());
158 this->m_LogText_OutputPort[port].
init();
160 #if FW_OBJECT_NAMES == 1 164 this->m_objName.toChar(),
167 this->m_LogText_OutputPort[port].setObjName(portName.
toChar());
172 #if !FW_DIRECT_PORT_CALLS 179 this->m_cmdRegOut_OutputPort[port].
init();
181 #if FW_OBJECT_NAMES == 1 185 this->m_objName.toChar(),
188 this->m_cmdRegOut_OutputPort[port].setObjName(portName.
toChar());
193 #if !FW_DIRECT_PORT_CALLS 200 this->m_cmdResponseOut_OutputPort[port].
init();
202 #if FW_OBJECT_NAMES == 1 206 this->m_objName.toChar(),
209 this->m_cmdResponseOut_OutputPort[port].setObjName(portName.
toChar());
214 #if !FW_DIRECT_PORT_CALLS 221 this->m_logOut_OutputPort[port].
init();
223 #if FW_OBJECT_NAMES == 1 227 this->m_objName.toChar(),
230 this->m_logOut_OutputPort[port].setObjName(portName.
toChar());
235 #if !FW_DIRECT_PORT_CALLS 242 this->m_timeCaller_OutputPort[port].
init();
244 #if FW_OBJECT_NAMES == 1 248 this->m_objName.toChar(),
251 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
256 #if !FW_DIRECT_PORT_CALLS 263 this->m_pingOut_OutputPort[port].
init();
265 #if FW_OBJECT_NAMES == 1 269 this->m_objName.toChar(),
272 this->m_pingOut_OutputPort[port].setObjName(portName.
toChar());
280 static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
284 static_cast<FwAssertArgType>(qStat)
288 #if !FW_DIRECT_PORT_CALLS 299 static_cast<FwAssertArgType>(portNum)
302 return &this->m_cmdIn_InputPort[portNum];
307 #if !FW_DIRECT_PORT_CALLS 318 static_cast<FwAssertArgType>(portNum)
321 return &this->m_comIn_InputPort[portNum];
329 static_cast<FwAssertArgType>(portNum)
332 return &this->m_pingIn_InputPort[portNum];
337 #if !FW_DIRECT_PORT_CALLS 343 #if FW_ENABLE_TEXT_LOGGING == 1 345 void ComLoggerComponentBase ::
346 set_LogText_OutputPort(
352 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
353 static_cast<FwAssertArgType>(portNum)
356 this->m_LogText_OutputPort[portNum].addCallPort(port);
369 static_cast<FwAssertArgType>(portNum)
372 this->m_cmdRegOut_OutputPort[portNum].
addCallPort(port);
383 static_cast<FwAssertArgType>(portNum)
386 this->m_cmdResponseOut_OutputPort[portNum].
addCallPort(port);
397 static_cast<FwAssertArgType>(portNum)
400 this->m_logOut_OutputPort[portNum].
addCallPort(port);
411 static_cast<FwAssertArgType>(portNum)
414 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
419 #if !FW_DIRECT_PORT_CALLS 433 static_cast<FwAssertArgType>(portNum)
436 this->m_pingOut_OutputPort[portNum].
addCallPort(port);
441 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 447 #if FW_ENABLE_TEXT_LOGGING == 1 449 void ComLoggerComponentBase ::
450 set_LogText_OutputPort(
452 Fw::InputSerializePort* port
456 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
457 static_cast<FwAssertArgType>(portNum)
460 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
468 Fw::InputSerializePort* port
473 static_cast<FwAssertArgType>(portNum)
476 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
482 Fw::InputSerializePort* port
487 static_cast<FwAssertArgType>(portNum)
490 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
496 Fw::InputSerializePort* port
501 static_cast<FwAssertArgType>(portNum)
504 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
510 Fw::InputSerializePort* port
515 static_cast<FwAssertArgType>(portNum)
518 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
523 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 532 Fw::InputSerializePort* port
537 static_cast<FwAssertArgType>(portNum)
540 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
566 Fw::ActiveComponentBase(compName)
568 this->m_FileNotInitializedThrottle = 0;
577 #if !FW_DIRECT_PORT_CALLS 583 #if FW_ENABLE_TEXT_LOGGING == 1 585 bool ComLoggerComponentBase ::
586 isConnected_LogText_OutputPort(
FwIndexType portNum)
const 589 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
590 static_cast<FwAssertArgType>(portNum)
593 return this->m_LogText_OutputPort[portNum].isConnected();
603 static_cast<FwAssertArgType>(portNum)
606 return this->m_cmdRegOut_OutputPort[portNum].
isConnected();
614 static_cast<FwAssertArgType>(portNum)
617 return this->m_cmdResponseOut_OutputPort[portNum].
isConnected();
625 static_cast<FwAssertArgType>(portNum)
628 return this->m_logOut_OutputPort[portNum].
isConnected();
636 static_cast<FwAssertArgType>(portNum)
639 return this->m_timeCaller_OutputPort[portNum].
isConnected();
644 #if !FW_DIRECT_PORT_CALLS 655 static_cast<FwAssertArgType>(portNum)
658 return this->m_pingOut_OutputPort[portNum].
isConnected();
679 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
682 switch (opCode - idBase) {
713 static_cast<FwAssertArgType>(portNum)
722 ComponentIpcSerializableBuffer msg;
726 _status = msg.serializeFrom(
727 static_cast<FwEnumStoreType>(COMIN_COM)
731 static_cast<FwAssertArgType>(_status)
735 _status = msg.serializeFrom(portNum);
738 static_cast<FwAssertArgType>(_status)
742 _status = msg.serializeFrom(data);
745 static_cast<FwAssertArgType>(_status)
749 _status = msg.serializeFrom(context);
752 static_cast<FwAssertArgType>(_status)
761 static_cast<FwAssertArgType>(qStatus)
774 static_cast<FwAssertArgType>(portNum)
782 ComponentIpcSerializableBuffer msg;
786 _status = msg.serializeFrom(
787 static_cast<FwEnumStoreType>(PINGIN_PING)
791 static_cast<FwAssertArgType>(_status)
795 _status = msg.serializeFrom(portNum);
798 static_cast<FwAssertArgType>(_status)
802 _status = msg.serializeFrom(key);
805 static_cast<FwAssertArgType>(_status)
812 if (qStatus == Os::Queue::Status::FULL) {
819 static_cast<FwAssertArgType>(qStatus)
850 #if !FW_DIRECT_PORT_CALLS 864 static_cast<FwAssertArgType>(portNum)
868 this->m_pingOut_OutputPort[portNum].isConnected(),
869 static_cast<FwAssertArgType>(portNum)
871 this->m_pingOut_OutputPort[portNum].
invoke(
890 this->cmdResponseOut_out(0, opCode, cmdSeq, response);
911 ComponentIpcSerializableBuffer msg;
915 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_CLOSEFILE));
918 static_cast<FwAssertArgType>(_status)
924 _status = msg.serializeFrom(port);
927 static_cast<FwAssertArgType>(_status)
930 _status = msg.serializeFrom(opCode);
933 static_cast<FwAssertArgType>(_status)
936 _status = msg.serializeFrom(cmdSeq);
939 static_cast<FwAssertArgType>(_status)
942 _status = msg.serializeFrom(args);
945 static_cast<FwAssertArgType>(_status)
954 static_cast<FwAssertArgType>(qStatus)
990 this->timeCaller_out(0, _logTime);
1000 #if FW_AMPCS_COMPATIBLE 1005 static_cast<FwAssertArgType>(_status)
1009 #if FW_AMPCS_COMPATIBLE 1012 static_cast<U8>(
sizeof(U32))
1016 static_cast<FwAssertArgType>(_status)
1022 static_cast<FwAssertArgType>(_status)
1031 static_cast<FwAssertArgType>(_status)
1044 #if FW_ENABLE_TEXT_LOGGING 1045 if (this->isConnected_LogText_OutputPort(0)) {
1046 #if FW_OBJECT_NAMES == 1 1047 const char* _formatString =
1048 "(%s) %s: Error %" PRIu32
" opening file %s";
1050 const char* _formatString =
1051 "%s: Error %" PRIu32
" opening file %s";
1055 (void) _logString.
format(
1058 this->m_objName.toChar(),
1087 this->timeCaller_out(0, _logTime);
1097 #if FW_AMPCS_COMPATIBLE 1102 static_cast<FwAssertArgType>(_status)
1106 #if FW_AMPCS_COMPATIBLE 1109 static_cast<U8>(
sizeof(U32))
1113 static_cast<FwAssertArgType>(_status)
1119 static_cast<FwAssertArgType>(_status)
1122 #if FW_AMPCS_COMPATIBLE 1125 static_cast<U8>(
sizeof(U32))
1129 static_cast<FwAssertArgType>(_status)
1135 static_cast<FwAssertArgType>(_status)
1138 #if FW_AMPCS_COMPATIBLE 1141 static_cast<U8>(
sizeof(U32))
1145 static_cast<FwAssertArgType>(_status)
1151 static_cast<FwAssertArgType>(_status)
1160 static_cast<FwAssertArgType>(_status)
1173 #if FW_ENABLE_TEXT_LOGGING 1174 if (this->isConnected_LogText_OutputPort(0)) {
1175 #if FW_OBJECT_NAMES == 1 1176 const char* _formatString =
1177 "(%s) %s: Error %" PRIu32
" while writing %" PRIu32
" of %" PRIu32
" bytes to %s";
1179 const char* _formatString =
1180 "%s: Error %" PRIu32
" while writing %" PRIu32
" of %" PRIu32
" bytes to %s";
1184 (void) _logString.
format(
1187 this->m_objName.toChar(),
1217 this->timeCaller_out(0, _logTime);
1227 #if FW_AMPCS_COMPATIBLE 1232 static_cast<FwAssertArgType>(_status)
1242 static_cast<FwAssertArgType>(_status)
1251 static_cast<FwAssertArgType>(_status)
1254 #if FW_AMPCS_COMPATIBLE 1257 static_cast<U8>(
sizeof(U32))
1261 static_cast<FwAssertArgType>(_status)
1267 static_cast<FwAssertArgType>(_status)
1280 #if FW_ENABLE_TEXT_LOGGING 1281 if (this->isConnected_LogText_OutputPort(0)) {
1282 #if FW_OBJECT_NAMES == 1 1283 const char* _formatString =
1284 "(%s) %s: The ComLogger failed to create a validation file %s for %s with error %" PRIu32
".";
1286 const char* _formatString =
1287 "%s: The ComLogger failed to create a validation file %s for %s with error %" PRIu32
".";
1291 (void) _logString.
format(
1294 this->m_objName.toChar(),
1296 "FileValidationError ",
1319 this->timeCaller_out(0, _logTime);
1329 #if FW_AMPCS_COMPATIBLE 1334 static_cast<FwAssertArgType>(_status)
1344 static_cast<FwAssertArgType>(_status)
1357 #if FW_ENABLE_TEXT_LOGGING 1358 if (this->isConnected_LogText_OutputPort(0)) {
1359 #if FW_OBJECT_NAMES == 1 1360 const char* _formatString =
1361 "(%s) %s: File %s closed successfully.";
1363 const char* _formatString =
1364 "%s: File %s closed successfully.";
1368 (void) _logString.
format(
1371 this->m_objName.toChar(),
1396 this->m_FileNotInitializedThrottle++;
1402 this->timeCaller_out(0, _logTime);
1411 #if FW_AMPCS_COMPATIBLE 1417 static_cast<FwAssertArgType>(_status)
1431 #if FW_ENABLE_TEXT_LOGGING 1432 if (this->isConnected_LogText_OutputPort(0)) {
1433 #if FW_OBJECT_NAMES == 1 1434 const char* _formatString =
1435 "(%s) %s: Could not open ComLogger file. File not initialized";
1437 const char* _formatString =
1438 "%s: Could not open ComLogger file. File not initialized";
1442 (void) _logString.
format(
1445 this->m_objName.toChar(),
1447 "FileNotInitialized " 1469 this->m_FileNotInitializedThrottle = 0;
1481 this->timeCaller_out(0, _time);
1496 ComponentIpcSerializableBuffer _msg;
1506 static_cast<FwAssertArgType>(_msgStatus)
1516 static_cast<FwAssertArgType>(_deserStatus)
1519 MsgTypeEnum _msgType =
static_cast<MsgTypeEnum
>(_desMsg);
1521 if (_msgType == COMLOGGER_COMPONENT_EXIT) {
1526 _deserStatus = _msg.deserializeTo(portNum);
1529 static_cast<FwAssertArgType>(_deserStatus)
1537 _deserStatus = _msg.deserializeTo(data);
1540 static_cast<FwAssertArgType>(_deserStatus)
1545 _deserStatus = _msg.deserializeTo(context);
1548 static_cast<FwAssertArgType>(_deserStatus)
1564 _deserStatus = _msg.deserializeTo(key);
1567 static_cast<FwAssertArgType>(_deserStatus)
1579 case CMD_CLOSEFILE: {
1582 _deserStatus = _msg.deserializeTo(_opCode);
1585 static_cast<FwAssertArgType>(_deserStatus)
1590 _deserStatus = _msg.deserializeTo(_cmdSeq);
1593 static_cast<FwAssertArgType>(_deserStatus)
1598 _deserStatus = _msg.deserializeTo(args);
1601 static_cast<FwAssertArgType>(_deserStatus)
1609 #if FW_CMD_CHECK_RESIDUAL 1636 void ComLoggerComponentBase ::
1647 compPtr->cmdIn_handlerBase(
1659 void ComLoggerComponentBase ::
1669 compPtr->comIn_handlerBase(
1676 void ComLoggerComponentBase ::
1685 compPtr->pingIn_handlerBase(
1691 #if !FW_DIRECT_PORT_CALLS 1697 #if FW_ENABLE_TEXT_LOGGING 1699 void ComLoggerComponentBase ::
1709 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
1710 static_cast<FwAssertArgType>(portNum)
1714 this->m_LogText_OutputPort[portNum].isConnected(),
1715 static_cast<FwAssertArgType>(portNum)
1717 this->m_LogText_OutputPort[portNum].invoke(
1727 void ComLoggerComponentBase ::
1735 static_cast<FwAssertArgType>(portNum)
1739 this->m_cmdRegOut_OutputPort[portNum].isConnected(),
1740 static_cast<FwAssertArgType>(portNum)
1742 this->m_cmdRegOut_OutputPort[portNum].
invoke(
1747 void ComLoggerComponentBase ::
1757 static_cast<FwAssertArgType>(portNum)
1761 this->m_cmdResponseOut_OutputPort[portNum].isConnected(),
1762 static_cast<FwAssertArgType>(portNum)
1764 this->m_cmdResponseOut_OutputPort[portNum].
invoke(
1771 void ComLoggerComponentBase ::
1782 static_cast<FwAssertArgType>(portNum)
1786 this->m_logOut_OutputPort[portNum].isConnected(),
1787 static_cast<FwAssertArgType>(portNum)
1789 this->m_logOut_OutputPort[portNum].
invoke(
1797 void ComLoggerComponentBase ::
1805 static_cast<FwAssertArgType>(portNum)
1809 this->m_timeCaller_OutputPort[portNum].isConnected(),
1810 static_cast<FwAssertArgType>(portNum)
1812 this->m_timeCaller_OutputPort[portNum].
invoke(
Serialization/Deserialization operation was successful.
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
void addCallPort(InputTimePort *callPort)
Register an input port.
message to exit active component task
static constexpr FwSizeType CAPACITY
ComLoggerComponentBase(const char *compName="")
Construct ComLoggerComponentBase object.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
FwIdType FwOpcodeType
The type of a command opcode.
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
FwIdType getIdBase() const
virtual void comIn_preMsgHook(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Pre-message hook for async input port comIn.
PlatformSizeType FwSizeType
void log_WARNING_LO_FileNotInitialized()
Log event FileNotInitialized.
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue through delegate
void log_DIAGNOSTIC_FileClosed(const Fw::StringBase &file) const
Status
status returned from the queue send function
The ComLogger encountered an error writing the validation file.
BYTE pingInPortSize[Svc::PingPortBuffer::CAPACITY]
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
void invoke(U32 key) const
Invoke a port connection.
static constexpr FwIndexType getNum_cmdResponseOut_OutputPorts()
static constexpr FwIndexType getNum_pingIn_InputPorts()
virtual const CHAR * toChar() const =0
Convert to a C-style char*.
Enum representing a command response.
No time base has been established (Required)
void regCommands()
Register commands with the Command Dispatcher.
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG) override
Serialize an 8-bit unsigned integer value.
void addCallPort(InputCmdRegPort *callPort)
Register an input port.
Throttle reset count for FileNotInitialized.
Os::Queue m_queue
queue object for active component
Software diagnostic events.
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
void init()
Object initializer.
SerializeStatus
forward declaration for string
Message will block until space is available.
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
FwIdType FwEventIdType
The type of an event identifier.
void invoke(FwOpcodeType opCode) const
Invoke a port connection.
static constexpr FwSizeType CAPACITY
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
void init()
Initialization function.
Os::Queue::Status createQueue(FwSizeType depth, FwSizeType msgSize)
static constexpr FwSizeType CAPACITY
virtual void CloseFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CloseFile.
void log_WARNING_HI_FileOpenError(U32 errornum, const Fw::StringBase &file) const
#define FW_MIN(a, b)
MIN macro (deprecated in C++, use std::min)
A less serious but recoverable event.
void init()
Initialization function.
void log_WARNING_LO_FileNotInitialized_ThrottleClear()
Reset throttle value for FileNotInitialized.
void invoke(Fw::Time &time) const
Invoke a port connection.
bool isConnected_logOut_OutputPort(FwIndexType portNum) const
void CloseFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Serializable::SizeType getDeserializeSizeLeft() const override
Get remaining deserialization buffer size.
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke a port connection.
void addCallPort(InputPingPort *callPort)
Register an input port.
Status send(const U8 *buffer, FwSizeType size, FwQueuePriorityType priority, BlockingType blockType) override
send a message into the queue through delegate
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
void resetDeser() override
Reset deserialization pointer to beginning of buffer.
Fw::InputComPort * get_comIn_InputPort(FwIndexType portNum)
void log_WARNING_HI_FileWriteError(U32 errornum, U32 bytesWritten, U32 bytesToWrite, const Fw::StringBase &file) const
virtual ~ComLoggerComponentBase()
Destroy ComLoggerComponentBase object.
A serious but recoverable event.
Errors dispatching messages.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
const char * toChar() const
Convert to a C-style char*.
Enum representing event severity.
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
static constexpr FwIndexType getNum_logOut_OutputPorts()
Forces a close of the currently opened file.
void pingOut_out(FwIndexType portNum, U32 key) const
Invoke output port pingOut.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
void cmdIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Handler base-class function for input port cmdIn.
uint8_t U8
8-bit unsigned integer
Command failed to deserialize.
PlatformQueuePriorityType FwQueuePriorityType
The type of queue priorities used.
void log_WARNING_LO_FileValidationError(const Fw::StringBase &validationFile, const Fw::StringBase &file, U32 status) const
The ComLogger encountered an error opening a file.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port connection.
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
static constexpr FwIndexType getNum_comIn_InputPorts()
A message was sent requesting an exit of the loop.
The ComLogger encountered an error writing to a file.
PlatformIndexType FwIndexType
virtual void comIn_handler(FwIndexType portNum, Fw::ComBuffer &data, U32 context)=0
Handler for input port comIn.
void addCallPort(InputLogPort *callPort)
Register an input port.
void init()
Initialization function.
void comIn_handlerBase(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Handler base-class function for input port comIn.
void incNumMsgDropped()
increment the number of messages dropped
RateGroupDivider component implementation.
static constexpr FwIndexType getNum_pingOut_OutputPorts()
message sent/received okay
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const
The ComLogger successfully closed a file on command.
static constexpr FwIndexType getNum_cmdRegOut_OutputPorts()
bool isConnected_pingOut_OutputPort(FwIndexType portNum) const
Message will return with status when space is unavailable.
static constexpr FwIndexType getNum_cmdIn_InputPorts()
Implementation of malloc based allocator.
void init()
Initialization function.
virtual void CloseFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const
void addCallPort(InputCmdResponsePort *callPort)
Register an input port.
SerializeStatus serializeTo(SerialBufferBase &buffer, Endianness mode=Endianness::BIG) const override
Serialize the contents of this object to a buffer.
BYTE cmdPortSize[Fw::CmdPortBuffer::CAPACITY]