HPM SDK
HPMicro Software Development Kit
hpm_mcl_uvw.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 #ifndef HPM_MCL_UVW_H
8 #define HPM_MCL_UVW_H
9 #include "hpm_common.h"
10 #include "hpm_mcl_common.h"
11 
12 #ifdef HPMSOC_HAS_HPMSDK_QEIV2
13 #include "hpm_qeiv2_drv.h"
14 #define QEIV2_ANGLE_PRE (0x15555555)
15 #endif
16 
17 #ifdef HPMSOC_HAS_HPMSDK_HALL
18 #include "hpm_hall_drv.h"
19 #endif
20 
30 hpm_mcl_stat_t hpm_mcl_uvw_get_theta(void *encoder_base, uint8_t *last_pos, float deta_theta, float *theta);
31 
32 #endif
uint32_t hpm_mcl_stat_t
Definition: hpm_mcl_common.h:15
hpm_mcl_stat_t hpm_mcl_uvw_get_theta(void *encoder_base, uint8_t *last_pos, float deta_theta, float *theta)
Getting the angle in uvw mode.
Definition: hpm_mcl_uvw.c:9