Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example

List of variables of the Special Function state machine extensions. More...

+ Collaboration diagram for Variables & Constants:

Variables

volatile struct CS_CALIBRATION_s calib_cs [BUCK_MPHASE_COUNT]
 Array of current sense calibration data objects of type CS_CALIBRATION_t. More...
 
volatile uint16_t(* BuckConverterSpecialFunctions [])(volatile struct BUCK_CONVERTER_s *buckInstance)
 Function pointer list of all special function sub-state functions. More...
 

Detailed Description

List of variables of the Special Function state machine extensions.

Variable Documentation

◆ BuckConverterSpecialFunctions

BuckConverterSpecialFunctions
Initial value:

Function pointer list of all special function sub-state functions.

The function pointer list BuckConverterSpecialFunctions[] is providing public access to a list of functions serving special purposes supporting specific power converter configuration options. Each function mapped into this array as function pointer is a self-contained, independent sub-state, which can be called from any level of the main state machine being treated like a common sub-state.

Each function needs to be called by handing over a parameter of type

Each function returns of type unsigned integer:

  • 0 = BUCK_OPSRET_ERROR
  • 1 = BUCK_OPSRET_COMPLETE
  • 2 = BUCK_OPSRET_REPEAT

Recently available Special Functions<b>

  • Current Sense Feedback Offset Calibration

Definition at line 88 of file dev_buck_special_functions.c.

◆ calib_cs

struct CS_CALIBRATION_s calib_cs[BUCK_MPHASE_COUNT]

Array of current sense calibration data objects of type CS_CALIBRATION_t.

The current sense feedback offset calibration requires a data space to accumulate and average the static feedback offset value. The final result is written to the feedback channel configuration of the buck converter data object, hence, the CS_CALIBRATION_s data structure used for the current sense feedback offset calibration is kept private and inaccessible from external firmware modules. This variable is declared as array reserving a data set for each current sense feedback channel.

Definition at line 1 of file dev_buck_special_functions.c.

CurrentSenseOffsetCalibration
volatile uint16_t CurrentSenseOffsetCalibration(volatile struct BUCK_CONVERTER_s *buckInstance)
Performs an offset calibration of the current sense feedback signal(s)
Definition: dev_buck_special_functions.c:178