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.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in] |
module_inst |
Pointer to the ADC software instance struct |
Returns
Bitmask of ADC_STATUS_* flags.
| Return value | Description |
|---|---|
|
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 |
