adc_async_get_threshold_state

Retrieve threshold state.

int32_t adc_async_get_threshold_state(
    const struct adc_async_descriptor *const descr,
    adc_threshold_status_t *const state
)

This function retrieves ADC threshold state.

Parameters

descr

Type: const struct adc_async_descriptor Struct *const

The pointer to the ADC descriptor

state

Type: adc_threshold_status_t *const

The threshold state

Returns

Type: int32_t

The state of ADC thresholds state retrieving.