Struct esp32c3_hal::adc::AdcPin

source ·
pub struct AdcPin<PIN, ADCI, CS = ()> {
    pub pin: PIN,
    pub cal_scheme: CS,
    /* private fields */
}

Fields§

§pin: PIN§cal_scheme: CS

Trait Implementations§

source§

impl<PIN, ADCI, CS> Channel<ADCI> for AdcPin<PIN, ADCI, CS>where PIN: Channel<ADCI, ID = u8>,

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> <AdcPin<PIN, ADCI, CS> as Channel<ADCI>>::ID

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

impl<'d, ADCI, WORD, PIN, CS> OneShot<ADCI, WORD, AdcPin<PIN, ADCI, CS>> for ADC<'d, ADCI>where WORD: From<u16>, PIN: Channel<ADCI, ID = u8>, ADCI: RegisterAccess, CS: AdcCalScheme<ADCI>,

§

type Error = ()

Error type returned by ADC methods
source§

fn read( &mut self, pin: &mut AdcPin<PIN, ADCI, CS> ) -> Result<WORD, Error<<ADC<'d, ADCI> as OneShot<ADCI, WORD, AdcPin<PIN, ADCI, CS>>>::Error>>

Request that the ADC begin a conversion on the specified pin Read more

Auto Trait Implementations§

§

impl<PIN, ADCI, CS> RefUnwindSafe for AdcPin<PIN, ADCI, CS>where ADCI: RefUnwindSafe, CS: RefUnwindSafe, PIN: RefUnwindSafe,

§

impl<PIN, ADCI, CS> Send for AdcPin<PIN, ADCI, CS>where ADCI: Send, CS: Send, PIN: Send,

§

impl<PIN, ADCI, CS> Sync for AdcPin<PIN, ADCI, CS>where ADCI: Sync, CS: Sync, PIN: Sync,

§

impl<PIN, ADCI, CS> Unpin for AdcPin<PIN, ADCI, CS>where ADCI: Unpin, CS: Unpin, PIN: Unpin,

§

impl<PIN, ADCI, CS> UnwindSafe for AdcPin<PIN, ADCI, CS>where ADCI: UnwindSafe, CS: UnwindSafe, PIN: UnwindSafe,

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.