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
49 this->m_downlinkPort_InputPort[port].setObjName(portName);
56 port < static_cast<PlatformIntType>(this->getNum_fileDownlinkBufferSendIn_InputPorts());
59 this->m_fileDownlinkBufferSendIn_InputPort[port].init();
60 this->m_fileDownlinkBufferSendIn_InputPort[port].addCallComp(
62 m_p_fileDownlinkBufferSendIn_in
64 this->m_fileDownlinkBufferSendIn_InputPort[port].setPortNum(port);
66#if FW_OBJECT_NAMES == 1
75 this->m_fileDownlinkBufferSendIn_InputPort[port].setObjName(portName);
82 port < static_cast<PlatformIntType>(this->getNum_readCallback_InputPorts());
85 this->m_readCallback_InputPort[port].init();
86 this->m_readCallback_InputPort[port].addCallComp(
90 this->m_readCallback_InputPort[port].setPortNum(port);
92#if FW_OBJECT_NAMES == 1
101 this->m_readCallback_InputPort[port].setObjName(portName);
108 port < static_cast<PlatformIntType>(this->getNum_schedIn_InputPorts());
111 this->m_schedIn_InputPort[port].init();
112 this->m_schedIn_InputPort[port].addCallComp(
116 this->m_schedIn_InputPort[port].setPortNum(port);
118#if FW_OBJECT_NAMES == 1
127 this->m_schedIn_InputPort[port].setObjName(portName);
134 port < static_cast<PlatformIntType>(this->getNum_Log_OutputPorts());
137 this->m_Log_OutputPort[port].init();
139#if FW_OBJECT_NAMES == 1
148 this->m_Log_OutputPort[port].setObjName(portName);
152#if FW_ENABLE_TEXT_LOGGING == 1
156 port < static_cast<PlatformIntType>(this->getNum_LogText_OutputPorts());
159 this->m_LogText_OutputPort[port].init();
161#if FW_OBJECT_NAMES == 1
170 this->m_LogText_OutputPort[port].setObjName(portName);
178 port < static_cast<PlatformIntType>(this->getNum_Time_OutputPorts());
181 this->m_Time_OutputPort[port].init();
183#if FW_OBJECT_NAMES == 1
192 this->m_Time_OutputPort[port].setObjName(portName);
199 port < static_cast<PlatformIntType>(this->getNum_fileDownlinkBufferSendOut_OutputPorts());
202 this->m_fileDownlinkBufferSendOut_OutputPort[port].init();
204#if FW_OBJECT_NAMES == 1
213 this->m_fileDownlinkBufferSendOut_OutputPort[port].setObjName(portName);
220 port < static_cast<PlatformIntType>(this->getNum_fileUplinkBufferGet_OutputPorts());
223 this->m_fileUplinkBufferGet_OutputPort[port].init();
225#if FW_OBJECT_NAMES == 1
234 this->m_fileUplinkBufferGet_OutputPort[port].setObjName(portName);
241 port < static_cast<PlatformIntType>(this->getNum_fileUplinkBufferSendOut_OutputPorts());
244 this->m_fileUplinkBufferSendOut_OutputPort[port].init();
246#if FW_OBJECT_NAMES == 1
255 this->m_fileUplinkBufferSendOut_OutputPort[port].setObjName(portName);
262 port < static_cast<PlatformIntType>(this->getNum_readPoll_OutputPorts());
265 this->m_readPoll_OutputPort[port].init();
267#if FW_OBJECT_NAMES == 1
276 this->m_readPoll_OutputPort[port].setObjName(portName);
283 port < static_cast<PlatformIntType>(this->getNum_uplinkPort_OutputPorts());
286 this->m_uplinkPort_OutputPort[port].init();
288#if FW_OBJECT_NAMES == 1
297 this->m_uplinkPort_OutputPort[port].setObjName(portName);
304 port < static_cast<PlatformIntType>(this->getNum_write_OutputPorts());
307 this->m_write_OutputPort[port].init();
309#if FW_OBJECT_NAMES == 1
318 this->m_write_OutputPort[port].setObjName(portName);
21 void GroundInterfaceComponentBase :: {
…}
331 portNum < this->getNum_downlinkPort_InputPorts(),
335 return &this->m_downlinkPort_InputPort[portNum];
342 portNum < this->getNum_fileDownlinkBufferSendIn_InputPorts(),
346 return &this->m_fileDownlinkBufferSendIn_InputPort[portNum];
353 portNum < this->getNum_readCallback_InputPorts(),
357 return &this->m_readCallback_InputPort[portNum];
364 portNum < this->getNum_schedIn_InputPorts(),
368 return &this->m_schedIn_InputPort[portNum];
375 void GroundInterfaceComponentBase ::
382 portNum < this->getNum_Log_OutputPorts(),
386 this->m_Log_OutputPort[portNum].addCallPort(port);
375 void GroundInterfaceComponentBase :: {
…}
389#if FW_ENABLE_TEXT_LOGGING == 1
391 void GroundInterfaceComponentBase ::
392 set_LogText_OutputPort(
398 portNum < this->getNum_LogText_OutputPorts(),
402 this->m_LogText_OutputPort[portNum].addCallPort(port);
407 void GroundInterfaceComponentBase ::
414 portNum < this->getNum_Time_OutputPorts(),
418 this->m_Time_OutputPort[portNum].addCallPort(port);
407 void GroundInterfaceComponentBase :: {
…}
425 void GroundInterfaceComponentBase ::
426 set_fileDownlinkBufferSendOut_OutputPort(
432 portNum < this->getNum_fileDownlinkBufferSendOut_OutputPorts(),
436 this->m_fileDownlinkBufferSendOut_OutputPort[portNum].addCallPort(port);
425 void GroundInterfaceComponentBase :: {
…}
439 void GroundInterfaceComponentBase ::
440 set_fileUplinkBufferGet_OutputPort(
446 portNum < this->getNum_fileUplinkBufferGet_OutputPorts(),
450 this->m_fileUplinkBufferGet_OutputPort[portNum].addCallPort(port);
439 void GroundInterfaceComponentBase :: {
…}
453 void GroundInterfaceComponentBase ::
454 set_fileUplinkBufferSendOut_OutputPort(
460 portNum < this->getNum_fileUplinkBufferSendOut_OutputPorts(),
464 this->m_fileUplinkBufferSendOut_OutputPort[portNum].addCallPort(port);
453 void GroundInterfaceComponentBase :: {
…}
467 void GroundInterfaceComponentBase ::
468 set_readPoll_OutputPort(
474 portNum < this->getNum_readPoll_OutputPorts(),
478 this->m_readPoll_OutputPort[portNum].addCallPort(port);
467 void GroundInterfaceComponentBase :: {
…}
481 void GroundInterfaceComponentBase ::
482 set_uplinkPort_OutputPort(
488 portNum < this->getNum_uplinkPort_OutputPorts(),
492 this->m_uplinkPort_OutputPort[portNum].addCallPort(port);
481 void GroundInterfaceComponentBase :: {
…}
495 void GroundInterfaceComponentBase ::
496 set_write_OutputPort(
502 portNum < this->getNum_write_OutputPorts(),
506 this->m_write_OutputPort[portNum].addCallPort(port);
495 void GroundInterfaceComponentBase :: {
…}
509#if FW_PORT_SERIALIZATION
515 void GroundInterfaceComponentBase ::
518 Fw::InputSerializePort* port
522 portNum < this->getNum_Log_OutputPorts(),
526 this->m_Log_OutputPort[portNum].registerSerialPort(port);
529#if FW_ENABLE_TEXT_LOGGING == 1
531 void GroundInterfaceComponentBase ::
532 set_LogText_OutputPort(
534 Fw::InputSerializePort* port
538 portNum < this->getNum_LogText_OutputPorts(),
542 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
547 void GroundInterfaceComponentBase ::
550 Fw::InputSerializePort* port
554 portNum < this->getNum_Time_OutputPorts(),
558 this->m_Time_OutputPort[portNum].registerSerialPort(port);
563#if FW_PORT_SERIALIZATION
569 void GroundInterfaceComponentBase ::
570 set_fileDownlinkBufferSendOut_OutputPort(
572 Fw::InputSerializePort* port
576 portNum < this->getNum_fileDownlinkBufferSendOut_OutputPorts(),
580 this->m_fileDownlinkBufferSendOut_OutputPort[portNum].registerSerialPort(port);
583 void GroundInterfaceComponentBase ::
584 set_fileUplinkBufferSendOut_OutputPort(
586 Fw::InputSerializePort* port
590 portNum < this->getNum_fileUplinkBufferSendOut_OutputPorts(),
594 this->m_fileUplinkBufferSendOut_OutputPort[portNum].registerSerialPort(port);
597 void GroundInterfaceComponentBase ::
598 set_readPoll_OutputPort(
600 Fw::InputSerializePort* port
604 portNum < this->getNum_readPoll_OutputPorts(),
608 this->m_readPoll_OutputPort[portNum].registerSerialPort(port);
611 void GroundInterfaceComponentBase ::
612 set_uplinkPort_OutputPort(
614 Fw::InputSerializePort* port
618 portNum < this->getNum_uplinkPort_OutputPorts(),
622 this->m_uplinkPort_OutputPort[portNum].registerSerialPort(port);
625 void GroundInterfaceComponentBase ::
626 set_write_OutputPort(
628 Fw::InputSerializePort* port
632 portNum < this->getNum_write_OutputPorts(),
636 this->m_write_OutputPort[portNum].registerSerialPort(port);
645 GroundInterfaceComponentBase ::
646 GroundInterfaceComponentBase(
const char* compName) :
647 Fw::PassiveComponentBase(compName)
645 GroundInterfaceComponentBase :: {
…}
652 GroundInterfaceComponentBase ::
653 ~GroundInterfaceComponentBase()
652 GroundInterfaceComponentBase :: {
…}
663 getNum_downlinkPort_InputPorts()
const
669 getNum_fileDownlinkBufferSendIn_InputPorts()
const
675 getNum_readCallback_InputPorts()
const
681 getNum_schedIn_InputPorts()
const
691 getNum_Log_OutputPorts()
const
696#if FW_ENABLE_TEXT_LOGGING == 1
699 getNum_LogText_OutputPorts()
const
707 getNum_Time_OutputPorts()
const
717 getNum_fileDownlinkBufferSendOut_OutputPorts()
const
723 getNum_fileUplinkBufferGet_OutputPorts()
const
729 getNum_fileUplinkBufferSendOut_OutputPorts()
const
735 getNum_readPoll_OutputPorts()
const
741 getNum_uplinkPort_OutputPorts()
const
747 getNum_write_OutputPorts()
const
756 bool GroundInterfaceComponentBase ::
760 portNum < this->getNum_Log_OutputPorts(),
764 return this->m_Log_OutputPort[portNum].isConnected();
756 bool GroundInterfaceComponentBase :: {
…}
767#if FW_ENABLE_TEXT_LOGGING == 1
769 bool GroundInterfaceComponentBase ::
773 portNum < this->getNum_LogText_OutputPorts(),
777 return this->m_LogText_OutputPort[portNum].isConnected();
782 bool GroundInterfaceComponentBase ::
786 portNum < this->getNum_Time_OutputPorts(),
790 return this->m_Time_OutputPort[portNum].isConnected();
782 bool GroundInterfaceComponentBase :: {
…}
797 bool GroundInterfaceComponentBase ::
798 isConnected_fileDownlinkBufferSendOut_OutputPort(
NATIVE_INT_TYPE portNum)
801 portNum < this->getNum_fileDownlinkBufferSendOut_OutputPorts(),
805 return this->m_fileDownlinkBufferSendOut_OutputPort[portNum].isConnected();
797 bool GroundInterfaceComponentBase :: {
…}
808 bool GroundInterfaceComponentBase ::
812 portNum < this->getNum_fileUplinkBufferGet_OutputPorts(),
816 return this->m_fileUplinkBufferGet_OutputPort[portNum].isConnected();
808 bool GroundInterfaceComponentBase :: {
…}
819 bool GroundInterfaceComponentBase ::
820 isConnected_fileUplinkBufferSendOut_OutputPort(
NATIVE_INT_TYPE portNum)
823 portNum < this->getNum_fileUplinkBufferSendOut_OutputPorts(),
827 return this->m_fileUplinkBufferSendOut_OutputPort[portNum].isConnected();
819 bool GroundInterfaceComponentBase :: {
…}
830 bool GroundInterfaceComponentBase ::
834 portNum < this->getNum_readPoll_OutputPorts(),
838 return this->m_readPoll_OutputPort[portNum].isConnected();
830 bool GroundInterfaceComponentBase :: {
…}
841 bool GroundInterfaceComponentBase ::
845 portNum < this->getNum_uplinkPort_OutputPorts(),
849 return this->m_uplinkPort_OutputPort[portNum].isConnected();
841 bool GroundInterfaceComponentBase :: {
…}
852 bool GroundInterfaceComponentBase ::
856 portNum < this->getNum_write_OutputPorts(),
860 return this->m_write_OutputPort[portNum].isConnected();
852 bool GroundInterfaceComponentBase :: {
…}
869 void GroundInterfaceComponentBase ::
870 downlinkPort_handlerBase(
878 portNum < this->getNum_downlinkPort_InputPorts(),
886 this->downlinkPort_handler(
869 void GroundInterfaceComponentBase :: {
…}
896 void GroundInterfaceComponentBase ::
897 fileDownlinkBufferSendIn_handlerBase(
904 portNum < this->getNum_fileDownlinkBufferSendIn_InputPorts(),
912 this->fileDownlinkBufferSendIn_handler(
896 void GroundInterfaceComponentBase :: {
…}
921 void GroundInterfaceComponentBase ::
922 readCallback_handlerBase(
929 portNum < this->getNum_readCallback_InputPorts(),
937 this->readCallback_handler(
921 void GroundInterfaceComponentBase :: {
…}
946 void GroundInterfaceComponentBase ::
954 portNum < this->getNum_schedIn_InputPorts(),
962 this->schedIn_handler(
946 void GroundInterfaceComponentBase :: {
…}
975 void GroundInterfaceComponentBase ::
976 fileDownlinkBufferSendOut_out(
982 portNum < this->getNum_fileDownlinkBufferSendOut_OutputPorts(),
985 this->m_fileDownlinkBufferSendOut_OutputPort[portNum].invoke(
975 void GroundInterfaceComponentBase :: {
…}
991 fileUplinkBufferGet_out(
997 portNum < this->getNum_fileUplinkBufferGet_OutputPorts(),
1000 return this->m_fileUplinkBufferGet_OutputPort[portNum].invoke(
1005 void GroundInterfaceComponentBase ::
1006 fileUplinkBufferSendOut_out(
1012 portNum < this->getNum_fileUplinkBufferSendOut_OutputPorts(),
1015 this->m_fileUplinkBufferSendOut_OutputPort[portNum].invoke(
1005 void GroundInterfaceComponentBase :: {
…}
1020 void GroundInterfaceComponentBase ::
1027 portNum < this->getNum_readPoll_OutputPorts(),
1030 this->m_readPoll_OutputPort[portNum].invoke(
1020 void GroundInterfaceComponentBase :: {
…}
1035 void GroundInterfaceComponentBase ::
1043 portNum < this->getNum_uplinkPort_OutputPorts(),
1046 this->m_uplinkPort_OutputPort[portNum].invoke(
1035 void GroundInterfaceComponentBase :: {
…}
1052 void GroundInterfaceComponentBase ::
1059 portNum < this->getNum_write_OutputPorts(),
1062 this->m_write_OutputPort[portNum].invoke(
1052 void GroundInterfaceComponentBase :: {
…}
1071 void GroundInterfaceComponentBase ::
1072 log_WARNING_HI_GroundInterfaceError()
1076 if (this->m_Time_OutputPort[0].isConnected()) {
1077 this->m_Time_OutputPort[0].invoke(_logTime);
1082 _id = this->getIdBase() + EVENTID_GROUNDINTERFACEERROR;
1085 if (this->m_Log_OutputPort[0].isConnected()) {
1088#if FW_AMPCS_COMPATIBLE
1098 this->m_Log_OutputPort[0].invoke(
1107#if FW_ENABLE_TEXT_LOGGING
1108 if (this->m_LogText_OutputPort[0].isConnected()) {
1109#if FW_OBJECT_NAMES == 1
1110 const char* _formatString =
1111 "(%s) %s: Ground interface encountered an error";
1113 const char* _formatString =
1114 "%s: Ground interface encountered an error";
1126 "GroundInterfaceError "
1132 this->m_LogText_OutputPort[0].invoke(
1071 void GroundInterfaceComponentBase :: {
…}
1149 if (this->m_Time_OutputPort[0].isConnected()) {
1151 this->m_Time_OutputPort[0].invoke(_time);
1166 void GroundInterfaceComponentBase ::
1169 this->m_guardedPortMutex.lock();
1166 void GroundInterfaceComponentBase :: {
…}
1172 void GroundInterfaceComponentBase ::
1175 this->m_guardedPortMutex.unLock();
1172 void GroundInterfaceComponentBase :: {
…}
1182 void GroundInterfaceComponentBase ::
1183 m_p_downlinkPort_in(
1199 void GroundInterfaceComponentBase ::
1200 m_p_fileDownlinkBufferSendIn_in(
1207 GroundInterfaceComponentBase* compPtr =
static_cast<GroundInterfaceComponentBase*
>(callComp);
1214 void GroundInterfaceComponentBase ::
1215 m_p_readCallback_in(
1222 GroundInterfaceComponentBase* compPtr =
static_cast<GroundInterfaceComponentBase*
>(callComp);
1223 compPtr->readCallback_handlerBase(
1229 void GroundInterfaceComponentBase ::
1237 GroundInterfaceComponentBase* compPtr =
static_cast<GroundInterfaceComponentBase*
>(callComp);
1238 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.