embassy-stm32

Crates

git

Versions

stm32l151qd

Flavors

Skip to main content

ADC1

Struct ADC1 

Source
pub struct ADC1 { /* private fields */ }
Expand description

ADC1 peripheral

Implementationsยง

Sourceยง

impl ADC1

Source

pub const unsafe fn steal() -> Peri<'static, Self>

Unsafely create an instance of this peripheral out of thin air.

ยงSafety

You must ensure that youโ€™re only using one instance of this type at a time.

Trait Implementationsยง

Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PA0>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PA1>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PA2>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PA3>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PA4>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PA5>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PA6>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PA7>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PB0>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PB1>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PB12>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PB13>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PB14>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PB15>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PB2>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PC0>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PC1>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PC2>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PC3>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PC4>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PC5>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PE10>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PE7>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PE8>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PE9>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PF11>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PF12>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PF13>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PF14>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PF15>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PF6>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PF7>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PF8>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PF9>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PG0>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PG1>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PG2>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PG3>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl<'d> AdcChannel<'d, ADC1> for Peri<'d, PG4>

Sourceยง

fn degrade_adc(self) -> BorrowedAdcChannel<'d, T>

Type-erase the channel. The pin (if any) is configured for the ADC once, here.
Sourceยง

fn reborrow_adc<'a>(&'a mut self) -> BorrowedAdcChannel<'a, T>

Borrow the channel, type-erased. The pin (if any) is configured for the ADC.
Sourceยง

impl BasicInstance for ADC1

Sourceยง

type Regs = Adc

Register block.
Sourceยง

impl Clone for ADC1

Sourceยง

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Copy for ADC1

Sourceยง

impl Debug for ADC1

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl Format for ADC1
where (): Format,

Sourceยง

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Sourceยง

impl Instance for ADC1

Sourceยง

type Interrupt = ADC1

Interrupt for this instance.
Sourceยง

impl PeripheralType for ADC1

Sourceยง

impl RccPeripheral for ADC1

Sourceยง

impl RxDma<ADC1> for DMA1_CH1

Sourceยง

fn request(&self) -> Request

Get the DMA request number needed to use this channel as RxDma. Note: in some chips, ST calls this the โ€œchannelโ€, and calls channels โ€œstreamsโ€. embassy-stm32 always uses the โ€œchannelโ€ and โ€œrequest numberโ€ names.
Sourceยง

fn remap(&self)

Remap the DMA channel

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

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

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T, I> Binding<I, NoHandler<I>> for T
where T: Copy, I: Interrupt,

Sourceยง

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

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

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

Sourceยง

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

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<C, T> HasInternalChannel<C> for T
where C: SpecialChannel, T: ConverterFor<C>,

Sourceยง

impl<T> Instance for T
where T: PeripheralType + 'static,

Sourceยง

impl<T, U> Into<U> for T
where 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 T
where U: Into<T>,

Sourceยง

type Error = !

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 T
where U: TryFrom<T>,

Sourceยง

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.