Struct stm32l0x1_hal::adc::Adc

source ·
pub struct Adc<RES, MODE>where
    RES: Resolution,
    MODE: RunMode,
{ /* private fields */ }
Expand description

The constrained ADC peripheral

Implementations§

Constrain the ADC register set and create a new Adc peripheral

Calibrate the ADC, and store its calibration value

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
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
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
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
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
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
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
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
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
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.

Should always be Self
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.