ModusToolbox Power Conversion Middleware
Data Structures

General Description

Data Structures

struct  mtb_stc_pwrconv_ctx_t
 The context data structure. More...
 
struct  mtb_stc_pwrconv_t
 The instance structure, which includes all the instance-specific settings: type, reference, ramping, context, regulator, HW-integration, etc. More...
 

Data Structure Documentation

◆ mtb_stc_pwrconv_ctx_t

struct mtb_stc_pwrconv_ctx_t
Data Fields
uint32_t ref The current working reference value, updated by the myPwrConv_ramp() function.
uint32_t res The measured result, the intermediate value, being copied from the ADC result register by generated FW or by the DMA and then being used to calculate the error value and also being used for the monitoring/protection purpose by the myPwrConv_Vout_get_result() function.
int32_t err The intermediate error value - the difference between the reference and measured value.
uint32_t mod The modulator value, typically being updated by the generated FW regulator (or by user code in case of custom control loop), and then copied into PWM or DAC within the generated ISR, common for all interleaved phases.

◆ mtb_stc_pwrconv_t

struct mtb_stc_pwrconv_t
Data Fields
mtb_stc_pwrconv_ctx_t * ctx The pointer to the context RAM structure with converter live data.
mtb_func_pwrconv_t init_reg The pointer to the topology-specific regulator initialization function.
mtb_func_pwrconv_t init_hw The pointer to the topology-specific HW initialization function.
mtb_func_pwrconv_t enable_hw The pointer to the topology-specific HW enabling function.
mtb_func_pwrconv_t start_hw The pointer to the topology-specific HW starting function.
mtb_func_pwrconv_t disable_hw The pointer to the topology-specific HW disabling function.