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... | |
struct mtb_stc_pwrconv_reg_2p2z_float_cfg_t |
struct mtb_stc_pwrconv_reg_2p2z_float_ctx_t |
Data Fields | ||
---|---|---|
mtb_stc_pwrconv_reg_2p2z_float_cfg_t | cfg | |
mtb_stc_pwrconv_reg_2p2z_float_dat_t | dat |
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.
[out] | cfg | The pointer to the configuration structure. |
[out] | ctx | The pointer to the data structure, which holds the computation context. |
__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.
[out] | ctx | The pointer to the data structure, which holds the computation context. |
[in] | input | The input data - typically, a difference between the current reference and ADC result. |
[in] | output | The pointer to the output data - typically, the pointer to the modulator value. |