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
hpm_common.h
hpm_hall_drv.h
hpm_mcl_common.h
hpm_mcl_stat_t
uint32_t hpm_mcl_stat_t
Definition:
hpm_mcl_common.h:15
hpm_mcl_uvw_get_theta
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
hpm_qeiv2_drv.h
middleware
hpm_mcl_v2
encoder
hpm_mcl_uvw.h
Generated on Tue Dec 31 2024 02:57:16 for HPM SDK by
1.9.1