11 m_ticks(0),m_rollover(1),m_configured(false) {
30 this->m_dividers[entry] = dividerSet.
dividers[entry];
37 this->m_configured =
true;
54 if (this->m_dividers[entry].divisor != 0) {
56 if ((this->m_ticks % this->m_dividers[entry].divisor) == this->m_dividers[entry].offset) {
57 this->
CycleOut_out(static_cast<FwIndexType>(entry),cycleStart);
65 this->m_ticks = (this->m_ticks + 1) % this->m_rollover;
PlatformUIntType NATIVE_UINT_TYPE
PlatformIntType NATIVE_INT_TYPE
static const NATIVE_UINT_TYPE DIVIDER_SIZE
Size of the divider table, provided as a constants to users passing the table in. ...
NATIVE_INT_TYPE offset
Offset.
Auto-generated base for RateGroupDriver component.
void CycleOut_out(FwIndexType portNum, Os::RawTime &cycleStart)
Invoke output port CycleOut.
FwIndexType getNum_CycleOut_OutputPorts() const
void configure(const DividerSet ÷rsSet)
RateGroupDriver configuration function.
RateGroupDivider component implementation.
bool isConnected_CycleOut_OutputPort(FwIndexType portNum)
C++-compatible configuration header for fprime configuration.
RateGroupDriver(const char *compName)
RateGroupDriver constructor.
NATIVE_INT_TYPE divisor
Divisor.
Divider dividers[Svc::RateGroupDriver::DIVIDER_SIZE]
Dividers.
~RateGroupDriver()
RateGroupDriverImpl destructor.
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
Struct containing an array of dividers.