HPM SDK
HPMicro Software Development Kit
hpm_mcl_abz.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 #ifndef HPM_MCL_ABZ_H
8 #define HPM_MCL_ABZ_H
9 #include "hpm_common.h"
10 #include "hpm_mcl_common.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
25 hpm_mcl_stat_t hpm_mcl_abz_get_theta(void *qei_base, uint32_t phase_count, float deta_theta, float *theta);
26 
37 hpm_mcl_stat_t hpm_mcl_abz_get_abs_theta(void *qei_base, uint32_t phase_count, float deta_theta, float theta0, float *theta);
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43 #endif
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.
Definition: hpm_mcl_abz.c:15
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.
Definition: hpm_mcl_abz.c:34
uint32_t hpm_mcl_stat_t
Definition: hpm_mcl_common.h:15