KeyScan Interrupt Definition
- group Keyscan_Interrupt_Definition
Defines
-
KEYSCAN_INT_THRESHOLD ((uint16_t)(0x1 << 4))
KeyScan FIFO threshold interrupt. when data in the FIFO reaches the threshold level, the interrupt is triggered.
-
KEYSCAN_INT_OVER_READ ((uint16_t)(0x1 << 3))
KeyScan FIFO over read interrupt. When there is no data in the FIFO, reading the FIFO will trigger this interrupt to prevent over-reading.
-
KEYSCAN_INT_SCAN_END ((uint16_t)(0x1 << 2))
KeyScan finish interrupt. Whether the key value is scanned or not, the interrupt will be triggered as long as the scanning action is completed.
-
KEYSCAN_INT_FIFO_NOT_EMPTY ((uint16_t)(0x1 << 1))
KeyScan FIFO not empty interrupt. If there is data in the FIFO, the interrupt will be triggered.
-
KEYSCAN_INT_ALL_RELEASE ((uint16_t)(0x1 << 0))
KeyScan all release interrupt. When the release time count reaches the set value, if no key is pressed, the interrupt is triggered.
-
IS_KEYSCAN_CONFIG_IT(IT) ((((IT) & (uint32_t)0xFFF8) == 0x00) && ((IT) != 0x00))
Check whether is the KeyScan interrupt.
-
KEYSCAN_INT_THRESHOLD ((uint16_t)(0x1 << 4))