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§

source

fn get_init_code(atten: Attenuation) -> Option<u16>

Get ADC calibration init code

Returns digital value for zero voltage for a given attenuation

source

fn get_cal_mv(atten: Attenuation) -> u16

Get ADC calibration reference point voltage

Returns reference voltage (millivolts) for a given attenuation

source

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.

Implementors§