16#include "config/macros.h"
222 #if defined (OPEN_LOOP_PBV) && (OPEN_LOOP_PBV == true)
225 uint16_t PeriodMask = 0x7;
This is the generated driver header file for the PWM driver.
This is the generated driver types header file for the PWM driver.
Contains public fault functions.
Contains public functions and data types relevant for DCDT file interface.
#define MINIMUM_DEADTIME
Minimum Deadtime in seconds [sec].
#define MAX_PWM_PERIOD
This sets the switching period of the converter.
void PwrCtrl_Initialize(void)
Initialize the power control parameters.
static void PwrCtrl_StartUpInitialize(void)
Initialize the StartUp Ramp configuration.
void PwrCtrl_Execute(void)
Executes the power control state machine.
POWER_CONTROL_t dab
Global data object for a DAB Converter.
void PwrCtrl_Reset(void)
Resets the power control properties.
static void PwrCtrl_ControlLoopInitialize(void)
Initializes the control loop.
void PwrCtrl_PWM_Update(POWER_CONTROL_t *pcInstance)
PWM distribution for DAB converter.
void PwrCtrl_PWM_Disable(void)
Disable the PWM output.
void PwrCtrl_StateMachine(POWER_CONTROL_t *pcInstance)
Manages the power control state machine.
void PwrCtrl_IComp_Initialize(void)
Initialize the Current Loop Control.
void PwrCtrl_PComp_Initialize(void)
Initialize the Power Loop Control.
void PwrCtrl_VComp_Initialize(void)
Initialize the Voltage Loop Control.
void PwrCtrl_ResetControlLoopHistories(void)
Clear the control and error histories of the control loops.
@ PWR_CTRL_DISCHARGING
power converter is in discharging mode
static void PWM_Enable(void)
This inline function will enable all the generators of PWM module.
uint16_t ControlPeriod
Control period value from control loop.
uint16_t DeadTimeHigh
Deadtime High settings for PWM.
uint16_t DeadTimeLow
Deadtime High settings for PWM.
uint16_t PBVPeriodTarget
Power Board Visualizer Set Control target.
uint16_t ControlPhase
Control phase value from control loop.
uint16_t PBVControlPhaseTarget
Power Board Visualizer Set Control phase.
bool RampComplete
indicates when ramp-up is complete
uint16_t Delay
Soft-Start Period (POD, RAMP PERIOD, PGD, etc.)
uint16_t * ptrReferenceTarget
pointer to the ramp-up reference target
uint16_t * ptrReference
pointer the reference variable
uint16_t Counter
Soft-Start Execution Counter. This setting is set/cleared by the device driver and is 'read only'.
uint16_t StepSize
Size/value of one reference increment/decrement or this period.
uint16_t Output
controller output
bool Enable
Enable control loop.
int16_t Reference
actual reference
int16_t AgcFactor
Adaptive gain control.
uint16_t PwrReference
User power reference setting used to control the converter controller.
int16_t IReference
User current reference setting used to control the converter controller.
uint16_t VPriReference
User primary-voltage port reference setting used to control the power converter output voltage in boo...
uint16_t VSecReference
User secondary-voltage port reference setting used to control the power converter output voltage in b...
Power control API structure.
CONTROLLER_t ILoop
structure for current controller data
SWITCH_NODE_t Pwm
Switch node settings.
CONTROLLER_t PLoop
structure for power controller data
PWR_CTRL_PROPERTIES_t Properties
Power Control properties
CONTROLLER_t VLoop
structure for voltage controller data
START_UP_RAMP_t PRamp
Power ramp-up settings.
PWR_CTRL_CHARGE_STATE_t PowerDirection
defines if the power converter is in charging or discharging mode
START_UP_RAMP_t VRamp
Voltage ramp-up settings.
START_UP_RAMP_t IRamp
Current ramp-up settings.