Public functions of the second library layer. More...
Functions | |
volatile uint16_t | drv_BuckConverter_SpecialFunctionExecute (volatile struct BUCK_CONVERTER_s *buckInstance, volatile enum BUCK_SPECIAL_FUNCTIONS_e specialFunction) |
This is the public function call access point to call dedicated special sub-functions. More... | |
volatile uint16_t | CurrentSenseOffsetCalibration (volatile struct BUCK_CONVERTER_s *buckInstance) |
Performs an offset calibration of the current sense feedback signal(s) More... | |
Public functions of the second library layer.
This is the detailed description of public functions of the special function module of the buck converter device driver library.
volatile uint16_t CurrentSenseOffsetCalibration | ( | volatile struct BUCK_CONVERTER_s * | buckInstance | ) |
Performs an offset calibration of the current sense feedback signal(s)
buckInstance | Pointer to a Buck Converter data object of type struct BUCK_CONVERTER_s |
This function performs a current sense feedback channel zero-offset calibration. The calibration is executed when the reference voltage is applied to the current sense shunt amplifiers but the power supply is still turned off. The offset value is determined by a 4x oversampling of each of the feedback signals to eliminate high-frequency noise. Once the calibration is complete, the 'cs_calib_complete' status bit in the buck converter power controller object status word is set, allowing the state machine to run.
Definition at line 178 of file dev_buck_special_functions.c.
volatile uint16_t drv_BuckConverter_SpecialFunctionExecute | ( | volatile struct BUCK_CONVERTER_s * | buckInstance, |
volatile enum BUCK_SPECIAL_FUNCTIONS_e | specialFunction | ||
) |
This is the public function call access point to call dedicated special sub-functions.
buckInstance | Pointer to a Buck Converter data object of type struct BUCK_CONVERTER_s |
specialFunction | Special function selection list of type enum BUCK_SPECIAL_FUNCTIONS_e |
This function call is the public API function call to execute one of the special functions supported by this power converter device driver extension.
Example:
The following example initiates the automatic feedback sense offset calibration. Special Functions behave like all other state machine states and sub-states by returning the results ERROR, COMPLETE or REPEAT.
Definition at line 133 of file dev_buck_special_functions.c.