Struct stm32f1xx_hal::afio::Parts

source ·
pub struct Parts {
    pub evcr: EVCR,
    pub mapr: MAPR,
    pub exticr1: EXTICR1,
    pub exticr2: EXTICR2,
    pub exticr3: EXTICR3,
    pub exticr4: EXTICR4,
    pub mapr2: MAPR2,
}
Expand description

HAL wrapper around the AFIO registers

Aquired by calling constrain on the AFIO registers

let p = pac::Peripherals::take().unwrap();
let mut rcc = p.RCC.constrain();
let mut afio = p.AFIO.constrain();

Fields§

§evcr: EVCR§mapr: MAPR§exticr1: EXTICR1§exticr2: EXTICR2§exticr3: EXTICR3§exticr4: EXTICR4§mapr2: MAPR2

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.

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.