10 #if FW_ENABLE_TEXT_LOGGING 32 this->m_CycleIn_InputPort[port].
init();
37 this->m_CycleIn_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1 43 this->m_objName.toChar(),
46 this->m_CycleIn_InputPort[port].setObjName(portName.
toChar());
56 this->m_Time_OutputPort[port].
init();
58 #if FW_OBJECT_NAMES == 1 62 this->m_objName.toChar(),
65 this->m_Time_OutputPort[port].setObjName(portName.
toChar());
75 this->m_Tlm_OutputPort[port].
init();
77 #if FW_OBJECT_NAMES == 1 81 this->m_objName.toChar(),
84 this->m_Tlm_OutputPort[port].setObjName(portName.
toChar());
94 this->m_RateGroupMemberOut_OutputPort[port].
init();
96 #if FW_OBJECT_NAMES == 1 100 this->m_objName.toChar(),
103 this->m_RateGroupMemberOut_OutputPort[port].setObjName(portName.
toChar());
117 static_cast<FwAssertArgType>(portNum)
120 return &this->m_CycleIn_InputPort[portNum];
135 static_cast<FwAssertArgType>(portNum)
138 this->m_Time_OutputPort[portNum].
addCallPort(port);
149 static_cast<FwAssertArgType>(portNum)
167 static_cast<FwAssertArgType>(portNum)
170 this->m_RateGroupMemberOut_OutputPort[portNum].
addCallPort(port);
173 #if FW_PORT_SERIALIZATION 182 Fw::InputSerializePort* port
187 static_cast<FwAssertArgType>(portNum)
190 this->m_Time_OutputPort[portNum].registerSerialPort(port);
196 Fw::InputSerializePort* port
201 static_cast<FwAssertArgType>(portNum)
204 this->m_Tlm_OutputPort[portNum].registerSerialPort(port);
209 #if FW_PORT_SERIALIZATION 218 Fw::InputSerializePort* port
223 static_cast<FwAssertArgType>(portNum)
226 this->m_RateGroupMemberOut_OutputPort[portNum].registerSerialPort(port);
237 Fw::PassiveComponentBase(compName)
240 this->m_first_update_MaxCycleTime =
true;
241 this->m_last_MaxCycleTime = 0;
295 static_cast<FwAssertArgType>(portNum)
298 return this->m_Time_OutputPort[portNum].
isConnected();
306 static_cast<FwAssertArgType>(portNum)
309 return this->m_Tlm_OutputPort[portNum].
isConnected();
321 static_cast<FwAssertArgType>(portNum)
324 return this->m_RateGroupMemberOut_OutputPort[portNum].
isConnected();
342 static_cast<FwAssertArgType>(portNum)
364 static_cast<FwAssertArgType>(portNum)
368 this->m_RateGroupMemberOut_OutputPort[portNum].isConnected(),
369 static_cast<FwAssertArgType>(portNum)
371 this->m_RateGroupMemberOut_OutputPort[portNum].
invoke(
387 if (not this->m_first_update_MaxCycleTime) {
389 if (arg == this->m_last_MaxCycleTime) {
393 this->m_last_MaxCycleTime = arg;
397 this->m_first_update_MaxCycleTime =
false;
398 this->m_last_MaxCycleTime = arg;
401 if (this->m_Tlm_OutputPort[0].isConnected()) {
403 this->m_Time_OutputPort[0].isConnected() &&
406 this->m_Time_OutputPort[0].
invoke(_tlmTime);
413 static_cast<FwAssertArgType>(_stat)
420 this->m_Tlm_OutputPort[0].
invoke(
434 if (this->m_Tlm_OutputPort[0].isConnected()) {
436 this->m_Time_OutputPort[0].isConnected() &&
439 this->m_Time_OutputPort[0].
invoke(_tlmTime);
446 static_cast<FwAssertArgType>(_stat)
453 this->m_Tlm_OutputPort[0].
invoke(
467 if (this->m_Tlm_OutputPort[0].isConnected()) {
469 this->m_Time_OutputPort[0].isConnected() &&
472 this->m_Time_OutputPort[0].
invoke(_tlmTime);
479 static_cast<FwAssertArgType>(_stat)
486 this->m_Tlm_OutputPort[0].
invoke(
501 if (this->m_Time_OutputPort[0].isConnected()) {
503 this->m_Time_OutputPort[0].
invoke(_time);
515 void PassiveRateGroupComponentBase ::
Serialization/Deserialization operation was successful.
Channel ID for MaxCycleTime.
FwIndexType getNum_Tlm_OutputPorts() const
void addCallPort(InputTimePort *callPort)
Register an input port.
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
bool isConnected_Time_OutputPort(FwIndexType portNum)
U32 FwChanIdType
The type of a telemetry channel identifier.
void set_Tlm_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to Tlm[portNum].
void init()
Initialization function.
bool isConnected_Tlm_OutputPort(FwIndexType portNum)
void addCallPort(InputTlmPort *callPort)
Register an input port.
void init()
Object initializer.
SerializeStatus
forward declaration for string
bool isConnected_RateGroupMemberOut_OutputPort(FwIndexType portNum)
void init()
Initialization function.
void invoke(U32 context) const
Invoke a port interface.
Channel ID for CycleTime.
void invoke(Fw::Time &time) const
Invoke a port interface.
void tlmWrite_CycleTime(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
const char * toChar() const
No time base has been established.
virtual ~PassiveRateGroupComponentBase()
Destroy PassiveRateGroupComponentBase object.
void invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke a port interface.
Auto-generated base for PassiveRateGroup component.
PassiveRateGroupComponentBase(const char *compName="")
Construct PassiveRateGroupComponentBase object.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
FwIndexType getNum_RateGroupMemberOut_OutputPorts() const
void tlmWrite_MaxCycleTime(U32 arg, Fw::Time _tlmTime=Fw::Time())
void tlmWrite_CycleCount(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
PlatformIndexType FwIndexType
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void init()
Initialization function.
void RateGroupMemberOut_out(FwIndexType portNum, U32 context)
Invoke output port RateGroupMemberOut.
void set_RateGroupMemberOut_OutputPort(FwIndexType portNum, Svc::InputSchedPort *port)
Connect port to RateGroupMemberOut[portNum].
virtual void CycleIn_handler(FwIndexType portNum, Os::RawTime &cycleStart)=0
Handler for input port CycleIn.
RateGroupDivider component implementation.
void CycleIn_handlerBase(FwIndexType portNum, Os::RawTime &cycleStart)
Handler base-class function for input port CycleIn.
FwIndexType getNum_CycleIn_InputPorts() const
Svc::InputCyclePort * get_CycleIn_InputPort(FwIndexType portNum)
FwIndexType getNum_Time_OutputPorts() const
void addCallPort(InputSchedPort *callPort)
Register an input port.
Channel ID for CycleCount.