39#include "config/macros.h"
74 switch (pcInstance->
State)
118 #if defined (CURRENT_CALIBRATION) && (CURRENT_CALIBRATION == true)
201 #if defined (CURRENT_CALIBRATION) && (CURRENT_CALIBRATION == true)
333 #if defined (OPEN_LOOP_PBV) && (OPEN_LOOP_PBV == true)
This is the generated driver header file for the PWM driver.
Contains h files that are part of device layer.
Contains public fault functions.
Contains public functions and data types relevant for DCDT file interface.
uint16_t Dev_CurrentSensor_Get_CalibrationStatus(void)
API function to get the calibration status.
void Dev_CurrentSensor_Clr_Offset(void)
API function to clear the sensor offset.
uint16_t Dev_CurrentSensor_Get_Offset(void)
API function to get the sensor offset.
void Dev_CurrentSensorOffsetCal(void)
Measures the currents sensor offset.
void PwrCtrl_Initialize(void)
Initialize the power control parameters.
POWER_CONTROL_t dab
Global data object for a DAB Converter.
void PwrCtrl_Reset(void)
Resets the power control properties.
void PwrCtrl_PWM_DAB_DirectionSpecificSwapCfg(PWR_CTRL_CHARGE_STATE_t direction)
Forward/Reverse Direction related swap pattern on PWM output.
void PwrCtrl_PWM_Update(POWER_CONTROL_t *pcInstance)
PWM distribution for DAB converter.
void PwrCtrl_PWM_Disable(void)
Disable the PWM output.
void PwrCtrl_PWM_Enable(void)
Enable the PWM output.
void PwrCtrl_StateMachine(POWER_CONTROL_t *pcInstance)
Manages the power control state machine.
static void PCS_STANDBY_handler(POWER_CONTROL_t *pcInstance)
Executes Standby State machine.
static void PCS_INIT_handler(POWER_CONTROL_t *pcInstance)
Executes function for initialze state machine.
static void PCS_UP_AND_RUNNING_handler(POWER_CONTROL_t *pcInstance)
Executes the Online state.
static void PCS_WAIT_IF_FAULT_ACTIVE_handler(POWER_CONTROL_t *pcInstance)
Executes the fault handler state machine.
static void PCS_SOFT_START_handler(POWER_CONTROL_t *pcInstance)
Executes the power control soft start state machine.
bool PwrCtrl_RampReference(START_UP_RAMP_t *rampUp)
Softly increment / decrement to the set reference target.
@ PWRCTRL_STATE_ONLINE
power converter control state #4: output is in regulation and power is OK (normal continuous operatio...
@ PWRCTRL_STATE_STANDBY
power converter control state #2: waiting for status bits allowing power supply to run
@ PWRCTRL_STATE_INITIALIZE
power converter control state #0: initializes object properties and clears status bits
@ PWRCTRL_STATE_SOFT_START
power converter control state #3: performs soft-start sequence
@ PWRCTRL_STATE_FAULT_DETECTION
power converter control state #1: checks if a fault occurs
@ PWR_CTRL_CHARGING
power converter is in charging mode
@ PWR_CTRL_DISCHARGING
power converter is in discharging mode
void Fault_Reset(void)
Clears the fault object flag bits.
static void PWM_Disable(void)
This inline function will disable all the generators of PWM module.
uint16_t FaultDetected
Fault indication for fault occurrence.
uint16_t ControlPeriod
Control period value from control loop.
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.
uint16_t ISecSensorOffset
Offset of the secondary current sensor.
unsigned Running
Bit 0: Power converter is running.
unsigned FaultActive
Bit 1: Power converter fault is active.
uint16_t * ptrReferenceTarget
pointer to the ramp-up reference target
bool Enable
Enable control loop.
int16_t Reference
actual reference
uint16_t PwrReference
User power reference setting used to control the converter controller.
bool Enable
Control Flag: When set, enables the converter triggering a startup sequence; When cleared,...
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_STATE_t State
Power Control SM State ID.
FEEDBACK_SETTINGS_t Data
Feedback channel settings.
PWR_CTRL_CHARGE_STATE_t PowerDirection
defines if the power converter is in charging or discharging mode
STATUS_FLAGS_t Status
Power Supply status flags, running or fault.
FAULT_SETTINGS_t Fault
Fault flags and settings.
START_UP_RAMP_t VRamp
Voltage ramp-up settings.
START_UP_RAMP_t IRamp
Current ramp-up settings.