 |
EPC9143 300 W 16th Brick DC/DC Module Reference Design
|
|
45 #include "config/hal.h"
46 #include "app_power_control.h"
48 #include "./devices/dev_buck_converter.h"
49 #include "fault_handler/app_fault_monitor.h"
97 volatile uint16_t retval=1;
98 volatile uint16_t _i=0;
99 volatile uint16_t i_dummy=0;
137 #if (PLANT_MEASUREMENT == false)
178 volatile uint16_t retval=1;
212 volatile uint16_t retval=1;
240 volatile uint16_t retval=1;
261 volatile uint16_t retval=1;
282 volatile uint16_t retval=0;
322 static int16_t offset=0;
331 offset = (((++offset)>0x07) ? 0x07 : offset);
335 offset = (((--offset)<0x00) ? 0x00 : offset);
volatile uint16_t * ptrObject
Pointer to register or variable which should be monitored.
#define BUCK_ISNS2_ADCBUF
ADC input buffer of this ADC channel.
volatile bool Enabled
Bit 15: Control bit enabling/disabling monitoring of the fault object.
volatile struct BUCK_ADC_INPUT_SCALING_s scaling
normalization scaling settings
volatile uint16_t * ptrControlReference
Pointer to global variable of input register holding the controller reference value (e....
volatile uint16_t i_out
BUCK common output current.
volatile uint16_t no_of_phases
number of converter phases
volatile uint16_t i_sns[BUCK_MPHASE_COUNT]
BUCK output current.
volatile uint16_t appPowerSupply_PeripheralsInitialize(void)
This function is used to load peripheral configuration templates from the power controller device dri...
BUCK control & monitoring data structure.
volatile uint16_t appPowerSupply_Start(void)
This function calls the buck converter device driver function starting the power supply.
volatile bool enabled
Bit 15: enables/disables control loop execution.
volatile uint16_t appPowerSupply_Stop(void)
This function calls the buck converter device driver function stopping the power supply.
volatile struct BUCK_FEEDBACK_SETTINGS_s feedback
BUCK converter feedback settings.
volatile int16_t offset
Signal offset as signed integer to be subtracted from ADC input.
volatile struct NPNZ_PORTS_s Ports
Controller input and output ports.
volatile struct NPNZ_STATUS_s status
Control Loop Status and Control flags.
volatile uint16_t appPowerSupply_ConverterObjectInitialize(void)
This function initializes the buck converter device driver instance.
volatile struct FAULT_OBJECT_s fltobj_BuckRegErr
Regulation Error Fault Object.
volatile struct NPNZ_PORT_s AltTarget
Secondary data output port declaration.
#define BUCK_VIN_ADCBUF
ADC input buffer of this ADC channel.
volatile uint16_t v_in
BUCK input voltage.
volatile struct FLT_OBJECT_STATUS_s Status
Status word of this fault object.
volatile uint16_t drv_BuckConverter_Suspend(volatile struct BUCK_CONVERTER_s *buckInstance)
This function suspends the operation of the buck converter.
volatile struct BUCK_CONVERTER_s buck
Global data object for a BUCK CONVERTER.
volatile struct FAULT_OBJECT_s fltobj_BuckOCP
Over Current Protection Fault Object.
#define _BUCK_VLOOP_ISR_IE
Interupt vector enable bit register bit.
volatile uint16_t appPowerSupply_Execute(void)
This is the top-level function call triggering the most recent state machine of all associated power ...
#define _BUCK_VLOOP_ISR_IF
Interupt vector flag bit register bit.
volatile struct BUCK_CONVERTER_STATUS_s status
BUCK operation status bits.
volatile uint16_t appPowerSupply_Suspend(void)
This function stops the power supply operation.
#define BUCK_VOUT_ISR_PRIORITY
Voltage loop interrupt vector priority (valid settings between 0...6 with 6 being the highest priorit...
#define _BUCK_VLOOP_ISR_IP
Interupt vector priority register.
volatile struct BUCK_LOOP_SETTINGS_s v_loop
BUCK voltage control loop object.
struct BUCK_STATE_ID_s::@3::@4 bits
volatile bool enabled
Bit #15: Control bit enabling/disabling the charger port.
void appPowerSupply_CurrentBalancing(void)
This function performs current balancing between the power supply phases.
volatile struct BUCK_CONVERTER_SETTINGS_s set_values
Control field for global access to references.
volatile uint16_t appPowerSupply_ControllerInitialize(void)
This function initializes the control system feedback loop objects.
volatile uint16_t appPowerSupply_Resume(void)
This function resumes the power supply operation.
volatile struct BUCK_CONVERTER_DATA_s data
BUCK runtime data.
volatile uint16_t drv_BuckConverter_Stop(volatile struct BUCK_CONVERTER_s *buckInstance)
This function stop the buck converter opration.
volatile struct FLT_COMPARE_OBJECT_s ReferenceObject
Reference object the source should be compared with.
volatile uint16_t drv_BuckConverter_Execute(volatile struct BUCK_CONVERTER_s *buckInstance)
This function is the main buck converter state machine executing the most recent state.
#define BUCK_ISNS1_ADCBUF
ADC input buffer of this ADC channel.
volatile uint16_t drv_BuckConverter_Resume(volatile struct BUCK_CONVERTER_s *buckInstance)
This function resume the operation of the buck converter.
volatile struct NPNZ16b_s * controller
pointer to control loop object data structure
volatile int16_t Offset
Value/signal offset of this port.
volatile struct BUCK_ADC_INPUT_SETTINGS_s ad_isns[BUCK_MPHASE_COUNT]
ADC input sampling phase current.
volatile uint16_t drv_BuckConverter_Start(volatile struct BUCK_CONVERTER_s *buckInstance)
This function starts the buck converter.
volatile uint16_t appPowerSupply_Initialize(void)
Calls the application layer power controller initialization.
volatile struct BUCK_STATE_ID_s state_id
BUCK state machine operating state ID.