#[repr(C)]
#[derive(Debug)]
pub struct RegisterBlock {
moder: MODER,
otyper: OTYPER,
ospeedr: OSPEEDR,
pupdr: PUPDR,
idr: IDR,
odr: ODR,
bsrr: BSRR,
lckr: LCKR,
afrl: AFRL,
afrh: AFRH,
brr: BRR,
}
impl RegisterBlock {
#[inline(always)]
pub const fn moder(&self) -> &MODER {
&self.moder
}
#[inline(always)]
pub const fn otyper(&self) -> &OTYPER {
&self.otyper
}
#[inline(always)]
pub const fn ospeedr(&self) -> &OSPEEDR {
&self.ospeedr
}
#[inline(always)]
pub const fn pupdr(&self) -> &PUPDR {
&self.pupdr
}
#[inline(always)]
pub const fn idr(&self) -> &IDR {
&self.idr
}
#[inline(always)]
pub const fn odr(&self) -> &ODR {
&self.odr
}
#[inline(always)]
pub const fn bsrr(&self) -> &BSRR {
&self.bsrr
}
#[inline(always)]
pub const fn lckr(&self) -> &LCKR {
&self.lckr
}
#[inline(always)]
pub const fn afrl(&self) -> &AFRL {
&self.afrl
}
#[inline(always)]
pub const fn afrh(&self) -> &AFRH {
&self.afrh
}
#[inline(always)]
pub const fn brr(&self) -> &BRR {
&self.brr
}
}
pub type MODER = crate::Reg<moder::MODERrs>;
pub mod moder;
pub use crate::stm32f0x2::gpioa::otyper;
pub use crate::stm32f0x2::gpioa::OTYPER;
pub type OSPEEDR = crate::Reg<ospeedr::OSPEEDRrs>;
pub mod ospeedr;
pub type PUPDR = crate::Reg<pupdr::PUPDRrs>;
pub mod pupdr;
pub use crate::stm32f0x2::gpioa::afrh;
pub use crate::stm32f0x2::gpioa::afrl;
pub use crate::stm32f0x2::gpioa::brr;
pub use crate::stm32f0x2::gpioa::bsrr;
pub use crate::stm32f0x2::gpioa::idr;
pub use crate::stm32f0x2::gpioa::lckr;
pub use crate::stm32f0x2::gpioa::odr;
pub use crate::stm32f0x2::gpioa::AFRH;
pub use crate::stm32f0x2::gpioa::AFRL;
pub use crate::stm32f0x2::gpioa::BRR;
pub use crate::stm32f0x2::gpioa::BSRR;
pub use crate::stm32f0x2::gpioa::IDR;
pub use crate::stm32f0x2::gpioa::LCKR;
pub use crate::stm32f0x2::gpioa::ODR;