![]() |
M480 BSP
V3.05.001
The Board Support Package for M480 Series
|
Macros | |
| #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... | |
| #define QEI_CLR_INT_FLAG | ( | qei, | |
| u32IntSel | |||
| ) |
Clear QEI interrupt flag.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32IntSel | Interrupt type selection.
|
This macro clear QEI specified interrupt flag.
| #define QEI_DISABLE_CNT_CMP | ( | qei | ) |
| #define QEI_DISABLE_HOLD_TRG_SRC | ( | qei, | |
| u32Type | |||
| ) |
Disable QEI counter hold mode.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32Type | The triggered type.
|
This macro disable QEI counter hold mode.
| #define QEI_DISABLE_INDEX_LATCH | ( | qei | ) |
| #define QEI_DISABLE_INDEX_RELOAD | ( | qei | ) |
| #define QEI_DISABLE_INPUT | ( | qei, | |
| u32InputType | |||
| ) |
Disable QEI input.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32InputType | Input signal type.
|
This macro disable specified QEI signal input.
| #define QEI_DISABLE_INPUT_INV | ( | qei, | |
| u32InputType | |||
| ) |
Disable inverted input polarity.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32InputType | Input signal type .
|
This macro disable specified QEI signal inverted input polarity.
| #define QEI_DISABLE_INT | ( | qei, | |
| u32IntSel | |||
| ) |
Disable QEI interrupt.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32IntSel | Interrupt type selection.
|
This macro disable specified QEI interrupt.
| #define QEI_DISABLE_NOISE_FILTER | ( | qei | ) |
| #define QEI_ENABLE_CNT_CMP | ( | qei | ) |
| #define QEI_ENABLE_HOLD_TRG_SRC | ( | qei, | |
| u32Type | |||
| ) |
Enable QEI counter hold mode.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32Type | The triggered type.
|
This macro enable QEI counter hold mode.
| #define QEI_ENABLE_INDEX_LATCH | ( | qei | ) |
| #define QEI_ENABLE_INDEX_RELOAD | ( | qei | ) |
| #define QEI_ENABLE_INPUT | ( | qei, | |
| u32InputType | |||
| ) |
Enable QEI input.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32InputType | Input signal type .
|
This macro enable specified QEI signal input.
| #define QEI_ENABLE_INPUT_INV | ( | qei, | |
| u32InputType | |||
| ) |
Enable inverted input polarity.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32InputType | Input signal type.
|
This macro inverse specified QEI signal input polarity.
| #define QEI_ENABLE_INT | ( | qei, | |
| u32IntSel | |||
| ) |
Enable QEI interrupt.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32IntSel | Interrupt type selection.
|
This macro enable specified QEI interrupt.
| #define QEI_ENABLE_NOISE_FILTER | ( | qei, | |
| u32ClkSel | |||
| ) |
Enable QEI noise filter.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32ClkSel | The sampling frequency of the noise filter clock. |
This macro enable QEI noise filter function and select noise filter clock.
| #define QEI_GET_CNT_VALUE | ( | qei | ) |
| #define QEI_GET_DIR | ( | qei | ) |
| #define QEI_GET_HOLD_VALUE | ( | qei | ) |
| #define QEI_GET_INDEX_LATCH_VALUE | ( | qei | ) |
| #define QEI_GET_INT_FLAG | ( | qei, | |
| u32IntSel | |||
| ) |
Get QEI interrupt flag status.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32IntSel | Interrupt type selection.
|
| 0 | QEI specified interrupt flag is not set. |
| 1 | QEI specified interrupt flag is set. |
This macro get QEI specified interrupt flag status.
| #define QEI_SET_CNT_CMP | ( | qei, | |
| u32Value | |||
| ) |
| #define QEI_SET_CNT_MAX | ( | qei, | |
| u32Value | |||
| ) |
| #define QEI_SET_CNT_MODE | ( | qei, | |
| u32Mode | |||
| ) |
Set QEI counting mode.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32Mode | QEI counting mode. |
This macro set QEI counting mode.
| #define QEI_SET_CNT_VALUE | ( | qei, | |
| u32Value | |||
| ) |
| #define QEI_SET_INDEX_LATCH_VALUE | ( | qei, | |
| u32Val | |||
| ) |
Set QEI counter index latch value.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32Val | The latch value. |
This macro set QEI pulse counter index latch value, which is updated with counter value when the index is detected.
| void QEI_Close | ( | QEI_T * | qei | ) |
| void QEI_DisableInt | ( | QEI_T * | qei, |
| uint32_t | u32IntSel | ||
| ) |
Disable QEI interrupt.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32IntSel | Interrupt type selection.
|
This function disable QEI specified interrupt.
| void QEI_EnableInt | ( | QEI_T * | qei, |
| uint32_t | u32IntSel | ||
| ) |
Enable QEI interrupt.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32IntSel | Interrupt type selection.
|
This function enable QEI specified interrupt.
| void QEI_Open | ( | QEI_T * | qei, |
| uint32_t | u32Mode, | ||
| uint32_t | u32Value | ||
| ) |
Open QEI in specified mode and enable input.
| [in] | qei | The pointer of the specified QEI module. |
| [in] | u32Mode | QEI counting mode. |
| [in] | u32Value | The counter maximum value in compare-counting mode. |
This function set QEI in specified mode and enable input.
| void QEI_Start | ( | QEI_T * | qei | ) |
1.8.15