1.6.4.3.3 Function ac_chan_get_status()

Determines the output state of a comparator channel.

uint8_t ac_chan_get_status( struct ac_module *const module_inst, const enum ac_chan_channel channel)

Retrieves the last comparison value (after filtering) of a given comparator. If the comparator was not ready at the time of the check, the comparison result will be indicated as being unknown.

Table 1-20. Parameters
Data directionParameter nameDescription

[in]

module_inst

Software instance for the Analog Comparator peripheral

[in]

channel

Comparator channel to test

Returns

Bit mask of comparator channel status flags.