adc_lock_try_acquire() function
Try to acquire ADC lock by unit The lock acquiring sequence will be: ADC1, ADC2, ...
Return value
- ESP_OK: On success - ESP_ERR_TIMEOUT: Lock(s) is taken already
Notes
If any of the locks are taken, this API will return immediately with an error `ESP_ERR_TIMEOUT`
adc_lock_try_acquire() is called by 3 functions and calls 1 function:
![]()
adc_lock_try_acquire()
adc_lock_try_acquire() reads 2 variables:
![]()
adc_lock_try_acquire()