adc_new_continuous_monitor() function
Allocate an ADC continuous mode monitor (and configure it into an initial state)
Arguments
handle
ADC continuous mode driver handle
monitor_cfg
ADC monitor config struct
ret_handle
Handle of allocated monitor
Return value
- ESP_OK: On success - ESP_ERR_INVALID_ARG: Invalid argument - ESP_ERR_INVALID_STATE: Install monitor when ADC converter is running - ESP_ERR_NOT_FOUND: No appropriate monitor Or no free monitor - ESP_ERR_NOT_SUPPORTED: Threshold configuration not supported - ESP_ERR_NO_MEM: Free memory not enough