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