1.6.5.4 Enum ac_chan_interrupt_selection

This enum is used to select when a channel interrupt should occur.

Table 1-34. Members
Enum valueDescription

AC_CHAN_INTERRUPT_SELECTION_TOGGLE

An interrupt will be generated when the comparator level is passed

AC_CHAN_INTERRUPT_SELECTION_RISING

An interrupt will be generated when the measurement goes above the compare level

AC_CHAN_INTERRUPT_SELECTION_FALLING

An interrupt will be generated when the measurement goes below the compare level

AC_CHAN_INTERRUPT_SELECTION_END_OF_COMPARE

An interrupt will be generated when a new measurement is complete. Interrupts will only be generated in single shot mode. This state needs to be cleared by the use of ac_chan_cleare_status()