1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 cr: Cr,
5 cfgr: Cfgr,
6 isr: Isr,
7 icr: Icr,
8}
9impl RegisterBlock {
10 #[doc = "0x00 - control register"]
11 #[inline(always)]
12 pub const fn cr(&self) -> &Cr {
13 &self.cr
14 }
15 #[doc = "0x04 - configuration register"]
16 #[inline(always)]
17 pub const fn cfgr(&self) -> &Cfgr {
18 &self.cfgr
19 }
20 #[doc = "0x08 - interrupt and status register"]
21 #[inline(always)]
22 pub const fn isr(&self) -> &Isr {
23 &self.isr
24 }
25 #[doc = "0x0c - interrupt flag clear register"]
26 #[inline(always)]
27 pub const fn icr(&self) -> &Icr {
28 &self.icr
29 }
30}
31#[doc = "CR (rw) register accessor: control register\n\nYou can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`] module"]
32#[doc(alias = "CR")]
33pub type Cr = crate::Reg<cr::CrSpec>;
34#[doc = "control register"]
35pub mod cr;
36#[doc = "CFGR (rw) register accessor: configuration register\n\nYou can [`read`](crate::Reg::read) this register and get [`cfgr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfgr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cfgr`] module"]
37#[doc(alias = "CFGR")]
38pub type Cfgr = crate::Reg<cfgr::CfgrSpec>;
39#[doc = "configuration register"]
40pub mod cfgr;
41#[doc = "ISR (r) register accessor: interrupt and status register\n\nYou can [`read`](crate::Reg::read) this register and get [`isr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@isr`] module"]
42#[doc(alias = "ISR")]
43pub type Isr = crate::Reg<isr::IsrSpec>;
44#[doc = "interrupt and status register"]
45pub mod isr;
46#[doc = "ICR (rw) register accessor: interrupt flag clear register\n\nYou can [`read`](crate::Reg::read) this register and get [`icr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`icr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@icr`] module"]
47#[doc(alias = "ICR")]
48pub type Icr = crate::Reg<icr::IcrSpec>;
49#[doc = "interrupt flag clear register"]
50pub mod icr;