Go to the source code of this file.
◆ hpm_mcl_abz_get_abs_theta()
| 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.
- Parameters
-
| 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 |
- Returns
- hpm_mcl_stat_t
◆ hpm_mcl_abz_get_theta()
| 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.
- Parameters
-
| qei_base | qei peripheral base address |
| phase_count | Number of pulses per revolution |
| deta_theta | Mechanical angle for each pulse |
| theta | rad |
- Returns
- hpm_mcl_stat_t