2.6.4.2.1 Function adc_get_status()

Retrieves the current module status.

uint32_t adc_get_status( struct adc_module *const module_inst)

Retrieves the status of the module, giving overall state information.

Table 2-10. Parameters
Data directionParameter nameDescription

[in]

module_inst

Pointer to the ADC software instance struct

Returns

Bitmask of ADC_STATUS_* flags.

Table 2-11. Return Values
Return valueDescription

ADC_STATUS_RESULT_READY

ADC result is ready to be read

ADC_STATUS_WINDOW

ADC has detected a value inside the set window range

ADC_STATUS_OVERRUN

ADC result has overrun