Struct esp32c3_hal::adc::ADC1

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

Trait Implementations§

source§

impl AdcCalEfuse for ADC1

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 ADC1

source§

const CURVES_COEFFS: &'static [CurveCoeffs] = CURVES_COEFFS1

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

impl Channel<ADC1> for GpioPin<Analog, 0>

§

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 Channel<ADC1> for GpioPin<Analog, 1>

§

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 Channel<ADC1> for GpioPin<Analog, 2>

§

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 Channel<ADC1> for GpioPin<Analog, 3>

§

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 Channel<ADC1> for GpioPin<Analog, 4>

§

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 Deref for ADC1

§

type Target = ADC1

The resulting type after dereferencing.
source§

fn deref(&self) -> &<ADC1 as Deref>::Target

Dereferences the value.
source§

impl DerefMut for ADC1

source§

fn deref_mut(&mut self) -> &mut <ADC1 as Deref>::Target

Mutably dereferences the value.
source§

impl Peripheral for ADC1

§

type P = ADC1

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut self) -> <ADC1 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 ADC1

Auto Trait Implementations§

§

impl RefUnwindSafe for ADC1

§

impl Send for ADC1

§

impl Sync for ADC1

§

impl Unpin for ADC1

§

impl UnwindSafe for ADC1

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.