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

Variables of the buck converter state machine. More...

+ Collaboration diagram for Variables & Constants:

Variables

volatile uint16_t(* BuckConverterStateMachine [])(volatile struct BUCK_CONVERTER_s *buckInstance)
 Buck converter state machine function pointer array. More...
 
volatile uint16_t BuckStateList_size = (sizeof(BuckConverterStateMachine)/sizeof(BuckConverterStateMachine[0]))
 Buck converter state machine function pointer array size
More...
 
volatile uint16_t(* BuckConverterRampUpSubStateMachine [])(volatile struct BUCK_CONVERTER_s *buckInstance)
 Buck converter state machine function pointer array. More...
 
volatile uint16_t BuckRampUpSubStateList_size = (sizeof(BuckConverterRampUpSubStateMachine)/sizeof(BuckConverterRampUpSubStateMachine[0]))
 Buck converter sub-state machine function pointer array size. More...
 

Detailed Description

Variables of the buck converter state machine.

Variable Documentation

◆ BuckConverterRampUpSubStateMachine

volatile uint16_t(* BuckConverterRampUpSubStateMachine)[](volatile struct BUCK_CONVERTER_s *buckInstance)
extern

Buck converter state machine function pointer array.

Function pointer array of buck converter startup sub-states.

The function pointer list BuckConverterRampUpSubStateMachine[] is providing access to a list of state functions. Each function mapped into this array as function pointer represents a self-contained, independent sub-state. The main state machine will call functions from this list in order of their index within the array, starting from '0'. While this list is executed, the calling main state is transparent by passing through the return value of the most recent sub-state. Once all sub-states have been executed, the calling main state will return the COMPLETE flag, allowing the main state machine to move on.

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

◆ BuckConverterStateMachine

volatile uint16_t(* BuckConverterStateMachine)[](volatile struct BUCK_CONVERTER_s *buckInstance)
extern

Buck converter state machine function pointer array.

Function pointer array defining the state machine execution sequence

The function pointer list BuckConverterStateMachine[] is providing access to a list of state functions. Each function mapped into this array as function pointer represents a self-contained, independent sub-state. The main state machine will call functions from this list in order of their index within the array, starting from '0'. While this list is executed, the calling main state is transparent by passing through the return value of the most recent sub-state. Once all sub-states have been executed, the calling main state will return the COMPLETE flag, allowing the main state machine to move on.

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

◆ BuckRampUpSubStateList_size

volatile uint16_t BuckRampUpSubStateList_size = (sizeof(BuckConverterRampUpSubStateMachine)/sizeof(BuckConverterRampUpSubStateMachine[0]))

Buck converter sub-state machine function pointer array size.

Buck converter state machine function pointer array size.

Definition at line 35 of file dev_buck_substates.c.

◆ BuckStateList_size

volatile uint16_t BuckStateList_size = (sizeof(BuckConverterStateMachine)/sizeof(BuckConverterStateMachine[0]))

Buck converter state machine function pointer array size

Buck converter state machine function pointer array size.

Definition at line 39 of file dev_buck_opstates.c.