Struct AdcPin

Source
pub struct AdcPin<PIN, ADCI, CS = ()> {
    pub pin: PIN,
    pub cal_scheme: CS,
    /* private fields */
}
Available on crate feature unstable only.
Expand description

An I/O pin which can be read using the ADC.

Fields§

§pin: PIN

The underlying GPIO pin

§cal_scheme: CS

Calibration scheme used for the configured ADC pin

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.