adc_continuous_register_event_callbacks() function
Register callbacks
Arguments
handle
ADC continuous mode driver handle
cbs
Group of callback functions
user_data
User data, which will be delivered to the callback functions directly
Return value
- ESP_OK: On success - ESP_ERR_INVALID_ARG: Invalid arguments - ESP_ERR_INVALID_STATE: Driver state is invalid, you shouldn't call this API at this moment
Notes
User can deregister a previously registered callback by calling this function and setting the to-be-deregistered callback member in the `cbs` structure to NULL. When CONFIG_ADC_CONTINUOUS_ISR_IRAM_SAFE is enabled, the callback itself and functions called by it should be placed in IRAM. Involved variables (including `user_data`) should be in internal RAM as well. You should only call this API when the ADC continuous mode driver isn't started. Check return value to know this.
adc_continuous_register_event_callbacks() calls 2 functions:
![]()
adc_continuous_register_event_callbacks()
adc_continuous_register_event_callbacks() reads 11 variables and writes 3 variables:
![]()
adc_continuous_register_event_callbacks()