#[repr(C)]
#[derive(Debug)]
pub struct RegisterBlock {
isr: ISR,
ifcr: IFCR,
ch: [CH; 8],
}
impl RegisterBlock {
#[inline(always)]
pub const fn isr(&self) -> &ISR {
&self.isr
}
#[inline(always)]
pub const fn ifcr(&self) -> &IFCR {
&self.ifcr
}
#[inline(always)]
pub const fn ch(&self, n: usize) -> &CH {
&self.ch[n]
}
#[inline(always)]
pub fn ch_iter(&self) -> impl Iterator<Item = &CH> {
self.ch.iter()
}
}
pub type ISR = crate::Reg<isr::ISRrs>;
pub mod isr;
pub type IFCR = crate::Reg<ifcr::IFCRrs>;
pub mod ifcr;
pub use self::ch::CH;
pub mod ch;