Contains generic functions that handles power control ramp Up/Down and the averaging generic function. More...
#include <xc.h>
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include "pwrctrl.h"
Go to the source code of this file.
Functions | |
uint16_t | PwrCtrl_UpdateAverage (AVERAGING_t *data, uint16_t sample) |
Average the raw data over number of samples. | |
uint16_t | PwrCtrl_UpdateAverageRolling (AVERAGING_ROLLING_t *data, uint16_t sample) |
Rolling Average the raw data over number of samples. | |
bool | PwrCtrl_RampReference (START_UP_RAMP_t *rampUp) |
Softly increment / decrement to the set reference target. | |
Definition in file pwrctrl_common.c.