|  | 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
17 struct AVERAGING_s
18{
19 uint32_t Accumulator;
20 uint16_t Counter;
21 uint16_t AveragingCount;
22 uint16_t AverageValue;
23};
24 typedef 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
PwrCtrl_RampReference
bool PwrCtrl_RampReference(START_UP_RAMP_t *rampUp)
Softly increment / decrement to the set reference target.
Definition pwrctrl_common.c:46
PwrCtrl_UpdateAverage
uint16_t PwrCtrl_UpdateAverage(AVERAGING_t *data, uint16_t adcReading)
Average the raw data over number of samples.
Definition pwrctrl_common.c:25
AVERAGING_s
Definition pwrctrl_common.h:18
AVERAGING_s::Accumulator
uint32_t Accumulator
Definition pwrctrl_common.h:19
AVERAGING_s::AveragingCount
uint16_t AveragingCount
Definition pwrctrl_common.h:21
AVERAGING_s::AverageValue
uint16_t AverageValue
Definition pwrctrl_common.h:22
AVERAGING_s::Counter
uint16_t Counter
Definition pwrctrl_common.h:20
START_UP_RAMP_s
Stores data related to the ramping up/down of the reference.
Definition pwrctrl_typedef.h:99