11#if FW_ENABLE_TEXT_LOGGING
21 void GroundInterfaceComponentBase ::
30 port < static_cast<PlatformIntType>(this->getNum_downlinkPort_InputPorts());
33 this->m_downlinkPort_InputPort[port].init();
34 this->m_downlinkPort_InputPort[port].addCallComp(
38 this->m_downlinkPort_InputPort[port].setPortNum(port);
40#if FW_OBJECT_NAMES == 1
47 char portName[2*FW_OBJ_NAME_MAX_SIZE];
55 this->m_downlinkPort_InputPort[port].setObjName(portName);
62 port < static_cast<PlatformIntType>(this->getNum_fileDownlinkBufferSendIn_InputPorts());
65 this->m_fileDownlinkBufferSendIn_InputPort[port].init();
66 this->m_fileDownlinkBufferSendIn_InputPort[port].addCallComp(
68 m_p_fileDownlinkBufferSendIn_in
70 this->m_fileDownlinkBufferSendIn_InputPort[port].setPortNum(port);
72#if FW_OBJECT_NAMES == 1
79 char portName[2*FW_OBJ_NAME_MAX_SIZE];
87 this->m_fileDownlinkBufferSendIn_InputPort[port].setObjName(portName);
94 port < static_cast<PlatformIntType>(this->getNum_readCallback_InputPorts());
97 this->m_readCallback_InputPort[port].init();
98 this->m_readCallback_InputPort[port].addCallComp(
102 this->m_readCallback_InputPort[port].setPortNum(port);
104#if FW_OBJECT_NAMES == 1
111 char portName[2*FW_OBJ_NAME_MAX_SIZE];
119 this->m_readCallback_InputPort[port].setObjName(portName);
126 port < static_cast<PlatformIntType>(this->getNum_schedIn_InputPorts());
129 this->m_schedIn_InputPort[port].init();
130 this->m_schedIn_InputPort[port].addCallComp(
134 this->m_schedIn_InputPort[port].setPortNum(port);
136#if FW_OBJECT_NAMES == 1
143 char portName[2*FW_OBJ_NAME_MAX_SIZE];
151 this->m_schedIn_InputPort[port].setObjName(portName);
158 port < static_cast<PlatformIntType>(this->getNum_Log_OutputPorts());
161 this->m_Log_OutputPort[port].init();
163#if FW_OBJECT_NAMES == 1
170 char portName[2*FW_OBJ_NAME_MAX_SIZE];
178 this->m_Log_OutputPort[port].setObjName(portName);
182#if FW_ENABLE_TEXT_LOGGING == 1
186 port < static_cast<PlatformIntType>(this->getNum_LogText_OutputPorts());
189 this->m_LogText_OutputPort[port].init();
191#if FW_OBJECT_NAMES == 1
198 char portName[2*FW_OBJ_NAME_MAX_SIZE];
206 this->m_LogText_OutputPort[port].setObjName(portName);
214 port < static_cast<PlatformIntType>(this->getNum_Time_OutputPorts());
217 this->m_Time_OutputPort[port].init();
219#if FW_OBJECT_NAMES == 1
226 char portName[2*FW_OBJ_NAME_MAX_SIZE];
234 this->m_Time_OutputPort[port].setObjName(portName);
241 port < static_cast<PlatformIntType>(this->getNum_fileDownlinkBufferSendOut_OutputPorts());
244 this->m_fileDownlinkBufferSendOut_OutputPort[port].init();
246#if FW_OBJECT_NAMES == 1
253 char portName[2*FW_OBJ_NAME_MAX_SIZE];
261 this->m_fileDownlinkBufferSendOut_OutputPort[port].setObjName(portName);
268 port < static_cast<PlatformIntType>(this->getNum_fileUplinkBufferGet_OutputPorts());
271 this->m_fileUplinkBufferGet_OutputPort[port].init();
273#if FW_OBJECT_NAMES == 1
280 char portName[2*FW_OBJ_NAME_MAX_SIZE];
288 this->m_fileUplinkBufferGet_OutputPort[port].setObjName(portName);
295 port < static_cast<PlatformIntType>(this->getNum_fileUplinkBufferSendOut_OutputPorts());
298 this->m_fileUplinkBufferSendOut_OutputPort[port].init();
300#if FW_OBJECT_NAMES == 1
307 char portName[2*FW_OBJ_NAME_MAX_SIZE];
315 this->m_fileUplinkBufferSendOut_OutputPort[port].setObjName(portName);
322 port < static_cast<PlatformIntType>(this->getNum_readPoll_OutputPorts());
325 this->m_readPoll_OutputPort[port].init();
327#if FW_OBJECT_NAMES == 1
334 char portName[2*FW_OBJ_NAME_MAX_SIZE];
342 this->m_readPoll_OutputPort[port].setObjName(portName);
349 port < static_cast<PlatformIntType>(this->getNum_uplinkPort_OutputPorts());
352 this->m_uplinkPort_OutputPort[port].init();
354#if FW_OBJECT_NAMES == 1
361 char portName[2*FW_OBJ_NAME_MAX_SIZE];
369 this->m_uplinkPort_OutputPort[port].setObjName(portName);
376 port < static_cast<PlatformIntType>(this->getNum_write_OutputPorts());
379 this->m_write_OutputPort[port].init();
381#if FW_OBJECT_NAMES == 1
388 char portName[2*FW_OBJ_NAME_MAX_SIZE];
396 this->m_write_OutputPort[port].setObjName(portName);
21 void GroundInterfaceComponentBase :: {
…}
409 portNum < this->getNum_downlinkPort_InputPorts(),
413 return &this->m_downlinkPort_InputPort[portNum];
420 portNum < this->getNum_fileDownlinkBufferSendIn_InputPorts(),
424 return &this->m_fileDownlinkBufferSendIn_InputPort[portNum];
431 portNum < this->getNum_readCallback_InputPorts(),
435 return &this->m_readCallback_InputPort[portNum];
442 portNum < this->getNum_schedIn_InputPorts(),
446 return &this->m_schedIn_InputPort[portNum];
453 void GroundInterfaceComponentBase ::
460 portNum < this->getNum_Log_OutputPorts(),
464 this->m_Log_OutputPort[portNum].addCallPort(port);
453 void GroundInterfaceComponentBase :: {
…}
467#if FW_ENABLE_TEXT_LOGGING == 1
469 void GroundInterfaceComponentBase ::
470 set_LogText_OutputPort(
476 portNum < this->getNum_LogText_OutputPorts(),
480 this->m_LogText_OutputPort[portNum].addCallPort(port);
485 void GroundInterfaceComponentBase ::
492 portNum < this->getNum_Time_OutputPorts(),
496 this->m_Time_OutputPort[portNum].addCallPort(port);
485 void GroundInterfaceComponentBase :: {
…}
503 void GroundInterfaceComponentBase ::
504 set_fileDownlinkBufferSendOut_OutputPort(
510 portNum < this->getNum_fileDownlinkBufferSendOut_OutputPorts(),
514 this->m_fileDownlinkBufferSendOut_OutputPort[portNum].addCallPort(port);
503 void GroundInterfaceComponentBase :: {
…}
517 void GroundInterfaceComponentBase ::
518 set_fileUplinkBufferGet_OutputPort(
524 portNum < this->getNum_fileUplinkBufferGet_OutputPorts(),
528 this->m_fileUplinkBufferGet_OutputPort[portNum].addCallPort(port);
517 void GroundInterfaceComponentBase :: {
…}
531 void GroundInterfaceComponentBase ::
532 set_fileUplinkBufferSendOut_OutputPort(
538 portNum < this->getNum_fileUplinkBufferSendOut_OutputPorts(),
542 this->m_fileUplinkBufferSendOut_OutputPort[portNum].addCallPort(port);
531 void GroundInterfaceComponentBase :: {
…}
545 void GroundInterfaceComponentBase ::
546 set_readPoll_OutputPort(
552 portNum < this->getNum_readPoll_OutputPorts(),
556 this->m_readPoll_OutputPort[portNum].addCallPort(port);
545 void GroundInterfaceComponentBase :: {
…}
559 void GroundInterfaceComponentBase ::
560 set_uplinkPort_OutputPort(
566 portNum < this->getNum_uplinkPort_OutputPorts(),
570 this->m_uplinkPort_OutputPort[portNum].addCallPort(port);
559 void GroundInterfaceComponentBase :: {
…}
573 void GroundInterfaceComponentBase ::
574 set_write_OutputPort(
580 portNum < this->getNum_write_OutputPorts(),
584 this->m_write_OutputPort[portNum].addCallPort(port);
573 void GroundInterfaceComponentBase :: {
…}
587#if FW_PORT_SERIALIZATION
593 void GroundInterfaceComponentBase ::
596 Fw::InputSerializePort* port
600 portNum < this->getNum_Log_OutputPorts(),
604 this->m_Log_OutputPort[portNum].registerSerialPort(port);
607#if FW_ENABLE_TEXT_LOGGING == 1
609 void GroundInterfaceComponentBase ::
610 set_LogText_OutputPort(
612 Fw::InputSerializePort* port
616 portNum < this->getNum_LogText_OutputPorts(),
620 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
625 void GroundInterfaceComponentBase ::
628 Fw::InputSerializePort* port
632 portNum < this->getNum_Time_OutputPorts(),
636 this->m_Time_OutputPort[portNum].registerSerialPort(port);
641#if FW_PORT_SERIALIZATION
647 void GroundInterfaceComponentBase ::
648 set_fileDownlinkBufferSendOut_OutputPort(
650 Fw::InputSerializePort* port
654 portNum < this->getNum_fileDownlinkBufferSendOut_OutputPorts(),
658 this->m_fileDownlinkBufferSendOut_OutputPort[portNum].registerSerialPort(port);
661 void GroundInterfaceComponentBase ::
662 set_fileUplinkBufferSendOut_OutputPort(
664 Fw::InputSerializePort* port
668 portNum < this->getNum_fileUplinkBufferSendOut_OutputPorts(),
672 this->m_fileUplinkBufferSendOut_OutputPort[portNum].registerSerialPort(port);
675 void GroundInterfaceComponentBase ::
676 set_readPoll_OutputPort(
678 Fw::InputSerializePort* port
682 portNum < this->getNum_readPoll_OutputPorts(),
686 this->m_readPoll_OutputPort[portNum].registerSerialPort(port);
689 void GroundInterfaceComponentBase ::
690 set_uplinkPort_OutputPort(
692 Fw::InputSerializePort* port
696 portNum < this->getNum_uplinkPort_OutputPorts(),
700 this->m_uplinkPort_OutputPort[portNum].registerSerialPort(port);
703 void GroundInterfaceComponentBase ::
704 set_write_OutputPort(
706 Fw::InputSerializePort* port
710 portNum < this->getNum_write_OutputPorts(),
714 this->m_write_OutputPort[portNum].registerSerialPort(port);
723 GroundInterfaceComponentBase ::
724 GroundInterfaceComponentBase(
const char* compName) :
725 Fw::PassiveComponentBase(compName)
723 GroundInterfaceComponentBase :: {
…}
730 GroundInterfaceComponentBase ::
731 ~GroundInterfaceComponentBase()
730 GroundInterfaceComponentBase :: {
…}
741 getNum_downlinkPort_InputPorts()
const
747 getNum_fileDownlinkBufferSendIn_InputPorts()
const
753 getNum_readCallback_InputPorts()
const
759 getNum_schedIn_InputPorts()
const
769 getNum_Log_OutputPorts()
const
774#if FW_ENABLE_TEXT_LOGGING == 1
777 getNum_LogText_OutputPorts()
const
785 getNum_Time_OutputPorts()
const
795 getNum_fileDownlinkBufferSendOut_OutputPorts()
const
801 getNum_fileUplinkBufferGet_OutputPorts()
const
807 getNum_fileUplinkBufferSendOut_OutputPorts()
const
813 getNum_readPoll_OutputPorts()
const
819 getNum_uplinkPort_OutputPorts()
const
825 getNum_write_OutputPorts()
const
834 bool GroundInterfaceComponentBase ::
838 portNum < this->getNum_Log_OutputPorts(),
842 return this->m_Log_OutputPort[portNum].isConnected();
834 bool GroundInterfaceComponentBase :: {
…}
845#if FW_ENABLE_TEXT_LOGGING == 1
847 bool GroundInterfaceComponentBase ::
851 portNum < this->getNum_LogText_OutputPorts(),
855 return this->m_LogText_OutputPort[portNum].isConnected();
860 bool GroundInterfaceComponentBase ::
864 portNum < this->getNum_Time_OutputPorts(),
868 return this->m_Time_OutputPort[portNum].isConnected();
860 bool GroundInterfaceComponentBase :: {
…}
875 bool GroundInterfaceComponentBase ::
876 isConnected_fileDownlinkBufferSendOut_OutputPort(
NATIVE_INT_TYPE portNum)
879 portNum < this->getNum_fileDownlinkBufferSendOut_OutputPorts(),
883 return this->m_fileDownlinkBufferSendOut_OutputPort[portNum].isConnected();
875 bool GroundInterfaceComponentBase :: {
…}
886 bool GroundInterfaceComponentBase ::
890 portNum < this->getNum_fileUplinkBufferGet_OutputPorts(),
894 return this->m_fileUplinkBufferGet_OutputPort[portNum].isConnected();
886 bool GroundInterfaceComponentBase :: {
…}
897 bool GroundInterfaceComponentBase ::
898 isConnected_fileUplinkBufferSendOut_OutputPort(
NATIVE_INT_TYPE portNum)
901 portNum < this->getNum_fileUplinkBufferSendOut_OutputPorts(),
905 return this->m_fileUplinkBufferSendOut_OutputPort[portNum].isConnected();
897 bool GroundInterfaceComponentBase :: {
…}
908 bool GroundInterfaceComponentBase ::
912 portNum < this->getNum_readPoll_OutputPorts(),
916 return this->m_readPoll_OutputPort[portNum].isConnected();
908 bool GroundInterfaceComponentBase :: {
…}
919 bool GroundInterfaceComponentBase ::
923 portNum < this->getNum_uplinkPort_OutputPorts(),
927 return this->m_uplinkPort_OutputPort[portNum].isConnected();
919 bool GroundInterfaceComponentBase :: {
…}
930 bool GroundInterfaceComponentBase ::
934 portNum < this->getNum_write_OutputPorts(),
938 return this->m_write_OutputPort[portNum].isConnected();
930 bool GroundInterfaceComponentBase :: {
…}
947 void GroundInterfaceComponentBase ::
948 downlinkPort_handlerBase(
956 portNum < this->getNum_downlinkPort_InputPorts(),
964 this->downlinkPort_handler(
947 void GroundInterfaceComponentBase :: {
…}
974 void GroundInterfaceComponentBase ::
975 fileDownlinkBufferSendIn_handlerBase(
982 portNum < this->getNum_fileDownlinkBufferSendIn_InputPorts(),
990 this->fileDownlinkBufferSendIn_handler(
974 void GroundInterfaceComponentBase :: {
…}
999 void GroundInterfaceComponentBase ::
1000 readCallback_handlerBase(
1007 portNum < this->getNum_readCallback_InputPorts(),
1015 this->readCallback_handler(
999 void GroundInterfaceComponentBase :: {
…}
1024 void GroundInterfaceComponentBase ::
1025 schedIn_handlerBase(
1032 portNum < this->getNum_schedIn_InputPorts(),
1040 this->schedIn_handler(
1024 void GroundInterfaceComponentBase :: {
…}
1053 void GroundInterfaceComponentBase ::
1054 fileDownlinkBufferSendOut_out(
1060 portNum < this->getNum_fileDownlinkBufferSendOut_OutputPorts(),
1063 this->m_fileDownlinkBufferSendOut_OutputPort[portNum].invoke(
1053 void GroundInterfaceComponentBase :: {
…}
1069 fileUplinkBufferGet_out(
1075 portNum < this->getNum_fileUplinkBufferGet_OutputPorts(),
1078 return this->m_fileUplinkBufferGet_OutputPort[portNum].invoke(
1083 void GroundInterfaceComponentBase ::
1084 fileUplinkBufferSendOut_out(
1090 portNum < this->getNum_fileUplinkBufferSendOut_OutputPorts(),
1093 this->m_fileUplinkBufferSendOut_OutputPort[portNum].invoke(
1083 void GroundInterfaceComponentBase :: {
…}
1098 void GroundInterfaceComponentBase ::
1105 portNum < this->getNum_readPoll_OutputPorts(),
1108 this->m_readPoll_OutputPort[portNum].invoke(
1098 void GroundInterfaceComponentBase :: {
…}
1113 void GroundInterfaceComponentBase ::
1121 portNum < this->getNum_uplinkPort_OutputPorts(),
1124 this->m_uplinkPort_OutputPort[portNum].invoke(
1113 void GroundInterfaceComponentBase :: {
…}
1130 void GroundInterfaceComponentBase ::
1137 portNum < this->getNum_write_OutputPorts(),
1140 this->m_write_OutputPort[portNum].invoke(
1130 void GroundInterfaceComponentBase :: {
…}
1149 void GroundInterfaceComponentBase ::
1150 log_WARNING_HI_GroundInterfaceError()
1154 if (this->m_Time_OutputPort[0].isConnected()) {
1155 this->m_Time_OutputPort[0].invoke(_logTime);
1160 _id = this->getIdBase() + EVENTID_GROUNDINTERFACEERROR;
1163 if (this->m_Log_OutputPort[0].isConnected()) {
1166#if FW_AMPCS_COMPATIBLE
1176 this->m_Log_OutputPort[0].invoke(
1185#if FW_ENABLE_TEXT_LOGGING
1186 if (this->m_LogText_OutputPort[0].isConnected()) {
1187#if FW_OBJECT_NAMES == 1
1188 const char* _formatString =
1189 "(%s) %s: Ground interface encountered an error";
1191 const char* _formatString =
1192 "%s: Ground interface encountered an error";
1204 "GroundInterfaceError "
1210 this->m_LogText_OutputPort[0].invoke(
1149 void GroundInterfaceComponentBase :: {
…}
1227 if (this->m_Time_OutputPort[0].isConnected()) {
1229 this->m_Time_OutputPort[0].invoke(_time);
1244 void GroundInterfaceComponentBase ::
1247 this->m_guardedPortMutex.lock();
1244 void GroundInterfaceComponentBase :: {
…}
1250 void GroundInterfaceComponentBase ::
1253 this->m_guardedPortMutex.unLock();
1250 void GroundInterfaceComponentBase :: {
…}
1260 void GroundInterfaceComponentBase ::
1261 m_p_downlinkPort_in(
1277 void GroundInterfaceComponentBase ::
1278 m_p_fileDownlinkBufferSendIn_in(
1285 GroundInterfaceComponentBase* compPtr =
static_cast<GroundInterfaceComponentBase*
>(callComp);
1292 void GroundInterfaceComponentBase ::
1293 m_p_readCallback_in(
1300 GroundInterfaceComponentBase* compPtr =
static_cast<GroundInterfaceComponentBase*
>(callComp);
1301 compPtr->readCallback_handlerBase(
1307 void GroundInterfaceComponentBase ::
1315 GroundInterfaceComponentBase* compPtr =
static_cast<GroundInterfaceComponentBase*
>(callComp);
1316 compPtr->schedIn_handlerBase(
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
PlatformUIntType NATIVE_UINT_TYPE
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
#define PRI_PlatformIntType
@ TB_NONE
No time base has been established.
PlatformAssertArgType FwAssertArgType
#define FW_LOG_TEXT_BUFFER_SIZE
Max size of string for text log message.
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects)
@ WARNING_HI
A serious but recoverable event.
void init()
Object initializer.
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
Auto-generated base for GroundInterface component.
void downlinkPort_handlerBase(NATIVE_INT_TYPE portNum, Fw::ComBuffer &data, U32 context)
Handler base-class function for input port downlinkPort.
void fileDownlinkBufferSendIn_handlerBase(NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port fileDownlinkBufferSendIn.
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.