ModusToolbox Power Conversion Middleware
All Data Structures Functions Variables Typedefs Modules Pages
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 targ The desired target reference value, updated by the mtb_pwrconv_set_target() function.
uint32_t ref The current working reference value, updated by the mtb_pwrconv_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.
uint32_t state The converter state/status flags States, typically accessed by mtb_pwrconv_get_state() in user code.

◆ mtb_stc_pwrconv_t

struct mtb_stc_pwrconv_t
Data Fields
uint8_t type The converter type/topology, Types.
uint32_t targ The initial target value.
uint32_t targMax The maximal acceptable target value, in millivolts.
uint32_t targMin The minimal acceptable target value, in millivolts.
uint16_t refNum The numerator for reference calculation, equals to the channel gain (internal and external) * ADC resolution, used by the mtb_pwrconv_set_target to recalculate the target millivolts into the reference ADC counts in the Infineon Control Loop mode.
uint16_t refDen The denominator for reference calculation, equals to the ADC reference voltage in millivolts, used by the mtb_pwrconv_set_target to recalculate the target millivolts into the reference ADC counts in the Infineon Control Loop mode.
uint16_t rampStep The reference update ramping step, must be positive and non-zero.
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.
uint32_t syncStartTrig The synchronous starting TrigMux line.
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 disable_hw The pointer to the topology-specific HW disabling function.