![]() |
MAX32672 Peripheral Driver API
Peripheral Driver API for the MAX32672
|
Modules | |
QDEC_Registers | |
Enumerations | |
enum | mxc_qdec_counter_mode_t |
enum | mxc_qdec_swap_t |
enum | mxc_qdec_filter_t |
enum | mxc_qdec_sticky_t |
enum | mxc_qdec_clkdiv_t |
enum | mxc_qdec_rst_on_t |
enum | mxc_qdec_function_t |
Functions | |
int | MXC_QDEC_Init (mxc_qdec_req_t *req) |
int | MXC_QDEC_Shutdown (void) |
void | MXC_QDEC_EnableInt (uint32_t flags) |
void | MXC_QDEC_DisableInt (uint32_t flags) |
int | MXC_QDEC_GetFlags (void) |
void | MXC_QDEC_ClearFlags (uint32_t flags) |
void | MXC_QDEC_SetMaxCount (uint32_t maxCount) |
int | MXC_QDEC_GetMaxCount (void) |
void | MXC_QDEC_SetInitial (uint32_t initial) |
int | MXC_QDEC_GetInitial (void) |
void | MXC_QDEC_SetCompare (uint32_t compare) |
int | MXC_QDEC_GetCompare (void) |
int | MXC_QDEC_GetIndex (void) |
int | MXC_QDEC_GetCapture (void) |
int | MXC_QDEC_Handler (void) |
int | MXC_QDEC_GetPosition (void) |
int | MXC_QDEC_GetDirection (void) |
enum mxc_qdec_clkdiv_t |
Enumeration type for QDEC clock divider.
enum mxc_qdec_filter_t |
Enumeration type for QDEC Filtering.
enum mxc_qdec_sticky_t |
enum mxc_qdec_swap_t |
void MXC_QDEC_ClearFlags | ( | uint32_t | flags | ) |
Clear interrupt flags.
flags | mask of flags to clear |
void MXC_QDEC_DisableInt | ( | uint32_t | flags | ) |
Disable specific QDEC interrupts.
flags | mask of interrupt flags to enables |
void MXC_QDEC_EnableInt | ( | uint32_t | flags | ) |
Enable specific QDEC interrupts.
flags | mask of interrupt flags to enables |
int MXC_QDEC_GetCapture | ( | void | ) |
Retrieves capture value.
int MXC_QDEC_GetCompare | ( | void | ) |
Retrieves Compare value.
int MXC_QDEC_GetDirection | ( | void | ) |
Gets the direction (Clockwise/Counter-Clockwise) of the QDEC.
int MXC_QDEC_GetFlags | ( | void | ) |
Retrieves current interrupt flag status.
int MXC_QDEC_GetIndex | ( | void | ) |
Retrieves Index value.
int MXC_QDEC_GetInitial | ( | void | ) |
Retrieves Initial position value.
int MXC_QDEC_GetMaxCount | ( | void | ) |
Retrieves Maximum position value.
int MXC_QDEC_GetPosition | ( | void | ) |
Gets the current position of the QDEC.
int MXC_QDEC_Handler | ( | void | ) |
Call this function from the QDEC ISR when using Async API functions.
int MXC_QDEC_Init | ( | mxc_qdec_req_t * | req | ) |
Performs the QDEC startup procedure.
void MXC_QDEC_SetCompare | ( | uint32_t | compare | ) |
Sets the Compare value for the QDEC.
compare | register value |
void MXC_QDEC_SetInitial | ( | uint32_t | initial | ) |
Sets the Initial (Minimum) Poisiton Count for the QDEC.
minimum | position value |
void MXC_QDEC_SetMaxCount | ( | uint32_t | maxCount | ) |
Sets the Maximum Poisiton Count for the QDEC.
maximum | position value |
int MXC_QDEC_Shutdown | ( | void | ) |
Shuts down the QDEC.