1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 _reserved0: [u8; 0x01],
5 intenclr: Intenclr,
6 intenset: Intenset,
7 intflag: Intflag,
8 hsdiv: Hsdiv,
9 cpudiv: Cpudiv,
10 _reserved5: [u8; 0x0a],
11 ahbmask: Ahbmask,
12 apbamask: Apbamask,
13 apbbmask: Apbbmask,
14 apbcmask: Apbcmask,
15 apbdmask: Apbdmask,
16}
17impl RegisterBlock {
18#[doc = "0x01 - Interrupt Enable Clear"]
19 #[inline(always)]
20pub const fn intenclr(&self) -> &Intenclr {
21&self.intenclr
22 }
23#[doc = "0x02 - Interrupt Enable Set"]
24 #[inline(always)]
25pub const fn intenset(&self) -> &Intenset {
26&self.intenset
27 }
28#[doc = "0x03 - Interrupt Flag Status and Clear"]
29 #[inline(always)]
30pub const fn intflag(&self) -> &Intflag {
31&self.intflag
32 }
33#[doc = "0x04 - HS Clock Division"]
34 #[inline(always)]
35pub const fn hsdiv(&self) -> &Hsdiv {
36&self.hsdiv
37 }
38#[doc = "0x05 - CPU Clock Division"]
39 #[inline(always)]
40pub const fn cpudiv(&self) -> &Cpudiv {
41&self.cpudiv
42 }
43#[doc = "0x10 - AHB Mask"]
44 #[inline(always)]
45pub const fn ahbmask(&self) -> &Ahbmask {
46&self.ahbmask
47 }
48#[doc = "0x14 - APBA Mask"]
49 #[inline(always)]
50pub const fn apbamask(&self) -> &Apbamask {
51&self.apbamask
52 }
53#[doc = "0x18 - APBB Mask"]
54 #[inline(always)]
55pub const fn apbbmask(&self) -> &Apbbmask {
56&self.apbbmask
57 }
58#[doc = "0x1c - APBC Mask"]
59 #[inline(always)]
60pub const fn apbcmask(&self) -> &Apbcmask {
61&self.apbcmask
62 }
63#[doc = "0x20 - APBD Mask"]
64 #[inline(always)]
65pub const fn apbdmask(&self) -> &Apbdmask {
66&self.apbdmask
67 }
68}
69#[doc = "INTENCLR (rw) register accessor: Interrupt Enable Clear\n\nYou can [`read`](crate::Reg::read) this register and get [`intenclr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intenclr::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@intenclr`]
70module"]
71#[doc(alias = "INTENCLR")]
72pub type Intenclr = crate::Reg<intenclr::IntenclrSpec>;
73#[doc = "Interrupt Enable Clear"]
74pub mod intenclr;
75#[doc = "INTENSET (rw) register accessor: Interrupt Enable Set\n\nYou can [`read`](crate::Reg::read) this register and get [`intenset::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intenset::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@intenset`]
76module"]
77#[doc(alias = "INTENSET")]
78pub type Intenset = crate::Reg<intenset::IntensetSpec>;
79#[doc = "Interrupt Enable Set"]
80pub mod intenset;
81#[doc = "INTFLAG (rw) register accessor: Interrupt Flag Status and Clear\n\nYou can [`read`](crate::Reg::read) this register and get [`intflag::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intflag::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@intflag`]
82module"]
83#[doc(alias = "INTFLAG")]
84pub type Intflag = crate::Reg<intflag::IntflagSpec>;
85#[doc = "Interrupt Flag Status and Clear"]
86pub mod intflag;
87#[doc = "HSDIV (r) register accessor: HS Clock Division\n\nYou can [`read`](crate::Reg::read) this register and get [`hsdiv::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@hsdiv`]
88module"]
89#[doc(alias = "HSDIV")]
90pub type Hsdiv = crate::Reg<hsdiv::HsdivSpec>;
91#[doc = "HS Clock Division"]
92pub mod hsdiv;
93#[doc = "CPUDIV (rw) register accessor: CPU Clock Division\n\nYou can [`read`](crate::Reg::read) this register and get [`cpudiv::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cpudiv::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@cpudiv`]
94module"]
95#[doc(alias = "CPUDIV")]
96pub type Cpudiv = crate::Reg<cpudiv::CpudivSpec>;
97#[doc = "CPU Clock Division"]
98pub mod cpudiv;
99#[doc = "AHBMASK (rw) register accessor: AHB Mask\n\nYou can [`read`](crate::Reg::read) this register and get [`ahbmask::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ahbmask::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@ahbmask`]
100module"]
101#[doc(alias = "AHBMASK")]
102pub type Ahbmask = crate::Reg<ahbmask::AhbmaskSpec>;
103#[doc = "AHB Mask"]
104pub mod ahbmask;
105#[doc = "APBAMASK (rw) register accessor: APBA Mask\n\nYou can [`read`](crate::Reg::read) this register and get [`apbamask::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apbamask::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@apbamask`]
106module"]
107#[doc(alias = "APBAMASK")]
108pub type Apbamask = crate::Reg<apbamask::ApbamaskSpec>;
109#[doc = "APBA Mask"]
110pub mod apbamask;
111#[doc = "APBBMASK (rw) register accessor: APBB Mask\n\nYou can [`read`](crate::Reg::read) this register and get [`apbbmask::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apbbmask::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@apbbmask`]
112module"]
113#[doc(alias = "APBBMASK")]
114pub type Apbbmask = crate::Reg<apbbmask::ApbbmaskSpec>;
115#[doc = "APBB Mask"]
116pub mod apbbmask;
117#[doc = "APBCMASK (rw) register accessor: APBC Mask\n\nYou can [`read`](crate::Reg::read) this register and get [`apbcmask::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apbcmask::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@apbcmask`]
118module"]
119#[doc(alias = "APBCMASK")]
120pub type Apbcmask = crate::Reg<apbcmask::ApbcmaskSpec>;
121#[doc = "APBC Mask"]
122pub mod apbcmask;
123#[doc = "APBDMASK (rw) register accessor: APBD Mask\n\nYou can [`read`](crate::Reg::read) this register and get [`apbdmask::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apbdmask::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@apbdmask`]
124module"]
125#[doc(alias = "APBDMASK")]
126pub type Apbdmask = crate::Reg<apbdmask::ApbdmaskSpec>;
127#[doc = "APBD Mask"]
128pub mod apbdmask;