51 __builtin_divmodud(data->
Index+1, ROLLING_AVG_SAMPLE_POINTS, &data->
Index);
bool PwrCtrl_RampReference(START_UP_RAMP_t *rampUp)
Softly increment / decrement to the set reference target.
uint16_t PwrCtrl_UpdateAverageRolling(AVERAGING_ROLLING_t *data, uint16_t sample)
Rolling Average the raw data over number of samples.
uint16_t PwrCtrl_UpdateAverage(AVERAGING_t *data, uint16_t sample)
Average the raw data over number of samples.
Stores data related to the ramping up/down of the reference.
bool RampComplete
indicates when ramp-up is complete
uint16_t Delay
Soft-Start Period (POD, RAMP PERIOD, PGD, etc.)
uint16_t * ptrReferenceTarget
pointer to the ramp-up reference target
uint16_t * ptrReference
pointer the reference variable
uint16_t Counter
Soft-Start Execution Counter. This setting is set/cleared by the device driver and is 'read only'.
uint16_t StepSize
Size/value of one reference increment/decrement or this period.
uint16_t samples[ROLLING_AVG_SAMPLE_POINTS]