| M480 BSP V3.05.001 The Board Support Package for M480 Series

Macros | Functions
qei.h File Reference

Quadrature Encoder Interface (QEI) driver header file. More...

Go to the source code of this file.

## Macros
#define | QEI_CTL_X4_FREE_COUNTING_MODE
#define | QEI_CTL_X2_FREE_COUNTING_MODE
#define | QEI_CTL_X4_COMPARE_COUNTING_MODE
#define | QEI_CTL_X2_COMPARE_COUNTING_MODE
#define | QEI_CTL_NFCLKSEL_DIV1
#define | QEI_CTL_NFCLKSEL_DIV2
#define | QEI_CTL_NFCLKSEL_DIV4
#define | QEI_CTL_NFCLKSEL_DIV16
#define | QEI_CTL_NFCLKSEL_DIV32
#define | QEI_CTL_NFCLKSEL_DIV64
#define | QEI_DISABLE_CNT_CMP(qei)
| Disable QEI compare function. More...
#define | QEI_ENABLE_CNT_CMP(qei)
| Enable QEI compare function. More...
#define | QEI_DISABLE_INDEX_LATCH(qei)
| Disable QEI index latch function. More...
#define | QEI_ENABLE_INDEX_LATCH(qei)
| Enable QEI index latch function. More...
#define | QEI_DISABLE_INDEX_RELOAD(qei)
| Disable QEI index reload function. More...
#define | QEI_ENABLE_INDEX_RELOAD(qei)
| Enable QEI index reload function. More...
#define | QEI_DISABLE_INPUT(qei, u32InputType)
| Disable QEI input. More...
#define | QEI_ENABLE_INPUT(qei, u32InputType)
| Enable QEI input. More...
#define | QEI_DISABLE_INPUT_INV(qei, u32InputType)
| Disable inverted input polarity. More...
#define | QEI_ENABLE_INPUT_INV(qei, u32InputType)
| Enable inverted input polarity. More...
#define | QEI_DISABLE_INT(qei, u32IntSel)
| Disable QEI interrupt. More...
#define | QEI_ENABLE_INT(qei, u32IntSel)
| Enable QEI interrupt. More...
#define | QEI_DISABLE_NOISE_FILTER(qei)
| Disable QEI noise filter. More...
#define | QEI_ENABLE_NOISE_FILTER(qei, u32ClkSel)
| Enable QEI noise filter. More...
#define | QEI_GET_CNT_VALUE(qei)
| Get QEI counter value. More...
#define | QEI_GET_DIR(qei)
| Get QEI counting direction. More...
#define | QEI_GET_HOLD_VALUE(qei)
| Get QEI counter hold value. More...
#define | QEI_GET_INDEX_LATCH_VALUE(qei)
| Get QEI counter index latch value. More...
#define | QEI_SET_INDEX_LATCH_VALUE(qei, u32Val)
| Set QEI counter index latch value. More...
#define | QEI_GET_INT_FLAG(qei, u32IntSel)
| Get QEI interrupt flag status. More...
#define | QEI_CLR_INT_FLAG(qei, u32IntSel)
| Clear QEI interrupt flag. More...
#define | QEI_SET_CNT_CMP(qei, u32Value)
| Set QEI counter compare value. More...
#define | QEI_SET_CNT_VALUE(qei, u32Value)
| Set QEI counter value. More...
#define | QEI_ENABLE_HOLD_TRG_SRC(qei, u32Type)
| Enable QEI counter hold mode. More...
#define | QEI_DISABLE_HOLD_TRG_SRC(qei, u32Type)
| Disable QEI counter hold mode. More...
#define | QEI_SET_CNT_MAX(qei, u32Value)
| Set QEI maximum count value. More...
#define | QEI_SET_CNT_MODE(qei, u32Mode)
| Set QEI counting mode. More...

## Functions
void | QEI_Close (QEI_T *qei)
| Close QEI function. More...
void | QEI_DisableInt (QEI_T *qei, uint32_t u32IntSel)
| Disable QEI interrupt. More...
void | QEI_EnableInt (QEI_T *qei, uint32_t u32IntSel)
| Enable QEI interrupt. More...
void | QEI_Open (QEI_T *qei, uint32_t u32Mode, uint32_t u32Value)
| Open QEI in specified mode and enable input. More...
void | QEI_Start (QEI_T *qei)
| Start QEI function. More...
void | QEI_Stop (QEI_T *qei)
| Stop QEI function. More...

## Detailed Description

Quadrature Encoder Interface (QEI) driver header file.

Version
  V3.00 SPDX-License-Identifier: Apache-2.0

Copyright
  (C) 2016-2020 Nuvoton Technology Corp. All rights reserved.

Definition in file qei.h.