1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 sar: SAR,
5 _reserved1: [u8; 0x04],
6 dar: DAR,
7 _reserved2: [u8; 0x0c],
8 ctll: CTLL,
9 ctlh: CTLH,
10 _reserved4: [u8; 0x20],
11 cfgl: CFGL,
12 cfgh: CFGH,
13}
14impl RegisterBlock {
15 #[doc = "0x00 - Source Address Register"]
16 #[inline(always)]
17 pub const fn sar(&self) -> &SAR {
18 &self.sar
19 }
20 #[doc = "0x08 - Destination Address Register"]
21 #[inline(always)]
22 pub const fn dar(&self) -> &DAR {
23 &self.dar
24 }
25 #[doc = "0x18 - Control Register Low"]
26 #[inline(always)]
27 pub const fn ctll(&self) -> &CTLL {
28 &self.ctll
29 }
30 #[doc = "0x1c - Control Register High"]
31 #[inline(always)]
32 pub const fn ctlh(&self) -> &CTLH {
33 &self.ctlh
34 }
35 #[doc = "0x40 - Configuration Register Low"]
36 #[inline(always)]
37 pub const fn cfgl(&self) -> &CFGL {
38 &self.cfgl
39 }
40 #[doc = "0x44 - Configuration Register High"]
41 #[inline(always)]
42 pub const fn cfgh(&self) -> &CFGH {
43 &self.cfgh
44 }
45}
46#[doc = "SAR (rw) register accessor: Source Address Register\n\nYou can [`read`](crate::Reg::read) this register and get [`sar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sar::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@sar`]
47module"]
48pub type SAR = crate::Reg<sar::SAR_SPEC>;
49#[doc = "Source Address Register"]
50pub mod sar;
51#[doc = "DAR (rw) register accessor: Destination Address Register\n\nYou can [`read`](crate::Reg::read) this register and get [`dar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dar::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@dar`]
52module"]
53pub type DAR = crate::Reg<dar::DAR_SPEC>;
54#[doc = "Destination Address Register"]
55pub mod dar;
56#[doc = "CTLL (rw) register accessor: Control Register Low\n\nYou can [`read`](crate::Reg::read) this register and get [`ctll::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctll::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@ctll`]
57module"]
58pub type CTLL = crate::Reg<ctll::CTLL_SPEC>;
59#[doc = "Control Register Low"]
60pub mod ctll;
61#[doc = "CTLH (rw) register accessor: Control Register High\n\nYou can [`read`](crate::Reg::read) this register and get [`ctlh::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctlh::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@ctlh`]
62module"]
63pub type CTLH = crate::Reg<ctlh::CTLH_SPEC>;
64#[doc = "Control Register High"]
65pub mod ctlh;
66#[doc = "CFGL (rw) register accessor: Configuration Register Low\n\nYou can [`read`](crate::Reg::read) this register and get [`cfgl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfgl::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@cfgl`]
67module"]
68pub type CFGL = crate::Reg<cfgl::CFGL_SPEC>;
69#[doc = "Configuration Register Low"]
70pub mod cfgl;
71#[doc = "CFGH (rw) register accessor: Configuration Register High\n\nYou can [`read`](crate::Reg::read) this register and get [`cfgh::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfgh::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@cfgh`]
72module"]
73pub type CFGH = crate::Reg<cfgh::CFGH_SPEC>;
74#[doc = "Configuration Register High"]
75pub mod cfgh;