Trait esp32c2_hal::analog::adc::AdcCalEfuse
source · pub trait AdcCalEfuse {
// Required methods
fn get_init_code(atten: Attenuation) -> Option<u16>;
fn get_cal_mv(atten: Attenuation) -> u16;
fn get_cal_code(atten: Attenuation) -> Option<u16>;
}
Expand description
A helper trait to get access to ADC calibration efuses
Required Methods§
sourcefn get_init_code(atten: Attenuation) -> Option<u16>
fn get_init_code(atten: Attenuation) -> Option<u16>
Get ADC calibration init code
Returns digital value for zero voltage for a given attenuation
sourcefn get_cal_mv(atten: Attenuation) -> u16
fn get_cal_mv(atten: Attenuation) -> u16
Get ADC calibration reference point voltage
Returns reference voltage (millivolts) for a given attenuation
sourcefn get_cal_code(atten: Attenuation) -> Option<u16>
fn get_cal_code(atten: Attenuation) -> Option<u16>
Get ADC calibration reference point digital value
Returns digital value for reference voltage for a given attenuation
Object Safety§
This trait is not object safe.