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) {
65 this->m_ticks = (this->m_ticks + 1) % this->m_rollover;
PlatformIntType NATIVE_INT_TYPE
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
PlatformUIntType NATIVE_UINT_TYPE
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
RateGroupDivider component implementation.
Auto-generated base for RateGroupDriver component.
FwIndexType getNum_CycleOut_OutputPorts() const
void CycleOut_out(FwIndexType portNum, Os::RawTime &cycleStart)
Invoke output port CycleOut.
bool isConnected_CycleOut_OutputPort(FwIndexType portNum)
~RateGroupDriver()
RateGroupDriverImpl destructor.
RateGroupDriver(const char *compName)
RateGroupDriver constructor.
void configure(const DividerSet ÷rsSet)
RateGroupDriver configuration function.
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 divisor
Divisor.
NATIVE_INT_TYPE offset
Offset.
Struct containing an array of dividers.
Divider dividers[Svc::RateGroupDriver::DIVIDER_SIZE]
Dividers.