1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 ctrla: Ctrla,
5 sleepcfg: Sleepcfg,
6 _reserved2: [u8; 0x02],
7 intenclr: Intenclr,
8 intenset: Intenset,
9 intflag: Intflag,
10 _reserved5: [u8; 0x01],
11 stdbycfg: Stdbycfg,
12 hibcfg: Hibcfg,
13 bkupcfg: Bkupcfg,
14 _reserved8: [u8; 0x07],
15 pwsakdly: Pwsakdly,
16}
17impl RegisterBlock {
18 #[doc = "0x00 - Control A"]
19 #[inline(always)]
20 pub const fn ctrla(&self) -> &Ctrla {
21 &self.ctrla
22 }
23 #[doc = "0x01 - Sleep Configuration"]
24 #[inline(always)]
25 pub const fn sleepcfg(&self) -> &Sleepcfg {
26 &self.sleepcfg
27 }
28 #[doc = "0x04 - Interrupt Enable Clear"]
29 #[inline(always)]
30 pub const fn intenclr(&self) -> &Intenclr {
31 &self.intenclr
32 }
33 #[doc = "0x05 - Interrupt Enable Set"]
34 #[inline(always)]
35 pub const fn intenset(&self) -> &Intenset {
36 &self.intenset
37 }
38 #[doc = "0x06 - Interrupt Flag Status and Clear"]
39 #[inline(always)]
40 pub const fn intflag(&self) -> &Intflag {
41 &self.intflag
42 }
43 #[doc = "0x08 - Standby Configuration"]
44 #[inline(always)]
45 pub const fn stdbycfg(&self) -> &Stdbycfg {
46 &self.stdbycfg
47 }
48 #[doc = "0x09 - Hibernate Configuration"]
49 #[inline(always)]
50 pub const fn hibcfg(&self) -> &Hibcfg {
51 &self.hibcfg
52 }
53 #[doc = "0x0a - Backup Configuration"]
54 #[inline(always)]
55 pub const fn bkupcfg(&self) -> &Bkupcfg {
56 &self.bkupcfg
57 }
58 #[doc = "0x12 - Power Switch Acknowledge Delay"]
59 #[inline(always)]
60 pub const fn pwsakdly(&self) -> &Pwsakdly {
61 &self.pwsakdly
62 }
63}
64#[doc = "CTRLA (rw) register accessor: Control A\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrla::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrla::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@ctrla`]
65module"]
66#[doc(alias = "CTRLA")]
67pub type Ctrla = crate::Reg<ctrla::CtrlaSpec>;
68#[doc = "Control A"]
69pub mod ctrla;
70#[doc = "SLEEPCFG (rw) register accessor: Sleep Configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`sleepcfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sleepcfg::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@sleepcfg`]
71module"]
72#[doc(alias = "SLEEPCFG")]
73pub type Sleepcfg = crate::Reg<sleepcfg::SleepcfgSpec>;
74#[doc = "Sleep Configuration"]
75pub mod sleepcfg;
76#[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`]
77module"]
78#[doc(alias = "INTENCLR")]
79pub type Intenclr = crate::Reg<intenclr::IntenclrSpec>;
80#[doc = "Interrupt Enable Clear"]
81pub mod intenclr;
82#[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`]
83module"]
84#[doc(alias = "INTENSET")]
85pub type Intenset = crate::Reg<intenset::IntensetSpec>;
86#[doc = "Interrupt Enable Set"]
87pub mod intenset;
88#[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`]
89module"]
90#[doc(alias = "INTFLAG")]
91pub type Intflag = crate::Reg<intflag::IntflagSpec>;
92#[doc = "Interrupt Flag Status and Clear"]
93pub mod intflag;
94#[doc = "STDBYCFG (rw) register accessor: Standby Configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`stdbycfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`stdbycfg::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@stdbycfg`]
95module"]
96#[doc(alias = "STDBYCFG")]
97pub type Stdbycfg = crate::Reg<stdbycfg::StdbycfgSpec>;
98#[doc = "Standby Configuration"]
99pub mod stdbycfg;
100#[doc = "HIBCFG (rw) register accessor: Hibernate Configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`hibcfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hibcfg::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@hibcfg`]
101module"]
102#[doc(alias = "HIBCFG")]
103pub type Hibcfg = crate::Reg<hibcfg::HibcfgSpec>;
104#[doc = "Hibernate Configuration"]
105pub mod hibcfg;
106#[doc = "BKUPCFG (rw) register accessor: Backup Configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`bkupcfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bkupcfg::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@bkupcfg`]
107module"]
108#[doc(alias = "BKUPCFG")]
109pub type Bkupcfg = crate::Reg<bkupcfg::BkupcfgSpec>;
110#[doc = "Backup Configuration"]
111pub mod bkupcfg;
112#[doc = "PWSAKDLY (rw) register accessor: Power Switch Acknowledge Delay\n\nYou can [`read`](crate::Reg::read) this register and get [`pwsakdly::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pwsakdly::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@pwsakdly`]
113module"]
114#[doc(alias = "PWSAKDLY")]
115pub type Pwsakdly = crate::Reg<pwsakdly::PwsakdlySpec>;
116#[doc = "Power Switch Acknowledge Delay"]
117pub mod pwsakdly;