Struct stm32_hal2::pac::ADC1[][src]

pub struct ADC1 { /* fields omitted */ }
Expand description

Analog-to-Digital Converter

Implementations

impl ADC1[src]

pub const fn ptr() -> *const RegisterBlock[src]

Returns a pointer to the register block

Trait Implementations

impl Channel<ADC1> for C1[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C2[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C11[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C12[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C13[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C14[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C15[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C16[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C17[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C18[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C19[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C20[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C3[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C4[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C5[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C6[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C7[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C8[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C9[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Channel<ADC1> for C10[src]

type ID = u8

Channel ID type Read more

fn channel() -> u8[src]

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

impl Deref for ADC1[src]

type Target = RegisterBlock

The resulting type after dereferencing.

pub fn deref(&self) -> &<ADC1 as Deref>::Target[src]

Dereferences the value.

impl<WORD, PIN> OneShot<ADC1, WORD, PIN> for Adc<ADC1> where
    WORD: From<u16>,
    PIN: Channel<ADC1, ID = u8>, 
[src]

type Error = ()

Error type returned by ADC methods

fn read(&mut self, _pin: &mut PIN) -> Result<WORD, Self::Error>[src]

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

impl Send for ADC1[src]

Auto Trait Implementations

impl !Sync for ADC1

impl Unpin for ADC1

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.