Struct esp32c2_hal::adc::AdcPin

source ·
pub struct AdcPin<PIN, ADCI> {
    pub pin: PIN,
    /* private fields */
}

Fields

pin: PIN

Trait Implementations

Channel ID type Read more
Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8. Read more
Error type returned by ADC methods
Request that the ADC begin a conversion on the specified pin Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

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