ADC Interrupts Definition

group ADC_Interrupts_Definition

Defines

ADC_INT_FIFO_RD_REQ ((uint32_t)(1 << 0))

ADC GDMA request interrupt. When FIFO data level achieve the GDMA threshold level (ADC_WaterLevel), this interrupt is triggered.

ADC_INT_FIFO_RD_ERR ((uint32_t)(1 << 1))

ADC FIFO read error interrupt. When read the empty FIFO, this interrupt is triggered.

ADC_INT_FIFO_THD ((uint32_t)(1 << 2))

ADC FIFO threshold interrupt. When FIFO data number is more than or equal to the threshold level (ADC_FifoThdLevel), this interrupt is triggered.

ADC_INT_FIFO_OVERFLOW ((uint32_t)(1 << 3))

ADC FIFO overflow interrupt. When FIFO overflow, this interrupt is triggered.

ADC_INT_ONE_SHOT_DONE ((uint32_t)(1 << 4))

ADC one shot mode done interrupt. When ADC conversion done, this interrupt is triggered.

IS_ADC_INT(INT)                          (((INT) == ADC_INT_FIFO_RD_REQ

) || \

((INT) ==

ADC_INT_FIFO_RD_ERR

) || \

((INT) ==

ADC_INT_FIFO_THD

) || \

((INT) ==

ADC_INT_FIFO_OVERFLOW

) || \

((INT) ==

ADC_INT_ONE_SHOT_DONE))

Check if the input parameter is valid.