Skip to main content

ZERO_DIFF_CODE

Constant ZERO_DIFF_CODE 

Source
pub const ZERO_DIFF_CODE: u16 = 2198;
Available on crate feature unstable only.
Expand description

The value a conversion returns for a zero input difference.

The SAR is differential, so an input tied to ground reads about this value instead of zero, and only the codes above it are available to a single-ended measurement.

See ADC_LL_ZERO_DIFF_CODE in components/esp_hal_ana_conv/esp32s31/include/hal/adc_ll.h.

ยงStability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.