Functions | |
| hpm_mcl_stat_t | hpm_mcl_filter_iir_df1_init (mcl_filter_iir_df1_t *iir, mcl_filter_iir_df1_cfg_t *cfg, mcl_filter_iir_df1_memory_t *mem) |
| Initialising the iir filter. More... | |
| float | hpm_mcl_filter_iir_df1 (mcl_filter_iir_df1_t *iir, float input) |
| iir filtering of input data More... | |
| void | hpm_mcl_filter_pll_type_i (mcl_filter_pll_type_i_t *pll, float sin_val, float cos_val, mcl_filter_pll_output_t *output) |
| void | hpm_mcl_filter_pll_type_ii (mcl_filter_pll_type_ii_t *pll, float sin_val, float cos_val, mcl_filter_pll_output_t *output) |
| float hpm_mcl_filter_iir_df1 | ( | mcl_filter_iir_df1_t * | iir, |
| float | input | ||
| ) |
| hpm_mcl_stat_t hpm_mcl_filter_iir_df1_init | ( | mcl_filter_iir_df1_t * | iir, |
| mcl_filter_iir_df1_cfg_t * | cfg, | ||
| mcl_filter_iir_df1_memory_t * | mem | ||
| ) |
Initialising the iir filter.
| iir | mcl_filter_iir_df1_t |
| cfg | mcl_filter_iir_df1_cfg_t |
| mem | mcl_filter_iir_df1_memory_t |
| void hpm_mcl_filter_pll_type_i | ( | mcl_filter_pll_type_i_t * | pll, |
| float | sin_val, | ||
| float | cos_val, | ||
| mcl_filter_pll_output_t * | output | ||
| ) |
Type I Phase-Locked Loop (PLL) Filter. This function processes the input signal to estimate the phase and speed of the signal.
| pll | Pointer to the mcl_filter_pll_type_i_t structure, containing the internal state and configuration of the PLL. |
| sin_val | The sine component of the input signal, used for phase difference calculation. |
| cos_val | The cosine component of the input signal, used for phase difference calculation. |
| output | Pointer to the mcl_filter_pll_output_t structure, for storing the output results including theta and speed. |
| void hpm_mcl_filter_pll_type_ii | ( | mcl_filter_pll_type_ii_t * | pll, |
| float | sin_val, | ||
| float | cos_val, | ||
| mcl_filter_pll_output_t * | output | ||
| ) |
Type II Phase-Locked Loop (PLL) Filter. This function updates the PLL state based on the input sine and cosine values and calculates the output theta and speed.
| pll | Pointer to the PLL structure containing the state and configuration parameters. |
| sin_val | The sine value of the input signal, representing the sine component. |
| cos_val | The cosine value of the input signal, representing the cosine component. |
| output | Pointer to the output structure to store the computed theta and speed. |