#include "hpm_mcl_analog.h"Functions | |
| hpm_mcl_stat_t | hpm_mcl_analog_init (mcl_analog_t *analog, mcl_analog_cfg_t *cfg, mcl_cfg_t *mcl_cfg) |
| Initialize data structures for analog functions. More... | |
| hpm_mcl_stat_t | hpm_mcl_analog_get_value (mcl_analog_t *analog, mcl_analog_chn_t chn, float *value) |
| Get the value of the analog channel. More... | |
| hpm_mcl_stat_t | hpm_mcl_analog_iir_filter_init (mcl_analog_t *analog, mcl_analog_chn_t chn, mcl_filter_iir_df1_t *iir) |
| Initializing the iir filter for analog functions. More... | |
| hpm_mcl_stat_t | hpm_mcl_analog_disable_iir_filter (mcl_analog_t *analog, mcl_analog_chn_t chn) |
| Turn off the iir filter for analog functions. More... | |
| hpm_mcl_stat_t | hpm_mcl_analog_step_convert (mcl_analog_t *analog, float value, mcl_analog_chn_t chn, float angle, float *output) |
| Current conversion of stepper motors. More... | |
| hpm_mcl_stat_t hpm_mcl_analog_disable_iir_filter | ( | mcl_analog_t * | analog, |
| mcl_analog_chn_t | chn | ||
| ) |
Turn off the iir filter for analog functions.
| analog | mcl_analog_t |
| chn | mcl_analog_chn_t |
| hpm_mcl_stat_t hpm_mcl_analog_get_value | ( | mcl_analog_t * | analog, |
| mcl_analog_chn_t | chn, | ||
| float * | value | ||
| ) |
Get the value of the analog channel.
| analog | mcl_analog_t |
| chn | mcl_analog_chn_t |
| value | Processed Sample Values |
| hpm_mcl_stat_t hpm_mcl_analog_iir_filter_init | ( | mcl_analog_t * | analog, |
| mcl_analog_chn_t | chn, | ||
| mcl_filter_iir_df1_t * | iir | ||
| ) |
Initializing the iir filter for analog functions.
| analog | mcl_analog_t |
| chn | mcl_analog_chn_t |
| iir | mcl_filter_iir_df1_t |
| hpm_mcl_stat_t hpm_mcl_analog_init | ( | mcl_analog_t * | analog, |
| mcl_analog_cfg_t * | cfg, | ||
| mcl_cfg_t * | mcl_cfg | ||
| ) |
Initialize data structures for analog functions.
| analog | mcl_analog_t |
| cfg | mcl_analog_cfg_t |
| mcl_cfg | mcl_cfg_t |
| hpm_mcl_stat_t hpm_mcl_analog_step_convert | ( | mcl_analog_t * | analog, |
| float | value, | ||
| mcl_analog_chn_t | chn, | ||
| float | angle, | ||
| float * | output | ||
| ) |
Current conversion of stepper motors.
| analog | mcl_analog_t |
| value | Raw data acquired by the analog function |
| chn | mcl_analog_chn_t |
| angle | electrical angle |
| output | Transformed data |