Bar Logo Dual Active Bridge Development Board (Part-No. )
 
Content
     
Loading...
Searching...
No Matches
pwrctrl_common.h
Go to the documentation of this file.
1/*
2 * File: pwrctrl_common.h
3 * Author: M15690
4 *
5 * Created on July 11, 2024, 9:20 PM
6 */
7
14#ifndef DEV_PWRCTRL_UTILS_H
15#define DEV_PWRCTRL_UTILS_H
16
18{
19 uint32_t Accumulator;
20 uint16_t Counter;
22 uint16_t AverageValue;
23};
24typedef struct AVERAGING_s AVERAGING_t;
25
26extern uint16_t PwrCtrl_UpdateAverage(AVERAGING_t* data, uint16_t adcReading);
27extern bool PwrCtrl_RampReference(START_UP_RAMP_t* rampUp);
28
29#endif /* DEV_PWRCTRL_UTILS_H */
30
bool PwrCtrl_RampReference(START_UP_RAMP_t *rampUp)
Softly increment / decrement to the set reference target.
uint16_t PwrCtrl_UpdateAverage(AVERAGING_t *data, uint16_t adcReading)
Average the raw data over number of samples.
uint32_t Accumulator
uint16_t AveragingCount
uint16_t AverageValue
uint16_t Counter
Stores data related to the ramping up/down of the reference.