adc_oneshot_read_isr() is only used within ESP-IDF.
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedReferences

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

References

from examples