Struct stm32g0::stm32g031::adc::RegisterBlock[][src]

#[repr(C)]pub struct RegisterBlock {
    pub isr: ISR,
    pub ier: IER,
    pub cr: CR,
    pub cfgr1: CFGR1,
    pub cfgr2: CFGR2,
    pub smpr: SMPR,
    pub awd1tr: AWD1TR,
    pub awd2tr: AWD2TR,
    pub awd3tr: AWD3TR,
    pub dr: DR,
    pub awd2cr: AWD2CR,
    pub awd3cr: AWD3CR,
    pub calfact: CALFACT,
    pub ccr: CCR,
    // some fields omitted
}

Register block

Fields

isr: ISR

0x00 - ADC interrupt and status register

ier: IER

0x04 - ADC interrupt enable register

cr: CR

0x08 - ADC control register

cfgr1: CFGR1

0x0c - ADC configuration register 1

cfgr2: CFGR2

0x10 - ADC configuration register 2

smpr: SMPR

0x14 - ADC sampling time register

awd1tr: AWD1TR

0x20 - watchdog threshold register

awd2tr: AWD2TR

0x24 - watchdog threshold register

awd3tr: AWD3TR

0x2c - watchdog threshold register

dr: DR

0x40 - ADC group regular conversion data register

awd2cr: AWD2CR

0xa0 - ADC analog watchdog 2 configuration register

awd3cr: AWD3CR

0xa4 - ADC analog watchdog 3 configuration register

calfact: CALFACT

0xb4 - ADC calibration factors register

ccr: CCR

0x308 - ADC common control register

Implementations

impl RegisterBlock[src]

pub fn chselr_1(&self) -> &CHSELR_1[src]

0x28 - channel selection register CHSELRMOD = 1 in ADC_CFGR1

pub fn chselr_1_mut(&self) -> &mut CHSELR_1[src]

0x28 - channel selection register CHSELRMOD = 1 in ADC_CFGR1

pub fn chselr(&self) -> &CHSELR[src]

0x28 - channel selection register

pub fn chselr_mut(&self) -> &mut CHSELR[src]

0x28 - channel selection register

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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.

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.