17#include "system/pins.h"
93 uint16_t IloopReference = 0;
This is the generated driver header file for the ADC1 driver.
This is the generated driver types header file for the ADC driver.
Contains public fault functions.
Contains public functions and data types relevant for DCDT file interface.
void SMPS_Controller3P3ZUpdate(SMPS_3P3Z_T *controllerData, volatile uint16_t *controllerInputRegister, int16_t reference, volatile uint16_t *controllerOutputRegister)
void SMPS_Controller2P2ZUpdate(SMPS_2P2Z_T *controllerData, volatile uint16_t *controllerInputRegister, int16_t reference, volatile uint16_t *controllerOutputRegister)
POWER_CONTROL_t * psfb_ptr
void PwrCtrl_ControlLoopExecute(void)
Executes the power converter control loop.
void PwrCtrl_UpdateADConverterData(void)
This function updates the PSFB data members with ADC raw values.
void PwrCtrl_DroopAverage(void)
Averages secondary current for droop.
void PwrCtrl_PWM_Update()
PWM distribution for PSFB converter.
SMPS_2P2Z_T VMC_2p2z
Data Object of voltage mode control generated by DCDT.
SMPS_3P3Z_T IMC_3p3z
Data Object of current mode control.
void PwrCtrl_SetPhaseTarget(uint16_t reference)
API function to set the target PWM phase.
static bool ADC1_IsConversionComplete(enum ADC_CHANNEL channel)
This inline function returns the status of conversion.This function is used to determine if conversio...
static uint16_t ADC1_ConversionResultGet(enum ADC_CHANNEL channel)
Returns the conversion value for the channel selected.
uint16_t VCapVoltage
Data value for capacitor.
uint16_t VInVoltage
Data value for input voltage.
uint16_t VRail_5V
Data value for 5V auxiliary rail.
uint16_t Temperature
Data value for temperature.
uint16_t VOutVoltage
Data value for output voltage.
uint16_t Output
controller output
bool Enable
Enable control loop.
int16_t Reference
actual reference
CONTROLLER_t ILoop
structure for current controller data
CONTROLLER_t VLoop
structure for voltage controller data
FEEDBACK_SETTINGS_t Data
Feedback channel settings.
AVERAGING_t ISecAveraging
secondary current average
uint16_t Secondary_Rolling_val
Secondary Current Rolling Average Value.