5.3.2.17 adc_os_wait_channel_threshhold_reach
Wait reach the ADC window threshhold.
int32_t adc_os_wait_channel_threshhold_reach(
struct adc_os_descriptor *const descr,
const uint8_t channel
)
This function waits for the reach of ADC window threshhold. The task/thread will block until reach window threshhold.
Parameters
- descr
-
Type: struct adc_os_descriptor Struct *const
The pointer to ADC descriptor
- channel
-
Type: const uint8_t
Channel number
Returns
Type: int32_t
- ERR_TIMEOUT
-
The semaphore down timeout
- ERR_NONE
-
The window threshhold has reached