2.6.5.13 Enum adc_resolution

Enum for the possible resolution values for the ADC.

Table 2-53. Members
Enum valueDescription

ADC_RESOLUTION_12BIT

ADC 12-bit resolution

ADC_RESOLUTION_16BIT

ADC 16-bit resolution using oversampling and decimation

ADC_RESOLUTION_10BIT

ADC 10-bit resolution

ADC_RESOLUTION_8BIT

ADC 8-bit resolution

ADC_RESOLUTION_13BIT

ADC 13-bit resolution using oversampling and decimation

ADC_RESOLUTION_14BIT

ADC 14-bit resolution using oversampling and decimation

ADC_RESOLUTION_15BIT

ADC 15-bit resolution using oversampling and decimation

ADC_RESOLUTION_CUSTOM

ADC 16-bit result register for use with averaging. When using this mode the ADC result register will be set to 16-bit wide, and the number of samples to accumulate and the division factor is configured by the adc_config::accumulate_samples and adc_config::divide_result members in the configuration struct.