1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - START register"]
5 pub start: START,
6 #[doc = "0x04 - SWBRK register"]
7 pub swbrk: SWBRK,
8 #[doc = "0x08 - RESET register"]
9 pub reset: RESET,
10 _reserved_3_restart: [u8; 0x04],
11 #[doc = "0x10 - PULSE register"]
12 pub pulse: PULSE,
13 #[doc = "0x14 - FILTER register"]
14 pub filter: FILTER,
15 #[doc = "0x18 - BRKPOL register"]
16 pub brkpol: BRKPOL,
17 #[doc = "0x1c - BRKIE register"]
18 pub brkie: BRKIE,
19 _reserved_8_brkif: [u8; 0x04],
20 #[doc = "0x24 - EVSR register"]
21 pub evsr: EVSR,
22}
23impl RegisterBlock {
24 #[doc = "0x0c - RESTART register"]
25 #[inline(always)]
26 pub fn restart(&self) -> &RESTART {
27 unsafe { &*(((self as *const Self) as *const u8).add(12usize) as *const RESTART) }
28 }
29 #[doc = "0x0c - RELOADEN register"]
30 #[inline(always)]
31 pub fn reloaden(&self) -> &RELOADEN {
32 unsafe { &*(((self as *const Self) as *const u8).add(12usize) as *const RELOADEN) }
33 }
34 #[doc = "0x20 - BRKSR register"]
35 #[inline(always)]
36 pub fn brksr(&self) -> &BRKSR {
37 unsafe { &*(((self as *const Self) as *const u8).add(32usize) as *const BRKSR) }
38 }
39 #[doc = "0x20 - BRKIF register"]
40 #[inline(always)]
41 pub fn brkif(&self) -> &BRKIF {
42 unsafe { &*(((self as *const Self) as *const u8).add(32usize) as *const BRKIF) }
43 }
44}
45#[doc = "START (rw) register accessor: an alias for `Reg<START_SPEC>`"]
46pub type START = crate::Reg<start::START_SPEC>;
47#[doc = "START register"]
48pub mod start;
49#[doc = "SWBRK (rw) register accessor: an alias for `Reg<SWBRK_SPEC>`"]
50pub type SWBRK = crate::Reg<swbrk::SWBRK_SPEC>;
51#[doc = "SWBRK register"]
52pub mod swbrk;
53#[doc = "RESET (rw) register accessor: an alias for `Reg<RESET_SPEC>`"]
54pub type RESET = crate::Reg<reset::RESET_SPEC>;
55#[doc = "RESET register"]
56pub mod reset;
57#[doc = "RELOADEN (rw) register accessor: an alias for `Reg<RELOADEN_SPEC>`"]
58pub type RELOADEN = crate::Reg<reloaden::RELOADEN_SPEC>;
59#[doc = "RELOADEN register"]
60pub mod reloaden;
61#[doc = "RESTART (rw) register accessor: an alias for `Reg<RESTART_SPEC>`"]
62pub type RESTART = crate::Reg<restart::RESTART_SPEC>;
63#[doc = "RESTART register"]
64pub mod restart;
65#[doc = "PULSE (rw) register accessor: an alias for `Reg<PULSE_SPEC>`"]
66pub type PULSE = crate::Reg<pulse::PULSE_SPEC>;
67#[doc = "PULSE register"]
68pub mod pulse;
69#[doc = "FILTER (rw) register accessor: an alias for `Reg<FILTER_SPEC>`"]
70pub type FILTER = crate::Reg<filter::FILTER_SPEC>;
71#[doc = "FILTER register"]
72pub mod filter;
73#[doc = "BRKPOL (rw) register accessor: an alias for `Reg<BRKPOL_SPEC>`"]
74pub type BRKPOL = crate::Reg<brkpol::BRKPOL_SPEC>;
75#[doc = "BRKPOL register"]
76pub mod brkpol;
77#[doc = "BRKIE (rw) register accessor: an alias for `Reg<BRKIE_SPEC>`"]
78pub type BRKIE = crate::Reg<brkie::BRKIE_SPEC>;
79#[doc = "BRKIE register"]
80pub mod brkie;
81#[doc = "BRKIF (rw) register accessor: an alias for `Reg<BRKIF_SPEC>`"]
82pub type BRKIF = crate::Reg<brkif::BRKIF_SPEC>;
83#[doc = "BRKIF register"]
84pub mod brkif;
85#[doc = "BRKSR (rw) register accessor: an alias for `Reg<BRKSR_SPEC>`"]
86pub type BRKSR = crate::Reg<brksr::BRKSR_SPEC>;
87#[doc = "BRKSR register"]
88pub mod brksr;
89#[doc = "EVSR (rw) register accessor: an alias for `Reg<EVSR_SPEC>`"]
90pub type EVSR = crate::Reg<evsr::EVSR_SPEC>;
91#[doc = "EVSR register"]
92pub mod evsr;