adc_async_set_resolution

Set ADC resolution.

int32_t adc_async_set_resolution(
    struct adc_async_descriptor *const descr,
    const adc_resolution_t resolution
)

This function sets ADC resolution.

Parameters

descr

Type: struct adc_async_descriptor Struct *const

The pointer to the ADC descriptor

resolution

Type: const adc_resolution_t

A resolution to set

Returns

Type: int32_t

Status of the ADC resolution setting.