adc_oneshot_read_isr() function
ISR version to get one ADC conversion raw result
Arguments
out_raw
ADC conversion raw result
Return value
- ESP_OK: On success - ESP_ERR_INVALID_ARG: Invalid arguments - ESP_ERR_INVALID_STATE: Invalid state, the ADC result is invalid
Notes
This API only provide atomic register settings, without hardware resources protection. When other drivers are using SAR-ADCs, calling this API may get wrong ADC result. This API can be called in an ISR context. Strongly suggest using this function when there's no concurrent hardware usage to the ADC. You can refer to ADC Oneshot Programming Guide to know ADC Hardware Limitations