Skip to main content

rtc_calib_cal_mv

Function rtc_calib_cal_mv 

Source
pub fn rtc_calib_cal_mv(_unit: AdcCalibUnit, atten: Attenuation) -> Option<u16>
Available on crate feature unstable only.
Expand description

Returns the ADC reference point voltage for specified attenuation in millivolts.

Returns None for attenuations without a reference point on this chip (2.5 dB and 6 dB only have init codes, not line-fitting data).

see https://github.com/espressif/esp-idf/blob/903af13e8/components/efuse/esp32c2/esp_efuse_rtc_calib.c#L65

ยง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.