Struct stm32f4xx_hal::pac::ADC2

source ·
pub struct ADC2 { /* private fields */ }
Expand description

Analog-to-digital converter

Implementations§

source§

impl ADC2

source

pub const PTR: *const RegisterBlock = {0x40012100 as *const stm32f4::stm32f429::adc1::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn jofr1(&self) -> &Reg<JOFR_SPEC>

0x14 - injected channel data offset register x

source

pub fn jofr2(&self) -> &Reg<JOFR_SPEC>

0x18 - injected channel data offset register x

source

pub fn jofr3(&self) -> &Reg<JOFR_SPEC>

0x1c - injected channel data offset register x

source

pub fn jofr4(&self) -> &Reg<JOFR_SPEC>

0x20 - injected channel data offset register x

source

pub fn jdr1(&self) -> &Reg<JDR_SPEC>

0x3c - injected data register x

source

pub fn jdr2(&self) -> &Reg<JDR_SPEC>

0x40 - injected data register x

source

pub fn jdr3(&self) -> &Reg<JDR_SPEC>

0x44 - injected data register x

source

pub fn jdr4(&self) -> &Reg<JDR_SPEC>

0x48 - injected data register x

Trait Implementations§

source§

impl Channel<ADC2> for PA0<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PA1<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PA2<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PA3<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PA4<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PA5<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PA6<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PA7<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PB0<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PB1<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PC0<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PC1<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PC2<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PC3<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PC4<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Channel<ADC2> for PC5<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

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

impl Debug for ADC2

source§

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

Formats the value using the given formatter. Read more
source§

impl Deref for ADC2

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &<ADC2 as Deref>::Target

Dereferences the value.
source§

impl Enable for ADC2

source§

fn enable(rcc: &RccRB)

Enables peripheral
source§

fn disable(rcc: &RccRB)

Disables peripheral
source§

fn is_enabled() -> bool

Check if peripheral enabled
source§

fn is_disabled() -> bool

Check if peripheral disabled
source§

unsafe fn enable_unchecked()

Safety Read more
source§

unsafe fn disable_unchecked()

Safety Read more
source§

impl LPEnable for ADC2

source§

fn enable_in_low_power(rcc: &RccRB)

Enables peripheral in low power mode
source§

fn disable_in_low_power(rcc: &RccRB)

Disables peripheral in low power mode
source§

fn is_enabled_in_low_power() -> bool

Check if peripheral enabled in low power mode
source§

fn is_disabled_in_low_power() -> bool

Check if peripheral disabled in low power mode
source§

unsafe fn enable_in_low_power_unchecked()

Safety Read more
source§

unsafe fn disable_in_low_power_unchecked()

Safety Read more
source§

impl<PIN> OneShot<ADC2, u16, PIN> for Adc<ADC2>
where PIN: Channel<ADC2, ID = u8>,

§

type Error = ()

Error type returned by ADC methods
source§

fn read(&mut self, pin: &mut PIN) -> Result<u16, Self::Error>

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

impl PeriAddress for ADC2

source§

fn address(&self) -> u32

Returns the address to be used by the DMA stream.
§

type MemSize = u16

Memory size of the peripheral.
source§

impl RccBus for ADC2

§

type Bus = APB2

Bus type;
source§

impl Reset for ADC2

source§

fn reset(rcc: &RccRB)

Resets peripheral
source§

unsafe fn reset_unchecked()

Safety Read more
source§

impl DMASet<StreamX<DMA2, 2>, 1, PeripheralToMemory> for ADC2

source§

impl DMASet<StreamX<DMA2, 3>, 1, PeripheralToMemory> for ADC2

source§

impl Send for ADC2

Auto Trait Implementations§

§

impl RefUnwindSafe for ADC2

§

impl !Sync for ADC2

§

impl Unpin for ADC2

§

impl UnwindSafe for ADC2

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> 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> BusClock for T
where T: RccBus, <T as RccBus>::Bus: BusClock,

source§

fn clock(clocks: &Clocks) -> Rate<u32, 1, 1>

Calculates frequency depending on Clock state
source§

impl<T> BusTimerClock for T
where T: RccBus, <T as RccBus>::Bus: BusTimerClock,

source§

fn timer_clock(clocks: &Clocks) -> Rate<u32, 1, 1>

Calculates base frequency of timer depending on Clock state
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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

§

type Error = Infallible

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

§

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.