Data Structures | |
struct | qei_data_t |
struct | qei_channel_attr_t |
struct | qei_handle_t |
Typedefs | |
typedef void(* | hal_qei_callback) (const uint8_t channel, const uint8_t flag) |
Index interrupt callback function prototype. | |
Functions | |
qei_result_t | hal_qei_init (qei_handle_t *handle, const qei_channel_attr_t attr, const hal_qei_callback callback) |
Configure QEI channel. | |
int32_t | hal_qei_get_counter (qei_handle_t *handle) |
Get encoder counter value. | |
qei_result_t | hal_qei_set_counter (qei_handle_t *handle, const int32_t value) |
Set encoder counter to specified value. | |
qei_result_t | hal_qei_reset_counter (qei_handle_t *handle) |
Reset encoder counter value to zero. | |
qei_result_t | hal_qei_start (qei_handle_t *handle) |
Enable QEI channel. | |
qei_result_t | hal_qei_stop (qei_handle_t *handle) |
Disable QEI channel. | |