ModusToolbox Power Conversion Middleware
All Data Structures Functions Variables Typedefs Modules Pages
2-pole 2-zero floating point regulator

General Description

Data Structures

struct  mtb_stc_pwrconv_reg_2p2z_float_freq_t
 The regulator poles and zeroes frequencies structure. More...
 
struct  mtb_stc_pwrconv_reg_2p2z_float_cfg_t
 The regulator configuration structure. More...
 
struct  mtb_stc_pwrconv_reg_2p2z_float_dat_t
 The regulator internal data structure. More...
 
struct  mtb_stc_pwrconv_reg_2p2z_float_ctx_t
 The regulator working context data structure. More...
 

Functions

cy_rslt_t mtb_pwrconv_2p2z_float_init (mtb_stc_pwrconv_reg_2p2z_float_ctx_t *ctx, mtb_stc_pwrconv_reg_2p2z_float_cfg_t const *cfg)
 Initialize the 2P2Z Regulator. More...
 
__STATIC_FORCEINLINE cy_rslt_t mtb_pwrconv_2p2z_float_process (mtb_stc_pwrconv_reg_2p2z_float_ctx_t *ctx, int32_t input, uint32_t *output)
 Run the 2P2Z Regulator. More...
 

Data Structure Documentation

◆ mtb_stc_pwrconv_reg_2p2z_float_freq_t

struct mtb_stc_pwrconv_reg_2p2z_float_freq_t
Data Fields
float32_t p[2]
float32_t z[2]

◆ mtb_stc_pwrconv_reg_2p2z_float_cfg_t

struct mtb_stc_pwrconv_reg_2p2z_float_cfg_t
Data Fields
float32_t a[3]
float32_t b[3]
float32_t min
float32_t max

◆ mtb_stc_pwrconv_reg_2p2z_float_dat_t

struct mtb_stc_pwrconv_reg_2p2z_float_dat_t
Data Fields
float32_t i[3]
float32_t o[3]

◆ mtb_stc_pwrconv_reg_2p2z_float_ctx_t

struct mtb_stc_pwrconv_reg_2p2z_float_ctx_t

Function Documentation

◆ mtb_pwrconv_2p2z_float_init()

cy_rslt_t mtb_pwrconv_2p2z_float_init ( mtb_stc_pwrconv_reg_2p2z_float_ctx_t ctx,
mtb_stc_pwrconv_reg_2p2z_float_cfg_t const *  cfg 
)

Initialize the 2P2Z Regulator.

Parameters
[out]cfgThe pointer to the configuration structure.
[out]ctxThe pointer to the data structure, which holds the computation context.
Returns
The initialization status.

◆ mtb_pwrconv_2p2z_float_process()

__STATIC_FORCEINLINE cy_rslt_t mtb_pwrconv_2p2z_float_process ( mtb_stc_pwrconv_reg_2p2z_float_ctx_t ctx,
int32_t  input,
uint32_t *  output 
)

Run the 2P2Z Regulator.

Parameters
[out]ctxThe pointer to the data structure, which holds the computation context.
[in]inputThe input data - typically, a difference between the current reference and ADC result.
[in]outputThe pointer to the output data - typically, the pointer to the modulator value.
Returns
The processing status.