10 #if FW_ENABLE_TEXT_LOGGING 19 BUFFERSENDIN_BUFFERSEND,
32 class ComponentIpcSerializableBuffer :
42 MAX_DATA_SIZE =
sizeof(BuffUnion),
44 SERIALIZATION_SIZE = DATA_OFFSET + MAX_DATA_SIZE
48 return sizeof(m_buff);
55 const U8* getBuffAddr()
const {
61 U8 m_buff[SERIALIZATION_SIZE];
85 this->m_bufferSendIn_InputPort[port].
init();
90 this->m_bufferSendIn_InputPort[port].
setPortNum(port);
92 #if FW_OBJECT_NAMES == 1 96 this->m_objName.toChar(),
99 this->m_bufferSendIn_InputPort[port].setObjName(portName.
toChar());
109 this->m_pingIn_InputPort[port].
init();
114 this->m_pingIn_InputPort[port].
setPortNum(port);
116 #if FW_OBJECT_NAMES == 1 120 this->m_objName.toChar(),
123 this->m_pingIn_InputPort[port].setObjName(portName.
toChar());
127 #if FW_ENABLE_TEXT_LOGGING == 1 131 port < static_cast<FwIndexType>(this->getNum_LogText_OutputPorts());
134 this->m_LogText_OutputPort[port].
init();
136 #if FW_OBJECT_NAMES == 1 140 this->m_objName.toChar(),
143 this->m_LogText_OutputPort[port].setObjName(portName.
toChar());
154 this->m_eventOut_OutputPort[port].
init();
156 #if FW_OBJECT_NAMES == 1 160 this->m_objName.toChar(),
163 this->m_eventOut_OutputPort[port].setObjName(portName.
toChar());
173 this->m_timeCaller_OutputPort[port].
init();
175 #if FW_OBJECT_NAMES == 1 179 this->m_objName.toChar(),
182 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
192 this->m_tlmOut_OutputPort[port].
init();
194 #if FW_OBJECT_NAMES == 1 198 this->m_objName.toChar(),
201 this->m_tlmOut_OutputPort[port].setObjName(portName.
toChar());
211 this->m_bufferSendOut_OutputPort[port].
init();
213 #if FW_OBJECT_NAMES == 1 217 this->m_objName.toChar(),
220 this->m_bufferSendOut_OutputPort[port].setObjName(portName.
toChar());
230 this->m_pingOut_OutputPort[port].
init();
232 #if FW_OBJECT_NAMES == 1 236 this->m_objName.toChar(),
239 this->m_pingOut_OutputPort[port].setObjName(portName.
toChar());
246 static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
250 static_cast<FwAssertArgType>(qStat)
263 static_cast<FwAssertArgType>(portNum)
266 return &this->m_bufferSendIn_InputPort[portNum];
274 static_cast<FwAssertArgType>(portNum)
277 return &this->m_pingIn_InputPort[portNum];
284 #if FW_ENABLE_TEXT_LOGGING == 1 286 void FileUplinkComponentBase ::
287 set_LogText_OutputPort(
293 portNum < this->getNum_LogText_OutputPorts(),
294 static_cast<FwAssertArgType>(portNum)
297 this->m_LogText_OutputPort[portNum].addCallPort(port);
310 static_cast<FwAssertArgType>(portNum)
313 this->m_eventOut_OutputPort[portNum].
addCallPort(port);
324 static_cast<FwAssertArgType>(portNum)
327 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
338 static_cast<FwAssertArgType>(portNum)
341 this->m_tlmOut_OutputPort[portNum].
addCallPort(port);
356 static_cast<FwAssertArgType>(portNum)
359 this->m_bufferSendOut_OutputPort[portNum].
addCallPort(port);
370 static_cast<FwAssertArgType>(portNum)
373 this->m_pingOut_OutputPort[portNum].
addCallPort(port);
376 #if FW_PORT_SERIALIZATION 382 #if FW_ENABLE_TEXT_LOGGING == 1 384 void FileUplinkComponentBase ::
385 set_LogText_OutputPort(
387 Fw::InputSerializePort* port
391 portNum < this->getNum_LogText_OutputPorts(),
392 static_cast<FwAssertArgType>(portNum)
395 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
403 Fw::InputSerializePort* port
408 static_cast<FwAssertArgType>(portNum)
411 this->m_eventOut_OutputPort[portNum].registerSerialPort(port);
417 Fw::InputSerializePort* port
422 static_cast<FwAssertArgType>(portNum)
425 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
431 Fw::InputSerializePort* port
436 static_cast<FwAssertArgType>(portNum)
439 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
444 #if FW_PORT_SERIALIZATION 453 Fw::InputSerializePort* port
458 static_cast<FwAssertArgType>(portNum)
461 this->m_bufferSendOut_OutputPort[portNum].registerSerialPort(port);
467 Fw::InputSerializePort* port
472 static_cast<FwAssertArgType>(portNum)
475 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
486 Fw::ActiveComponentBase(compName)
488 this->m_FileWriteErrorThrottle = 0;
489 this->m_InvalidReceiveModeThrottle = 0;
490 this->m_PacketOutOfBoundsThrottle = 0;
491 this->m_PacketOutOfOrderThrottle = 0;
492 this->m_PacketDuplicateThrottle = 0;
521 #if FW_ENABLE_TEXT_LOGGING == 1 524 getNum_LogText_OutputPorts()
const 569 #if FW_ENABLE_TEXT_LOGGING == 1 571 bool FileUplinkComponentBase ::
572 isConnected_LogText_OutputPort(
FwIndexType portNum)
575 portNum < this->getNum_LogText_OutputPorts(),
576 static_cast<FwAssertArgType>(portNum)
579 return this->m_LogText_OutputPort[portNum].isConnected();
589 static_cast<FwAssertArgType>(portNum)
592 return this->m_eventOut_OutputPort[portNum].
isConnected();
600 static_cast<FwAssertArgType>(portNum)
603 return this->m_timeCaller_OutputPort[portNum].
isConnected();
611 static_cast<FwAssertArgType>(portNum)
614 return this->m_tlmOut_OutputPort[portNum].
isConnected();
626 static_cast<FwAssertArgType>(portNum)
629 return this->m_bufferSendOut_OutputPort[portNum].
isConnected();
637 static_cast<FwAssertArgType>(portNum)
640 return this->m_pingOut_OutputPort[portNum].
isConnected();
658 static_cast<FwAssertArgType>(portNum)
666 ComponentIpcSerializableBuffer msg;
670 _status = msg.serialize(
671 static_cast<FwEnumStoreType>(BUFFERSENDIN_BUFFERSEND)
675 static_cast<FwAssertArgType>(_status)
679 _status = msg.serialize(portNum);
682 static_cast<FwAssertArgType>(_status)
686 _status = msg.serialize(fwBuffer);
689 static_cast<FwAssertArgType>(_status)
698 static_cast<FwAssertArgType>(qStatus)
711 static_cast<FwAssertArgType>(portNum)
719 ComponentIpcSerializableBuffer msg;
723 _status = msg.serialize(
724 static_cast<FwEnumStoreType>(PINGIN_PING)
728 static_cast<FwAssertArgType>(_status)
732 _status = msg.serialize(portNum);
735 static_cast<FwAssertArgType>(_status)
739 _status = msg.serialize(key);
742 static_cast<FwAssertArgType>(_status)
751 static_cast<FwAssertArgType>(qStatus)
793 static_cast<FwAssertArgType>(portNum)
795 this->m_bufferSendOut_OutputPort[portNum].
invoke(
808 static_cast<FwAssertArgType>(portNum)
810 this->m_pingOut_OutputPort[portNum].
invoke(
828 if (this->m_timeCaller_OutputPort[0].isConnected()) {
829 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
837 if (this->m_eventOut_OutputPort[0].isConnected()) {
841 #if FW_AMPCS_COMPATIBLE 843 _status = _logBuff.
serialize(static_cast<U8>(3));
846 static_cast<FwAssertArgType>(_status)
853 static_cast<FwAssertArgType>(_status)
856 #if FW_AMPCS_COMPATIBLE 859 static_cast<U8>(
sizeof(U32))
863 static_cast<FwAssertArgType>(_status)
869 static_cast<FwAssertArgType>(_status)
872 #if FW_AMPCS_COMPATIBLE 875 static_cast<U8>(
sizeof(U32))
879 static_cast<FwAssertArgType>(_status)
885 static_cast<FwAssertArgType>(_status)
888 this->m_eventOut_OutputPort[0].
invoke(
897 #if FW_ENABLE_TEXT_LOGGING 898 if (this->m_LogText_OutputPort[0].isConnected()) {
899 #if FW_OBJECT_NAMES == 1 900 const char* _formatString =
901 "(%s) %s: Bad checksum value during receipt of file %s: computed 0x%" PRIx32
", read 0x%" PRIx32
"";
903 const char* _formatString =
904 "%s: Bad checksum value during receipt of file %s: computed 0x%" PRIx32
", read 0x%" PRIx32
"";
911 this->m_objName.toChar(),
919 this->m_LogText_OutputPort[0].invoke(
934 if (this->m_timeCaller_OutputPort[0].isConnected()) {
935 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
943 if (this->m_eventOut_OutputPort[0].isConnected()) {
947 #if FW_AMPCS_COMPATIBLE 949 _status = _logBuff.
serialize(static_cast<U8>(1));
952 static_cast<FwAssertArgType>(_status)
959 static_cast<FwAssertArgType>(_status)
962 this->m_eventOut_OutputPort[0].
invoke(
971 #if FW_ENABLE_TEXT_LOGGING 972 if (this->m_LogText_OutputPort[0].isConnected()) {
973 #if FW_OBJECT_NAMES == 1 974 const char* _formatString =
975 "(%s) %s: Could not open file %s";
977 const char* _formatString =
978 "%s: Could not open file %s";
985 this->m_objName.toChar(),
991 this->m_LogText_OutputPort[0].invoke(
1006 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1007 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1015 if (this->m_eventOut_OutputPort[0].isConnected()) {
1019 #if FW_AMPCS_COMPATIBLE 1021 _status = _logBuff.
serialize(static_cast<U8>(1));
1024 static_cast<FwAssertArgType>(_status)
1031 static_cast<FwAssertArgType>(_status)
1034 this->m_eventOut_OutputPort[0].
invoke(
1043 #if FW_ENABLE_TEXT_LOGGING 1044 if (this->m_LogText_OutputPort[0].isConnected()) {
1045 #if FW_OBJECT_NAMES == 1 1046 const char* _formatString =
1047 "(%s) %s: Received file %s";
1049 const char* _formatString =
1050 "%s: Received file %s";
1057 this->m_objName.toChar(),
1063 this->m_LogText_OutputPort[0].invoke(
1081 this->m_FileWriteErrorThrottle++;
1086 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1087 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1095 if (this->m_eventOut_OutputPort[0].isConnected()) {
1099 #if FW_AMPCS_COMPATIBLE 1101 _status = _logBuff.
serialize(static_cast<U8>(1));
1104 static_cast<FwAssertArgType>(_status)
1111 static_cast<FwAssertArgType>(_status)
1114 this->m_eventOut_OutputPort[0].
invoke(
1123 #if FW_ENABLE_TEXT_LOGGING 1124 if (this->m_LogText_OutputPort[0].isConnected()) {
1125 #if FW_OBJECT_NAMES == 1 1126 const char* _formatString =
1127 "(%s) %s: Could not write to file %s";
1129 const char* _formatString =
1130 "%s: Could not write to file %s";
1137 this->m_objName.toChar(),
1143 this->m_LogText_OutputPort[0].invoke(
1164 this->m_InvalidReceiveModeThrottle++;
1169 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1170 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1178 if (this->m_eventOut_OutputPort[0].isConnected()) {
1182 #if FW_AMPCS_COMPATIBLE 1184 _status = _logBuff.
serialize(static_cast<U8>(2));
1187 static_cast<FwAssertArgType>(_status)
1191 #if FW_AMPCS_COMPATIBLE 1194 static_cast<U8>(
sizeof(U32))
1198 static_cast<FwAssertArgType>(_status)
1201 _status = _logBuff.
serialize(packetType);
1204 static_cast<FwAssertArgType>(_status)
1207 #if FW_AMPCS_COMPATIBLE 1210 static_cast<U8>(
sizeof(U32))
1214 static_cast<FwAssertArgType>(_status)
1220 static_cast<FwAssertArgType>(_status)
1223 this->m_eventOut_OutputPort[0].
invoke(
1232 #if FW_ENABLE_TEXT_LOGGING 1233 if (this->m_LogText_OutputPort[0].isConnected()) {
1234 #if FW_OBJECT_NAMES == 1 1235 const char* _formatString =
1236 "(%s) %s: Packet type %" PRIu32
" received in mode %" PRIu32
"";
1238 const char* _formatString =
1239 "%s: Packet type %" PRIu32
" received in mode %" PRIu32
"";
1246 this->m_objName.toChar(),
1248 "InvalidReceiveMode ",
1253 this->m_LogText_OutputPort[0].invoke(
1274 this->m_PacketOutOfBoundsThrottle++;
1279 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1280 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1288 if (this->m_eventOut_OutputPort[0].isConnected()) {
1292 #if FW_AMPCS_COMPATIBLE 1294 _status = _logBuff.
serialize(static_cast<U8>(2));
1297 static_cast<FwAssertArgType>(_status)
1301 #if FW_AMPCS_COMPATIBLE 1304 static_cast<U8>(
sizeof(U32))
1308 static_cast<FwAssertArgType>(_status)
1311 _status = _logBuff.
serialize(packetIndex);
1314 static_cast<FwAssertArgType>(_status)
1320 static_cast<FwAssertArgType>(_status)
1323 this->m_eventOut_OutputPort[0].
invoke(
1332 #if FW_ENABLE_TEXT_LOGGING 1333 if (this->m_LogText_OutputPort[0].isConnected()) {
1334 #if FW_OBJECT_NAMES == 1 1335 const char* _formatString =
1336 "(%s) %s: Packet %" PRIu32
" out of bounds for file %s";
1338 const char* _formatString =
1339 "%s: Packet %" PRIu32
" out of bounds for file %s";
1346 this->m_objName.toChar(),
1348 "PacketOutOfBounds ",
1353 this->m_LogText_OutputPort[0].invoke(
1374 this->m_PacketOutOfOrderThrottle++;
1379 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1380 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1388 if (this->m_eventOut_OutputPort[0].isConnected()) {
1392 #if FW_AMPCS_COMPATIBLE 1394 _status = _logBuff.
serialize(static_cast<U8>(2));
1397 static_cast<FwAssertArgType>(_status)
1401 #if FW_AMPCS_COMPATIBLE 1404 static_cast<U8>(
sizeof(U32))
1408 static_cast<FwAssertArgType>(_status)
1411 _status = _logBuff.
serialize(packetIndex);
1414 static_cast<FwAssertArgType>(_status)
1417 #if FW_AMPCS_COMPATIBLE 1420 static_cast<U8>(
sizeof(U32))
1424 static_cast<FwAssertArgType>(_status)
1427 _status = _logBuff.
serialize(lastPacketIndex);
1430 static_cast<FwAssertArgType>(_status)
1433 this->m_eventOut_OutputPort[0].
invoke(
1442 #if FW_ENABLE_TEXT_LOGGING 1443 if (this->m_LogText_OutputPort[0].isConnected()) {
1444 #if FW_OBJECT_NAMES == 1 1445 const char* _formatString =
1446 "(%s) %s: Received packet %" PRIu32
" after packet %" PRIu32
"";
1448 const char* _formatString =
1449 "%s: Received packet %" PRIu32
" after packet %" PRIu32
"";
1456 this->m_objName.toChar(),
1458 "PacketOutOfOrder ",
1463 this->m_LogText_OutputPort[0].invoke(
1481 this->m_PacketDuplicateThrottle++;
1486 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1487 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1495 if (this->m_eventOut_OutputPort[0].isConnected()) {
1499 #if FW_AMPCS_COMPATIBLE 1501 _status = _logBuff.
serialize(static_cast<U8>(1));
1504 static_cast<FwAssertArgType>(_status)
1508 #if FW_AMPCS_COMPATIBLE 1511 static_cast<U8>(
sizeof(U32))
1515 static_cast<FwAssertArgType>(_status)
1518 _status = _logBuff.
serialize(packetIndex);
1521 static_cast<FwAssertArgType>(_status)
1524 this->m_eventOut_OutputPort[0].
invoke(
1533 #if FW_ENABLE_TEXT_LOGGING 1534 if (this->m_LogText_OutputPort[0].isConnected()) {
1535 #if FW_OBJECT_NAMES == 1 1536 const char* _formatString =
1537 "(%s) %s: Received a duplicate of packet %" PRIu32
"";
1539 const char* _formatString =
1540 "%s: Received a duplicate of packet %" PRIu32
"";
1547 this->m_objName.toChar(),
1553 this->m_LogText_OutputPort[0].invoke(
1568 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1569 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1577 if (this->m_eventOut_OutputPort[0].isConnected()) {
1580 #if FW_AMPCS_COMPATIBLE 1583 _status = _logBuff.
serialize(static_cast<U8>(0));
1586 static_cast<FwAssertArgType>(_status)
1590 this->m_eventOut_OutputPort[0].
invoke(
1599 #if FW_ENABLE_TEXT_LOGGING 1600 if (this->m_LogText_OutputPort[0].isConnected()) {
1601 #if FW_OBJECT_NAMES == 1 1602 const char* _formatString =
1603 "(%s) %s: Received CANCEL packet";
1605 const char* _formatString =
1606 "%s: Received CANCEL packet";
1613 this->m_objName.toChar(),
1618 this->m_LogText_OutputPort[0].invoke(
1633 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1634 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1642 if (this->m_eventOut_OutputPort[0].isConnected()) {
1646 #if FW_AMPCS_COMPATIBLE 1648 _status = _logBuff.
serialize(static_cast<U8>(1));
1651 static_cast<FwAssertArgType>(_status)
1655 #if FW_AMPCS_COMPATIBLE 1658 static_cast<U8>(
sizeof(I32))
1662 static_cast<FwAssertArgType>(_status)
1668 static_cast<FwAssertArgType>(_status)
1671 this->m_eventOut_OutputPort[0].
invoke(
1680 #if FW_ENABLE_TEXT_LOGGING 1681 if (this->m_LogText_OutputPort[0].isConnected()) {
1682 #if FW_OBJECT_NAMES == 1 1683 const char* _formatString =
1684 "(%s) %s: Unable to decode file packet. Status: %" PRIi32
"";
1686 const char* _formatString =
1687 "%s: Unable to decode file packet. Status: %" PRIi32
"";
1694 this->m_objName.toChar(),
1700 this->m_LogText_OutputPort[0].invoke(
1718 this->m_FileWriteErrorThrottle = 0;
1725 this->m_InvalidReceiveModeThrottle = 0;
1732 this->m_PacketOutOfBoundsThrottle = 0;
1739 this->m_PacketOutOfOrderThrottle = 0;
1746 this->m_PacketDuplicateThrottle = 0;
1759 if (this->m_tlmOut_OutputPort[0].isConnected()) {
1761 this->m_timeCaller_OutputPort[0].isConnected() &&
1764 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
1771 static_cast<FwAssertArgType>(_stat)
1778 this->m_tlmOut_OutputPort[0].
invoke(
1792 if (this->m_tlmOut_OutputPort[0].isConnected()) {
1794 this->m_timeCaller_OutputPort[0].isConnected() &&
1797 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
1804 static_cast<FwAssertArgType>(_stat)
1811 this->m_tlmOut_OutputPort[0].
invoke(
1825 if (this->m_tlmOut_OutputPort[0].isConnected()) {
1827 this->m_timeCaller_OutputPort[0].isConnected() &&
1830 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
1837 static_cast<FwAssertArgType>(_stat)
1844 this->m_tlmOut_OutputPort[0].
invoke(
1859 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1861 this->m_timeCaller_OutputPort[0].
invoke(_time);
1876 ComponentIpcSerializableBuffer msg;
1886 static_cast<FwAssertArgType>(msgStatus)
1896 static_cast<FwAssertArgType>(deserStatus)
1899 MsgTypeEnum msgType =
static_cast<MsgTypeEnum
>(desMsg);
1901 if (msgType == FILEUPLINK_COMPONENT_EXIT) {
1906 deserStatus = msg.deserialize(portNum);
1909 static_cast<FwAssertArgType>(deserStatus)
1914 case BUFFERSENDIN_BUFFERSEND: {
1917 deserStatus = msg.deserialize(fwBuffer);
1920 static_cast<FwAssertArgType>(deserStatus)
1935 deserStatus = msg.deserialize(key);
1938 static_cast<FwAssertArgType>(deserStatus)
1960 void FileUplinkComponentBase ::
1961 m_p_bufferSendIn_in(
1969 compPtr->bufferSendIn_handlerBase(
1975 void FileUplinkComponentBase ::
1984 compPtr->pingIn_handlerBase(
Serialization/Deserialization operation was successful.
During receipt of a file, the computed checksum value did not match the stored value.
An error occurred opening a file.
void tlmWrite_FilesReceived(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
void addCallPort(InputTimePort *callPort)
Register an input port.
The File Uplink component received a packet with a type that was invalid for the current receive mode...
Throttle reset count for FileWriteError.
bool isConnected_eventOut_OutputPort(FwIndexType portNum)
void set_bufferSendOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferSendOut[portNum].
FwIndexType getNum_bufferSendOut_OutputPorts() const
bool isConnected_pingOut_OutputPort(FwIndexType portNum)
void log_ACTIVITY_HI_UplinkCanceled() const
NATIVE_UINT_TYPE SizeType
Status
status returned from the queue send function
void log_WARNING_HI_BadChecksum(const Fw::StringBase &fileName, U32 computed, U32 read) const
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_InvalidReceiveMode_ThrottleClear()
Reset throttle value for InvalidReceiveMode.
Channel ID for PacketsReceived.
FwIndexType getNum_bufferSendIn_InputPorts() const
PlatformSizeType FwSizeType
void invoke(U32 key) const
Invoke a port interface.
The File Uplink component successfully received a file.
void init()
Initialization function.
virtual void bufferSendIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferSendIn.
PlatformIndexType FwIndexType
Os::Queue m_queue
queue object for active component
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
void addCallPort(InputTlmPort *callPort)
Register an input port.
void init()
Object initializer.
void log_WARNING_HI_DecodeError(I32 status) const
FwIndexType getNum_pingIn_InputPorts() const
SerializeStatus
forward declaration for string
Message will block until space is available.
void log_WARNING_HI_PacketDuplicate(U32 packetIndex)
Throttle reset count for PacketOutOfOrder.
void log_ACTIVITY_HI_FileReceived(const Fw::StringBase &fileName) const
Channel ID for FilesReceived.
void log_WARNING_HI_PacketOutOfOrder_ThrottleClear()
Reset throttle value for PacketOutOfOrder.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
Throttle reset count for InvalidReceiveMode.
void log_WARNING_HI_PacketOutOfBounds(U32 packetIndex, const Fw::StringBase &fileName)
void init()
Initialization function.
Fw::InputBufferSendPort * get_bufferSendIn_InputPort(FwIndexType portNum)
Os::Queue::Status createQueue(FwSizeType depth, FwSizeType msgSize)
void log_WARNING_HI_PacketDuplicate_ThrottleClear()
Reset throttle value for PacketDuplicate.
Error decoding file packet.
#define FW_MIN(a, b)
MIN macro.
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
void bufferSendIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferSendIn.
FwIndexType getNum_pingOut_OutputPorts() const
void init()
Initialization function.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
void invoke(Fw::Time &time) const
Invoke a port interface.
void log_WARNING_HI_FileWriteError(const Fw::StringBase &fileName)
FileUplinkComponentBase(const char *compName="")
Construct FileUplinkComponentBase object.
const char * toChar() const
No time base has been established.
The File Uplink component received a CANCEL packet.
FwIndexType getNum_eventOut_OutputPorts() const
void tlmWrite_Warnings(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
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
A serious but recoverable event.
Errors dispatching messages.
bool isConnected_bufferSendOut_OutputPort(FwIndexType portNum)
Throttle reset count for PacketOutOfBounds.
void log_WARNING_HI_FileWriteError_ThrottleClear()
Reset throttle value for FileWriteError.
void invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke a port interface.
void log_WARNING_HI_FileOpenError(const Fw::StringBase &fileName) const
Throttle reset count for PacketDuplicate.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
virtual ~FileUplinkComponentBase()
Destroy FileUplinkComponentBase object.
The File Uplink component encountered a duplicate packet during file receipt.
uint8_t U8
8-bit unsigned integer
#define PRI_PlatformIntType
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
void log_WARNING_HI_InvalidReceiveMode(U32 packetType, U32 mode)
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
Important informational events.
void init()
Initialization function.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port interface.
virtual void bufferSendIn_preMsgHook(FwIndexType portNum, Fw::Buffer &fwBuffer)
Pre-message hook for async input port bufferSendIn.
PlatformQueuePriorityType FwQueuePriorityType
message to exit active component task
FwIndexType getNum_timeCaller_OutputPorts() const
A message was sent requesting an exit of the loop.
void bufferSendOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferSendOut.
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
void tlmWrite_PacketsReceived(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
An error occurred writing to a file.
void addCallPort(InputLogPort *callPort)
Register an input port.
message sent/received okay
The File Uplink component encountered an out-of-order packet during file receipt. ...
virtual SerializeStatus serialize(SerializeBufferBase &buffer) const
serialization function
Message will return with status when space is unavailable.
During receipt of a file, the File Uplink component encountered a packet with offset and size out of ...
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue through delegate
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
void log_WARNING_HI_PacketOutOfBounds_ThrottleClear()
Reset throttle value for PacketOutOfBounds.
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
void log_WARNING_HI_PacketOutOfOrder(U32 packetIndex, U32 lastPacketIndex)
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
FwIndexType getNum_tlmOut_OutputPorts() const
#define FW_LOG_STRING_MAX_SIZE
Max size of log string parameter type.
virtual const CHAR * toChar() const =0