1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Start HFXO crystal oscillator"]
5 pub tasks_hfclkstart: TASKS_HFCLKSTART,
6 #[doc = "0x04 - Stop HFXO crystal oscillator"]
7 pub tasks_hfclkstop: TASKS_HFCLKSTOP,
8 #[doc = "0x08 - Start LFCLK"]
9 pub tasks_lfclkstart: TASKS_LFCLKSTART,
10 #[doc = "0x0c - Stop LFCLK"]
11 pub tasks_lfclkstop: TASKS_LFCLKSTOP,
12 #[doc = "0x10 - Start calibration of LFRC"]
13 pub tasks_cal: TASKS_CAL,
14 #[doc = "0x14 - Start calibration timer"]
15 pub tasks_ctstart: TASKS_CTSTART,
16 #[doc = "0x18 - Stop calibration timer"]
17 pub tasks_ctstop: TASKS_CTSTOP,
18 _reserved7: [u8; 0xe4],
19 #[doc = "0x100 - HFXO crystal oscillator started"]
20 pub events_hfclkstarted: EVENTS_HFCLKSTARTED,
21 #[doc = "0x104 - LFCLK started"]
22 pub events_lfclkstarted: EVENTS_LFCLKSTARTED,
23 _reserved9: [u8; 0x04],
24 #[doc = "0x10c - Calibration of LFRC completed"]
25 pub events_done: EVENTS_DONE,
26 #[doc = "0x110 - Calibration timer timeout"]
27 pub events_ctto: EVENTS_CTTO,
28 _reserved11: [u8; 0x14],
29 #[doc = "0x128 - Calibration timer has been started and is ready to process new tasks"]
30 pub events_ctstarted: EVENTS_CTSTARTED,
31 #[doc = "0x12c - Calibration timer has been stopped and is ready to process new tasks"]
32 pub events_ctstopped: EVENTS_CTSTOPPED,
33 _reserved13: [u8; 0x01d4],
34 #[doc = "0x304 - Enable interrupt"]
35 pub intenset: INTENSET,
36 #[doc = "0x308 - Disable interrupt"]
37 pub intenclr: INTENCLR,
38 _reserved15: [u8; 0xfc],
39 #[doc = "0x408 - Status indicating that HFCLKSTART task has been triggered"]
40 pub hfclkrun: HFCLKRUN,
41 #[doc = "0x40c - HFCLK status"]
42 pub hfclkstat: HFCLKSTAT,
43 _reserved17: [u8; 0x04],
44 #[doc = "0x414 - Status indicating that LFCLKSTART task has been triggered"]
45 pub lfclkrun: LFCLKRUN,
46 #[doc = "0x418 - LFCLK status"]
47 pub lfclkstat: LFCLKSTAT,
48 #[doc = "0x41c - Copy of LFCLKSRC register, set when LFCLKSTART task was triggered"]
49 pub lfclksrccopy: LFCLKSRCCOPY,
50 _reserved20: [u8; 0xf8],
51 #[doc = "0x518 - Clock source for the LFCLK"]
52 pub lfclksrc: LFCLKSRC,
53 _reserved21: [u8; 0x0c],
54 #[doc = "0x528 - HFXO debounce time. The HFXO is started by triggering the TASKS_HFCLKSTART task."]
55 pub hfxodebounce: HFXODEBOUNCE,
56 #[doc = "0x52c - LFXO debounce time. The LFXO is started by triggering the TASKS_LFCLKSTART task when the LFCLKSRC register is configured for Xtal."]
57 pub lfxodebounce: LFXODEBOUNCE,
58 _reserved23: [u8; 0x08],
59 #[doc = "0x538 - Calibration timer interval"]
60 pub ctiv: CTIV,
61 _reserved24: [u8; 0x20],
62 #[doc = "0x55c - Clocking options for the trace port debug interface"]
63 pub traceconfig: TRACECONFIG,
64}
65#[doc = "TASKS_HFCLKSTART (w) register accessor: an alias for `Reg<TASKS_HFCLKSTART_SPEC>`"]
66pub type TASKS_HFCLKSTART = crate::Reg<tasks_hfclkstart::TASKS_HFCLKSTART_SPEC>;
67#[doc = "Start HFXO crystal oscillator"]
68pub mod tasks_hfclkstart;
69#[doc = "TASKS_HFCLKSTOP (w) register accessor: an alias for `Reg<TASKS_HFCLKSTOP_SPEC>`"]
70pub type TASKS_HFCLKSTOP = crate::Reg<tasks_hfclkstop::TASKS_HFCLKSTOP_SPEC>;
71#[doc = "Stop HFXO crystal oscillator"]
72pub mod tasks_hfclkstop;
73#[doc = "TASKS_LFCLKSTART (w) register accessor: an alias for `Reg<TASKS_LFCLKSTART_SPEC>`"]
74pub type TASKS_LFCLKSTART = crate::Reg<tasks_lfclkstart::TASKS_LFCLKSTART_SPEC>;
75#[doc = "Start LFCLK"]
76pub mod tasks_lfclkstart;
77#[doc = "TASKS_LFCLKSTOP (w) register accessor: an alias for `Reg<TASKS_LFCLKSTOP_SPEC>`"]
78pub type TASKS_LFCLKSTOP = crate::Reg<tasks_lfclkstop::TASKS_LFCLKSTOP_SPEC>;
79#[doc = "Stop LFCLK"]
80pub mod tasks_lfclkstop;
81#[doc = "TASKS_CAL (w) register accessor: an alias for `Reg<TASKS_CAL_SPEC>`"]
82pub type TASKS_CAL = crate::Reg<tasks_cal::TASKS_CAL_SPEC>;
83#[doc = "Start calibration of LFRC"]
84pub mod tasks_cal;
85#[doc = "TASKS_CTSTART (w) register accessor: an alias for `Reg<TASKS_CTSTART_SPEC>`"]
86pub type TASKS_CTSTART = crate::Reg<tasks_ctstart::TASKS_CTSTART_SPEC>;
87#[doc = "Start calibration timer"]
88pub mod tasks_ctstart;
89#[doc = "TASKS_CTSTOP (w) register accessor: an alias for `Reg<TASKS_CTSTOP_SPEC>`"]
90pub type TASKS_CTSTOP = crate::Reg<tasks_ctstop::TASKS_CTSTOP_SPEC>;
91#[doc = "Stop calibration timer"]
92pub mod tasks_ctstop;
93#[doc = "EVENTS_HFCLKSTARTED (rw) register accessor: an alias for `Reg<EVENTS_HFCLKSTARTED_SPEC>`"]
94pub type EVENTS_HFCLKSTARTED = crate::Reg<events_hfclkstarted::EVENTS_HFCLKSTARTED_SPEC>;
95#[doc = "HFXO crystal oscillator started"]
96pub mod events_hfclkstarted;
97#[doc = "EVENTS_LFCLKSTARTED (rw) register accessor: an alias for `Reg<EVENTS_LFCLKSTARTED_SPEC>`"]
98pub type EVENTS_LFCLKSTARTED = crate::Reg<events_lfclkstarted::EVENTS_LFCLKSTARTED_SPEC>;
99#[doc = "LFCLK started"]
100pub mod events_lfclkstarted;
101#[doc = "EVENTS_DONE (rw) register accessor: an alias for `Reg<EVENTS_DONE_SPEC>`"]
102pub type EVENTS_DONE = crate::Reg<events_done::EVENTS_DONE_SPEC>;
103#[doc = "Calibration of LFRC completed"]
104pub mod events_done;
105#[doc = "EVENTS_CTTO (rw) register accessor: an alias for `Reg<EVENTS_CTTO_SPEC>`"]
106pub type EVENTS_CTTO = crate::Reg<events_ctto::EVENTS_CTTO_SPEC>;
107#[doc = "Calibration timer timeout"]
108pub mod events_ctto;
109#[doc = "EVENTS_CTSTARTED (rw) register accessor: an alias for `Reg<EVENTS_CTSTARTED_SPEC>`"]
110pub type EVENTS_CTSTARTED = crate::Reg<events_ctstarted::EVENTS_CTSTARTED_SPEC>;
111#[doc = "Calibration timer has been started and is ready to process new tasks"]
112pub mod events_ctstarted;
113#[doc = "EVENTS_CTSTOPPED (rw) register accessor: an alias for `Reg<EVENTS_CTSTOPPED_SPEC>`"]
114pub type EVENTS_CTSTOPPED = crate::Reg<events_ctstopped::EVENTS_CTSTOPPED_SPEC>;
115#[doc = "Calibration timer has been stopped and is ready to process new tasks"]
116pub mod events_ctstopped;
117#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
118pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
119#[doc = "Enable interrupt"]
120pub mod intenset;
121#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
122pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
123#[doc = "Disable interrupt"]
124pub mod intenclr;
125#[doc = "HFCLKRUN (r) register accessor: an alias for `Reg<HFCLKRUN_SPEC>`"]
126pub type HFCLKRUN = crate::Reg<hfclkrun::HFCLKRUN_SPEC>;
127#[doc = "Status indicating that HFCLKSTART task has been triggered"]
128pub mod hfclkrun;
129#[doc = "HFCLKSTAT (r) register accessor: an alias for `Reg<HFCLKSTAT_SPEC>`"]
130pub type HFCLKSTAT = crate::Reg<hfclkstat::HFCLKSTAT_SPEC>;
131#[doc = "HFCLK status"]
132pub mod hfclkstat;
133#[doc = "LFCLKRUN (r) register accessor: an alias for `Reg<LFCLKRUN_SPEC>`"]
134pub type LFCLKRUN = crate::Reg<lfclkrun::LFCLKRUN_SPEC>;
135#[doc = "Status indicating that LFCLKSTART task has been triggered"]
136pub mod lfclkrun;
137#[doc = "LFCLKSTAT (r) register accessor: an alias for `Reg<LFCLKSTAT_SPEC>`"]
138pub type LFCLKSTAT = crate::Reg<lfclkstat::LFCLKSTAT_SPEC>;
139#[doc = "LFCLK status"]
140pub mod lfclkstat;
141#[doc = "LFCLKSRCCOPY (r) register accessor: an alias for `Reg<LFCLKSRCCOPY_SPEC>`"]
142pub type LFCLKSRCCOPY = crate::Reg<lfclksrccopy::LFCLKSRCCOPY_SPEC>;
143#[doc = "Copy of LFCLKSRC register, set when LFCLKSTART task was triggered"]
144pub mod lfclksrccopy;
145#[doc = "LFCLKSRC (rw) register accessor: an alias for `Reg<LFCLKSRC_SPEC>`"]
146pub type LFCLKSRC = crate::Reg<lfclksrc::LFCLKSRC_SPEC>;
147#[doc = "Clock source for the LFCLK"]
148pub mod lfclksrc;
149#[doc = "HFXODEBOUNCE (rw) register accessor: an alias for `Reg<HFXODEBOUNCE_SPEC>`"]
150pub type HFXODEBOUNCE = crate::Reg<hfxodebounce::HFXODEBOUNCE_SPEC>;
151#[doc = "HFXO debounce time. The HFXO is started by triggering the TASKS_HFCLKSTART task."]
152pub mod hfxodebounce;
153#[doc = "LFXODEBOUNCE (rw) register accessor: an alias for `Reg<LFXODEBOUNCE_SPEC>`"]
154pub type LFXODEBOUNCE = crate::Reg<lfxodebounce::LFXODEBOUNCE_SPEC>;
155#[doc = "LFXO debounce time. The LFXO is started by triggering the TASKS_LFCLKSTART task when the LFCLKSRC register is configured for Xtal."]
156pub mod lfxodebounce;
157#[doc = "CTIV (rw) register accessor: an alias for `Reg<CTIV_SPEC>`"]
158pub type CTIV = crate::Reg<ctiv::CTIV_SPEC>;
159#[doc = "Calibration timer interval"]
160pub mod ctiv;
161#[doc = "TRACECONFIG (rw) register accessor: an alias for `Reg<TRACECONFIG_SPEC>`"]
162pub type TRACECONFIG = crate::Reg<traceconfig::TRACECONFIG_SPEC>;
163#[doc = "Clocking options for the trace port debug interface"]
164pub mod traceconfig;