#include "hpm_mcl_abz.h"Functions | |
| hpm_mcl_stat_t | hpm_mcl_abz_get_theta (void *qei_base, uint32_t phase_count, float deta_theta, float *theta) |
| Get the angle of the abz encoder. More... | |
| hpm_mcl_stat_t | hpm_mcl_abz_get_abs_theta (void *qei_base, uint32_t phase_count, float deta_theta, float offset, float *theta) |
| Get absolute angle value. More... | |
| hpm_mcl_stat_t hpm_mcl_abz_get_abs_theta | ( | void * | qei_base, |
| uint32_t | phase_count, | ||
| float | deta_theta, | ||
| float | theta0, | ||
| float * | theta | ||
| ) |
Get absolute angle value.
| qei_base | qei peripheral base address |
| phase_count | Number of pulses per revolution |
| deta_theta | Mechanical angle for each pulse |
| theta0 | Initial angle calibration value |
| theta | rad |
| hpm_mcl_stat_t hpm_mcl_abz_get_theta | ( | void * | qei_base, |
| uint32_t | phase_count, | ||
| float | deta_theta, | ||
| float * | theta | ||
| ) |
Get the angle of the abz encoder.
| qei_base | qei peripheral base address |
| phase_count | Number of pulses per revolution |
| deta_theta | Mechanical angle for each pulse |
| theta | rad |