pub struct Afio {
pub evcr: EVCR,
pub mapr: MAPR,
pub exticr1: EXTICR1,
pub exticr2: EXTICR2,
pub exticr3: EXTICR3,
pub exticr4: EXTICR4,
pub mapr2: MAPR2,
/* private fields */
}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: MAPR2Auto Trait Implementations§
impl Freeze for Afio
impl !RefUnwindSafe for Afio
impl Send for Afio
impl !Sync for Afio
impl Unpin for Afio
impl UnwindSafe for Afio
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more