27 m_cycleStarted(false),
40 this->m_numContexts = numContexts;
43 this->m_contexts[entry] = contexts[entry];
55 void ActiveRateGroup::preamble() {
66 this->m_cycleStarted =
false;
79 U32 cycle_time = end.diffUSec(cycleStart);
82 if (cycle_time > this->m_maxTime) {
83 this->m_maxTime = cycle_time;
91 if (this->m_cycleStarted) {
95 this->m_overrunThrottle++;
100 if (this->m_overrunThrottle > 0) {
101 this->m_overrunThrottle--;
112 this->m_cycleStarted =
true;
115 void ActiveRateGroup::PingIn_handler(
NATIVE_INT_TYPE portNum, U32 key) {
PlatformIntType NATIVE_INT_TYPE
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
C++-compatible configuration header for fprime configuration.
void init()
Object initializer.
Auto-generated base for ActiveRateGroup component.
void tlmWrite_RgMaxTime(U32 arg, Fw::Time _tlmTime=Fw::Time())
void tlmWrite_RgCycleSlips(U32 arg, Fw::Time _tlmTime=Fw::Time())
void RateGroupMemberOut_out(NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context)
Invoke output port RateGroupMemberOut.
void log_WARNING_HI_RateGroupCycleSlip(U32 cycle)
void PingOut_out(NATIVE_INT_TYPE portNum, U32 key)
Invoke output port PingOut.
bool isConnected_RateGroupMemberOut_OutputPort(NATIVE_INT_TYPE portNum)
void log_DIAGNOSTIC_RateGroupStarted()
NATIVE_INT_TYPE getNum_RateGroupMemberOut_OutputPorts() const
void configure(NATIVE_INT_TYPE contexts[], NATIVE_INT_TYPE numContexts)
ActiveRateGroup configuration function.
~ActiveRateGroup()
ActiveRateGroup destructor.
ActiveRateGroup(const char *compName)
ActiveRateGroup constructor.
Serializable class for carrying timer values.
@ ACTIVE_RATE_GROUP_OVERRUN_THROTTLE
Number of overruns allowed before overrun event is throttled.