ra6t2 0.2.0

Peripheral access API for ra6t2 microcontrollers (generated using svd2rust)
Documentation
#[doc = r"Register block"]
#[repr(C)]
pub struct RegisterBlock {
    _reserved_0_pdr: [u8; 0x04],
    _reserved_1_pidr: [u8; 0x04],
    _reserved_2_porr: [u8; 0x04],
}
impl RegisterBlock {
    #[doc = "0x00 - Port Control Register 1"]
    #[inline(always)]
    pub const fn pdr(&self) -> &PDR {
        unsafe { &*(self as *const Self).cast::<u8>().add(0usize).cast() }
    }
    #[doc = "0x00 - Port Control Register 1"]
    #[inline(always)]
    pub const fn pcntr1(&self) -> &PCNTR1 {
        unsafe { &*(self as *const Self).cast::<u8>().add(0usize).cast() }
    }
    #[doc = "0x02 - Port Control Register 1"]
    #[inline(always)]
    pub const fn podr(&self) -> &PODR {
        unsafe { &*(self as *const Self).cast::<u8>().add(2usize).cast() }
    }
    #[doc = "0x04 - Port Control Register 2"]
    #[inline(always)]
    pub const fn pidr(&self) -> &PIDR {
        unsafe { &*(self as *const Self).cast::<u8>().add(4usize).cast() }
    }
    #[doc = "0x04 - Port Control Register 2"]
    #[inline(always)]
    pub const fn pcntr2(&self) -> &PCNTR2 {
        unsafe { &*(self as *const Self).cast::<u8>().add(4usize).cast() }
    }
    #[doc = "0x08 - Port Control Register 3"]
    #[inline(always)]
    pub const fn posr(&self) -> &POSR {
        unsafe { &*(self as *const Self).cast::<u8>().add(8usize).cast() }
    }
    #[doc = "0x08 - Port Control Register 3"]
    #[inline(always)]
    pub const fn pcntr3(&self) -> &PCNTR3 {
        unsafe { &*(self as *const Self).cast::<u8>().add(8usize).cast() }
    }
    #[doc = "0x0a - Port Control Register 3"]
    #[inline(always)]
    pub const fn porr(&self) -> &PORR {
        unsafe { &*(self as *const Self).cast::<u8>().add(10usize).cast() }
    }
}
#[doc = "PCNTR1 (rw) register accessor: an alias for `Reg<PCNTR1_SPEC>`"]
pub type PCNTR1 = crate::Reg<pcntr1::PCNTR1_SPEC>;
#[doc = "Port Control Register 1"]
pub mod pcntr1;
#[doc = "PDR (rw) register accessor: an alias for `Reg<PDR_SPEC>`"]
pub type PDR = crate::Reg<pdr::PDR_SPEC>;
#[doc = "Port Control Register 1"]
pub mod pdr;
#[doc = "PODR (rw) register accessor: an alias for `Reg<PODR_SPEC>`"]
pub type PODR = crate::Reg<podr::PODR_SPEC>;
#[doc = "Port Control Register 1"]
pub mod podr;
#[doc = "PCNTR2 (r) register accessor: an alias for `Reg<PCNTR2_SPEC>`"]
pub type PCNTR2 = crate::Reg<pcntr2::PCNTR2_SPEC>;
#[doc = "Port Control Register 2"]
pub mod pcntr2;
#[doc = "PIDR (r) register accessor: an alias for `Reg<PIDR_SPEC>`"]
pub type PIDR = crate::Reg<pidr::PIDR_SPEC>;
#[doc = "Port Control Register 2"]
pub mod pidr;
#[doc = "PCNTR3 (w) register accessor: an alias for `Reg<PCNTR3_SPEC>`"]
pub type PCNTR3 = crate::Reg<pcntr3::PCNTR3_SPEC>;
#[doc = "Port Control Register 3"]
pub mod pcntr3;
#[doc = "POSR (w) register accessor: an alias for `Reg<POSR_SPEC>`"]
pub type POSR = crate::Reg<posr::POSR_SPEC>;
#[doc = "Port Control Register 3"]
pub mod posr;
#[doc = "PORR (w) register accessor: an alias for `Reg<PORR_SPEC>`"]
pub type PORR = crate::Reg<porr::PORR_SPEC>;
#[doc = "Port Control Register 3"]
pub mod porr;