18#include "system/pins.h"
21#include "config/macros.h"
22#include "config/config.h"
61 #if defined (OPEN_LOOP_PBV) && (OPEN_LOOP_PBV == false)
74 #if defined (PERIOD_MODULATION_DEMO) && (PERIOD_MODULATION_DEMO == true)
80 #if defined (DAC_DEBUG) && (DAC_DEBUG == true)
85 #if defined (OPEN_LOOP_POTI) && (OPEN_LOOP_POTI == true)
This is the generated driver header file for the ADC1 driver.
This is the generated driver header file for the SCCP1-TIMER driver.
Contains public fault functions.
void PwrCtrl_ControlLoopExecute(void)
void PwrCtrl_PeriodModulator(void)
#define ADC_PERIOD_RANGE
This is the calculation for ADC equivalent with Period range. NOTE: only use in Debugging moode using...
#define MIN_PWM_PERIOD
This sets the switching period of the converter.
POWER_CONTROL_t dab
Global data object for a DAB Converter.
void PwrCtrl_DeadTimeAdjust(void)
This function updates the DAB data members dead time based on load.
void PwrCtrl_UpdateADConverterData(void)
This function updates the DAB data members with ADC raw values.
void PwrCtrl_10KHzVPLoopPrepareData(void)
This function prepares the data for control loop and selects which control loop will be executed.
void PwrCtrl_PrimToSecPHDegree(void)
This function updates the DAB data members with phase values normalized in degree.
void ControlLoop_Interrupt_CallBack(void)
Executes the power converter control loop.
void PwrCtrl_PWM_Update(POWER_CONTROL_t *pcInstance)
PWM distribution for DAB converter.
void Fault_Execute(void)
Executes the fault handlers.
static void ADC1_SoftwareTriggerEnable(void)
This inline function sets software common trigger.
#define GPIO_1_SetHigh()
Sets the RC10 GPIO Pin which has a custom name of GPIO_1 to High.
#define GPIO_1_SetLow()
Sets the RC10 GPIO Pin which has a custom name of GPIO_1 to Low.
uint16_t ControlPeriod
Control period value from control loop.
uint16_t ControlPhase
Control phase value from control loop.
uint16_t ISecAverage
Data value for average secondary current as measured with isolated current sensor.
uint16_t ISenseSecondary
Data value for secondary current as measured with CT.
unsigned Running
Bit 0: Power converter is running.
SWITCH_NODE_t Pwm
Switch node settings.
FEEDBACK_SETTINGS_t Data
Feedback channel settings.
STATUS_FLAGS_t Status
Power Supply status flags, running or fault.