1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 intenclr: Intenclr,
5 intenset: Intenset,
6 intflag: Intflag,
7 status: Status,
8 bod33: Bod33,
9 _reserved5: [u8; 0x04],
10 vreg: Vreg,
11 vref: Vref,
12 bbps: Bbps,
13 bkout: Bkout,
14 bkin: Bkin,
15}
16impl RegisterBlock {
17#[doc = "0x00 - Interrupt Enable Clear"]
18 #[inline(always)]
19pub const fn intenclr(&self) -> &Intenclr {
20&self.intenclr
21 }
22#[doc = "0x04 - Interrupt Enable Set"]
23 #[inline(always)]
24pub const fn intenset(&self) -> &Intenset {
25&self.intenset
26 }
27#[doc = "0x08 - Interrupt Flag Status and Clear"]
28 #[inline(always)]
29pub const fn intflag(&self) -> &Intflag {
30&self.intflag
31 }
32#[doc = "0x0c - Power and Clocks Status"]
33 #[inline(always)]
34pub const fn status(&self) -> &Status {
35&self.status
36 }
37#[doc = "0x10 - BOD33 Control"]
38 #[inline(always)]
39pub const fn bod33(&self) -> &Bod33 {
40&self.bod33
41 }
42#[doc = "0x18 - VREG Control"]
43 #[inline(always)]
44pub const fn vreg(&self) -> &Vreg {
45&self.vreg
46 }
47#[doc = "0x1c - VREF Control"]
48 #[inline(always)]
49pub const fn vref(&self) -> &Vref {
50&self.vref
51 }
52#[doc = "0x20 - Battery Backup Power Switch"]
53 #[inline(always)]
54pub const fn bbps(&self) -> &Bbps {
55&self.bbps
56 }
57#[doc = "0x24 - Backup Output Control"]
58 #[inline(always)]
59pub const fn bkout(&self) -> &Bkout {
60&self.bkout
61 }
62#[doc = "0x28 - Backup Input Control"]
63 #[inline(always)]
64pub const fn bkin(&self) -> &Bkin {
65&self.bkin
66 }
67}
68#[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`]
69module"]
70#[doc(alias = "INTENCLR")]
71pub type Intenclr = crate::Reg<intenclr::IntenclrSpec>;
72#[doc = "Interrupt Enable Clear"]
73pub mod intenclr;
74#[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`]
75module"]
76#[doc(alias = "INTENSET")]
77pub type Intenset = crate::Reg<intenset::IntensetSpec>;
78#[doc = "Interrupt Enable Set"]
79pub mod intenset;
80#[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`]
81module"]
82#[doc(alias = "INTFLAG")]
83pub type Intflag = crate::Reg<intflag::IntflagSpec>;
84#[doc = "Interrupt Flag Status and Clear"]
85pub mod intflag;
86#[doc = "STATUS (r) register accessor: Power and Clocks Status\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status`]
87module"]
88#[doc(alias = "STATUS")]
89pub type Status = crate::Reg<status::StatusSpec>;
90#[doc = "Power and Clocks Status"]
91pub mod status;
92#[doc = "BOD33 (rw) register accessor: BOD33 Control\n\nYou can [`read`](crate::Reg::read) this register and get [`bod33::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bod33::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@bod33`]
93module"]
94#[doc(alias = "BOD33")]
95pub type Bod33 = crate::Reg<bod33::Bod33Spec>;
96#[doc = "BOD33 Control"]
97pub mod bod33;
98#[doc = "VREG (rw) register accessor: VREG Control\n\nYou can [`read`](crate::Reg::read) this register and get [`vreg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`vreg::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@vreg`]
99module"]
100#[doc(alias = "VREG")]
101pub type Vreg = crate::Reg<vreg::VregSpec>;
102#[doc = "VREG Control"]
103pub mod vreg;
104#[doc = "VREF (rw) register accessor: VREF Control\n\nYou can [`read`](crate::Reg::read) this register and get [`vref::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`vref::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@vref`]
105module"]
106#[doc(alias = "VREF")]
107pub type Vref = crate::Reg<vref::VrefSpec>;
108#[doc = "VREF Control"]
109pub mod vref;
110#[doc = "BBPS (rw) register accessor: Battery Backup Power Switch\n\nYou can [`read`](crate::Reg::read) this register and get [`bbps::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bbps::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@bbps`]
111module"]
112#[doc(alias = "BBPS")]
113pub type Bbps = crate::Reg<bbps::BbpsSpec>;
114#[doc = "Battery Backup Power Switch"]
115pub mod bbps;
116#[doc = "BKOUT (rw) register accessor: Backup Output Control\n\nYou can [`read`](crate::Reg::read) this register and get [`bkout::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bkout::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@bkout`]
117module"]
118#[doc(alias = "BKOUT")]
119pub type Bkout = crate::Reg<bkout::BkoutSpec>;
120#[doc = "Backup Output Control"]
121pub mod bkout;
122#[doc = "BKIN (r) register accessor: Backup Input Control\n\nYou can [`read`](crate::Reg::read) this register and get [`bkin::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bkin`]
123module"]
124#[doc(alias = "BKIN")]
125pub type Bkin = crate::Reg<bkin::BkinSpec>;
126#[doc = "Backup Input Control"]
127pub mod bkin;