PAN1080 Peripheral API
|
Panchip series qdec driver header file. More...
Go to the source code of this file.
Macros | |
#define | QDEC_FUNC_ALL (0XFF) |
#define | QDEC_FUNC_ALL_EXCEPT_WK (0XBF) |
#define | QDEC_POLARITY_HIGH (1) |
#define | QDEC_POLARITY_LOW (0) |
#define | QDEC_CNT_IDX_X (0) |
#define | QDEC_CNT_IDX_Y (1) |
#define | QDEC_CNT_IDX_Z (2) |
#define | QDEC_MAX_CNT_RESOLUTION (3) |
#define | QDEC_CNT_RESOLUTION_1X (0) |
#define | QDEC_CNT_RESOLUTION_2X (1) |
#define | QDEC_CNT_RESOLUTION_4X (2) |
#define | QDEC_MAX_FILTER_NUM (7) |
#define | QDEC_FILTER_PERIOD_1 (0) |
#define | QDEC_FILTER_PERIOD_2 (1) |
#define | QDEC_FILTER_PERIOD_3 (2) |
#define | QDEC_FILTER_PERIOD_4 (3) |
#define | QDEC_FILTER_PERIOD_5 (4) |
#define | QDEC_FILTER_PERIOD_6 (5) |
#define | QDEC_FILTER_PERIOD_7 (6) |
#define | QDEC_FILTER_PERIOD_8 (7) |
Functions | |
__STATIC_INLINE void | QDEC_Enable (FunctionalState NewState, uint32_t func) |
This function is set qdec enable bit. More... | |
__STATIC_INLINE bool | QDEC_IsIntOccured (uint32_t intMsk) |
This function adjust qdec interrupt occured or not. More... | |
__STATIC_INLINE void | QDEC_ClearIntFlag (uint32_t intMsk) |
This function clear qdec interrupt flag. More... | |
__STATIC_INLINE bool | QDEC_IsRawIntOccured (uint32_t intMsk) |
This function adjust qdec raw interrupt occured or not. More... | |
__STATIC_INLINE void | QDEC_ClearRawIntFlag (uint32_t intMsk) |
This function clear qdec raw interrupt flag. More... | |
__STATIC_INLINE void | QDEC_ClearIntMsk (uint32_t intMsk, FunctionalState NewState) |
This function used to set interrupt mask, if masked,qdec int flag will not be placed. More... | |
__STATIC_INLINE void | QDEC_SetPolarity (uint8_t polarity) |
This function used to set index polarity. More... | |
__STATIC_INLINE uint32_t | QDEC_GetEventCnt (uint8_t idx) |
This function used to get event count value. More... | |
__STATIC_INLINE uint32_t | QDEC_ClearEventCnt (uint8_t idx) |
This function used to clear event count value. More... | |
void | QDEC_SetCntResolution (uint8_t resolution) |
This function used to set count resolution. More... | |
void | QDEC_SetFilterThreshold (uint8_t threshold) |
This function used to set filter threshold. More... | |
void | QDEC_SetEventThreshold (uint16_t threshold) |
This function used to set event threshold. More... | |
Panchip series qdec driver header file.