Struct esp32c3_hal::adc::ADC2

source ·
pub struct ADC2 { /* private fields */ }

Trait Implementations§

source§

impl AdcCalEfuse for ADC2

source§

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

Get ADC calibration init code Read more
source§

fn get_cal_mv(atten: Attenuation) -> u16

Get ADC calibration reference point voltage Read more
source§

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

Get ADC calibration reference point digital value Read more
source§

impl AdcHasCurveCal for ADC2

source§

const CURVES_COEFFS: &'static [CurveCoeffs] = CURVES_COEFFS1

Coefficients for calculating the reading voltage error. Read more
source§

impl CalibrationAccess for ADC2

source§

const ADC_CAL_CNT_MAX: u16 = 32u16

source§

const ADC_CAL_CHANNEL: u16 = 15u16

source§

const ADC_VAL_MASK: u16 = 4_095u16

source§

fn enable_vdef(enable: bool)

source§

fn connect_cal(source: AdcCalSource, enable: bool)

Enable internal calibration voltage source
source§

impl Channel<ADC2> for GpioPin<Analog, 5>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8.
source§

impl Peripheral for ADC2

§

type P = ADC2

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut self) -> <ADC2 as Peripheral>::P

Unsafely clone (duplicate) a peripheral singleton. Read more
source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where Self: 'a,

Convert a value into a PeripheralRef. Read more
source§

impl AdcHasLineCal for ADC2

Auto Trait Implementations§

§

impl RefUnwindSafe for ADC2

§

impl Send for ADC2

§

impl Sync for ADC2

§

impl Unpin for ADC2

§

impl UnwindSafe for ADC2

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.