adc_continuous_monitor_register_event_callbacks() function
Register/Unregister threshold interrupt callbacks for allocated monitor. Passing `cbs` contain the NULL `over_high/below_low` will unregister relative callbacks.
Arguments
monitor_handle
Monitor handle
cbs
Pointer to a adc_monitor_evt_cbs_t struct
user_data
User data, which will be delivered to the callback functions directly
Return value
- ESP_OK: On success - ESP_ERR_INVALID_STATE: To register cbs when monitor is running, or cbs has been installed - ESP_ERR_NOT_SUPPORTED: Register not supported callbacks to esp32s2 - ESP_ERR_INVALID_ARG: Invalid argument