enc pos driver APIs More...
Functions | |
| float | encoder_position_to_deg (uint32_t pos) |
| caculate degree of angle from pos More... | |
| uint32_t | encoder_deg_to_position (float deg) |
| caculate posistion from degree of angle More... | |
| float | encoder_position_to_rad (uint32_t pos) |
| caculate radian of angle from pos More... | |
| uint32_t | encoder_rad_to_position (float rad) |
| caculate posistion from radian of angle More... | |
enc pos driver APIs
| uint32_t encoder_deg_to_position | ( | float | deg | ) |
#include <drivers/inc/hpm_enc_pos_drv.h>
caculate posistion from degree of angle
| [in] | deg | degree of angle |
| float encoder_position_to_deg | ( | uint32_t | pos | ) |
#include <drivers/inc/hpm_enc_pos_drv.h>
caculate degree of angle from pos
| [in] | pos | position value |
| float encoder_position_to_rad | ( | uint32_t | pos | ) |
#include <drivers/inc/hpm_enc_pos_drv.h>
caculate radian of angle from pos
| [in] | pos | position value |
| uint32_t encoder_rad_to_position | ( | float | rad | ) |
#include <drivers/inc/hpm_enc_pos_drv.h>
caculate posistion from radian of angle
| [in] | rad | radian of angle |