Bar Logo 4kW dsPIC33C PSFB DC-DC DA (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
18#include "pwrctrl_typedef.h"
19
20extern uint16_t PwrCtrl_UpdateAverage(AVERAGING_t* data, uint16_t adcReading);
21extern uint16_t PwrCtrl_UpdateAverageRolling(AVERAGING_ROLLING_t* data, uint16_t sample);
22extern bool PwrCtrl_RampReference(START_UP_RAMP_t* rampUp);
23
24#endif /* DEV_PWRCTRL_UTILS_H */
25
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 adcReading)
Average the raw data over number of samples.
Stores data related to the ramping up/down of the reference.
Averaging data type.