nrf5340_net_pac/
clock_ns.rs1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Start HFCLK128M/HFCLK64M source as selected in HFCLKSRC"]
5 pub tasks_hfclkstart: TASKS_HFCLKSTART,
6 #[doc = "0x04 - Stop HFCLK128M/HFCLK64M source"]
7 pub tasks_hfclkstop: TASKS_HFCLKSTOP,
8 #[doc = "0x08 - Start LFCLK source as selected in LFCLKSRC"]
9 pub tasks_lfclkstart: TASKS_LFCLKSTART,
10 #[doc = "0x0c - Stop LFCLK source"]
11 pub tasks_lfclkstop: TASKS_LFCLKSTOP,
12 #[doc = "0x10 - Start calibration of LFRC oscillator"]
13 pub tasks_cal: TASKS_CAL,
14 _reserved5: [u8; 0x6c],
15 #[doc = "0x80 - Subscribe configuration for task HFCLKSTART"]
16 pub subscribe_hfclkstart: SUBSCRIBE_HFCLKSTART,
17 #[doc = "0x84 - Subscribe configuration for task HFCLKSTOP"]
18 pub subscribe_hfclkstop: SUBSCRIBE_HFCLKSTOP,
19 #[doc = "0x88 - Subscribe configuration for task LFCLKSTART"]
20 pub subscribe_lfclkstart: SUBSCRIBE_LFCLKSTART,
21 #[doc = "0x8c - Subscribe configuration for task LFCLKSTOP"]
22 pub subscribe_lfclkstop: SUBSCRIBE_LFCLKSTOP,
23 #[doc = "0x90 - Subscribe configuration for task CAL"]
24 pub subscribe_cal: SUBSCRIBE_CAL,
25 _reserved10: [u8; 0x6c],
26 #[doc = "0x100 - HFCLK128M/HFCLK64M source started"]
27 pub events_hfclkstarted: EVENTS_HFCLKSTARTED,
28 #[doc = "0x104 - LFCLK source started"]
29 pub events_lfclkstarted: EVENTS_LFCLKSTARTED,
30 _reserved12: [u8; 0x14],
31 #[doc = "0x11c - Calibration of LFRC oscillator complete event"]
32 pub events_done: EVENTS_DONE,
33 _reserved13: [u8; 0x60],
34 #[doc = "0x180 - Publish configuration for event HFCLKSTARTED"]
35 pub publish_hfclkstarted: PUBLISH_HFCLKSTARTED,
36 #[doc = "0x184 - Publish configuration for event LFCLKSTARTED"]
37 pub publish_lfclkstarted: PUBLISH_LFCLKSTARTED,
38 _reserved15: [u8; 0x14],
39 #[doc = "0x19c - Publish configuration for event DONE"]
40 pub publish_done: PUBLISH_DONE,
41 _reserved16: [u8; 0x0160],
42 #[doc = "0x300 - Enable or disable interrupt"]
43 pub inten: INTEN,
44 #[doc = "0x304 - Enable interrupt"]
45 pub intenset: INTENSET,
46 #[doc = "0x308 - Disable interrupt"]
47 pub intenclr: INTENCLR,
48 #[doc = "0x30c - Pending interrupts"]
49 pub intpend: INTPEND,
50 _reserved20: [u8; 0xf8],
51 #[doc = "0x408 - Status indicating that HFCLKSTART task has been triggered"]
52 pub hfclkrun: HFCLKRUN,
53 #[doc = "0x40c - Status indicating which HFCLK128M/HFCLK64M source is running This register value in any CLOCK instance reflects status only due to configurations/actions in that CLOCK instance."]
54 pub hfclkstat: HFCLKSTAT,
55 _reserved22: [u8; 0x04],
56 #[doc = "0x414 - Status indicating that LFCLKSTART task has been triggered"]
57 pub lfclkrun: LFCLKRUN,
58 #[doc = "0x418 - Status indicating which LFCLK source is running This register value in any CLOCK instance reflects status only due to configurations/actions in that CLOCK instance."]
59 pub lfclkstat: LFCLKSTAT,
60 #[doc = "0x41c - Copy of LFCLKSRC register, set when LFCLKSTART task was triggered"]
61 pub lfclksrccopy: LFCLKSRCCOPY,
62 _reserved25: [u8; 0xf4],
63 #[doc = "0x514 - Clock source for HFCLK128M/HFCLK64M"]
64 pub hfclksrc: HFCLKSRC,
65 #[doc = "0x518 - Clock source for LFCLK"]
66 pub lfclksrc: LFCLKSRC,
67 _reserved27: [u8; 0x3c],
68 #[doc = "0x558 - HFCLK128M frequency configuration"]
69 pub hfclkctrl: HFCLKCTRL,
70 _reserved28: [u8; 0x14],
71 #[doc = "0x570 - Automatic or manual control of HFCLK128M/HFCLK64M"]
72 pub hfclkalwaysrun: HFCLKALWAYSRUN,
73 #[doc = "0x574 - Automatic or manual control of LFCLK"]
74 pub lfclkalwaysrun: LFCLKALWAYSRUN,
75}
76#[doc = "TASKS_HFCLKSTART (w) register accessor: an alias for `Reg<TASKS_HFCLKSTART_SPEC>`"]
77pub type TASKS_HFCLKSTART = crate::Reg<tasks_hfclkstart::TASKS_HFCLKSTART_SPEC>;
78#[doc = "Start HFCLK128M/HFCLK64M source as selected in HFCLKSRC"]
79pub mod tasks_hfclkstart;
80#[doc = "TASKS_HFCLKSTOP (w) register accessor: an alias for `Reg<TASKS_HFCLKSTOP_SPEC>`"]
81pub type TASKS_HFCLKSTOP = crate::Reg<tasks_hfclkstop::TASKS_HFCLKSTOP_SPEC>;
82#[doc = "Stop HFCLK128M/HFCLK64M source"]
83pub mod tasks_hfclkstop;
84#[doc = "TASKS_LFCLKSTART (w) register accessor: an alias for `Reg<TASKS_LFCLKSTART_SPEC>`"]
85pub type TASKS_LFCLKSTART = crate::Reg<tasks_lfclkstart::TASKS_LFCLKSTART_SPEC>;
86#[doc = "Start LFCLK source as selected in LFCLKSRC"]
87pub mod tasks_lfclkstart;
88#[doc = "TASKS_LFCLKSTOP (w) register accessor: an alias for `Reg<TASKS_LFCLKSTOP_SPEC>`"]
89pub type TASKS_LFCLKSTOP = crate::Reg<tasks_lfclkstop::TASKS_LFCLKSTOP_SPEC>;
90#[doc = "Stop LFCLK source"]
91pub mod tasks_lfclkstop;
92#[doc = "TASKS_CAL (w) register accessor: an alias for `Reg<TASKS_CAL_SPEC>`"]
93pub type TASKS_CAL = crate::Reg<tasks_cal::TASKS_CAL_SPEC>;
94#[doc = "Start calibration of LFRC oscillator"]
95pub mod tasks_cal;
96#[doc = "SUBSCRIBE_HFCLKSTART (rw) register accessor: an alias for `Reg<SUBSCRIBE_HFCLKSTART_SPEC>`"]
97pub type SUBSCRIBE_HFCLKSTART = crate::Reg<subscribe_hfclkstart::SUBSCRIBE_HFCLKSTART_SPEC>;
98#[doc = "Subscribe configuration for task HFCLKSTART"]
99pub mod subscribe_hfclkstart;
100#[doc = "SUBSCRIBE_HFCLKSTOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_HFCLKSTOP_SPEC>`"]
101pub type SUBSCRIBE_HFCLKSTOP = crate::Reg<subscribe_hfclkstop::SUBSCRIBE_HFCLKSTOP_SPEC>;
102#[doc = "Subscribe configuration for task HFCLKSTOP"]
103pub mod subscribe_hfclkstop;
104#[doc = "SUBSCRIBE_LFCLKSTART (rw) register accessor: an alias for `Reg<SUBSCRIBE_LFCLKSTART_SPEC>`"]
105pub type SUBSCRIBE_LFCLKSTART = crate::Reg<subscribe_lfclkstart::SUBSCRIBE_LFCLKSTART_SPEC>;
106#[doc = "Subscribe configuration for task LFCLKSTART"]
107pub mod subscribe_lfclkstart;
108#[doc = "SUBSCRIBE_LFCLKSTOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_LFCLKSTOP_SPEC>`"]
109pub type SUBSCRIBE_LFCLKSTOP = crate::Reg<subscribe_lfclkstop::SUBSCRIBE_LFCLKSTOP_SPEC>;
110#[doc = "Subscribe configuration for task LFCLKSTOP"]
111pub mod subscribe_lfclkstop;
112#[doc = "SUBSCRIBE_CAL (rw) register accessor: an alias for `Reg<SUBSCRIBE_CAL_SPEC>`"]
113pub type SUBSCRIBE_CAL = crate::Reg<subscribe_cal::SUBSCRIBE_CAL_SPEC>;
114#[doc = "Subscribe configuration for task CAL"]
115pub mod subscribe_cal;
116#[doc = "EVENTS_HFCLKSTARTED (rw) register accessor: an alias for `Reg<EVENTS_HFCLKSTARTED_SPEC>`"]
117pub type EVENTS_HFCLKSTARTED = crate::Reg<events_hfclkstarted::EVENTS_HFCLKSTARTED_SPEC>;
118#[doc = "HFCLK128M/HFCLK64M source started"]
119pub mod events_hfclkstarted;
120#[doc = "EVENTS_LFCLKSTARTED (rw) register accessor: an alias for `Reg<EVENTS_LFCLKSTARTED_SPEC>`"]
121pub type EVENTS_LFCLKSTARTED = crate::Reg<events_lfclkstarted::EVENTS_LFCLKSTARTED_SPEC>;
122#[doc = "LFCLK source started"]
123pub mod events_lfclkstarted;
124#[doc = "EVENTS_DONE (rw) register accessor: an alias for `Reg<EVENTS_DONE_SPEC>`"]
125pub type EVENTS_DONE = crate::Reg<events_done::EVENTS_DONE_SPEC>;
126#[doc = "Calibration of LFRC oscillator complete event"]
127pub mod events_done;
128#[doc = "PUBLISH_HFCLKSTARTED (rw) register accessor: an alias for `Reg<PUBLISH_HFCLKSTARTED_SPEC>`"]
129pub type PUBLISH_HFCLKSTARTED = crate::Reg<publish_hfclkstarted::PUBLISH_HFCLKSTARTED_SPEC>;
130#[doc = "Publish configuration for event HFCLKSTARTED"]
131pub mod publish_hfclkstarted;
132#[doc = "PUBLISH_LFCLKSTARTED (rw) register accessor: an alias for `Reg<PUBLISH_LFCLKSTARTED_SPEC>`"]
133pub type PUBLISH_LFCLKSTARTED = crate::Reg<publish_lfclkstarted::PUBLISH_LFCLKSTARTED_SPEC>;
134#[doc = "Publish configuration for event LFCLKSTARTED"]
135pub mod publish_lfclkstarted;
136#[doc = "PUBLISH_DONE (rw) register accessor: an alias for `Reg<PUBLISH_DONE_SPEC>`"]
137pub type PUBLISH_DONE = crate::Reg<publish_done::PUBLISH_DONE_SPEC>;
138#[doc = "Publish configuration for event DONE"]
139pub mod publish_done;
140#[doc = "INTEN (rw) register accessor: an alias for `Reg<INTEN_SPEC>`"]
141pub type INTEN = crate::Reg<inten::INTEN_SPEC>;
142#[doc = "Enable or disable interrupt"]
143pub mod inten;
144#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
145pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
146#[doc = "Enable interrupt"]
147pub mod intenset;
148#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
149pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
150#[doc = "Disable interrupt"]
151pub mod intenclr;
152#[doc = "INTPEND (r) register accessor: an alias for `Reg<INTPEND_SPEC>`"]
153pub type INTPEND = crate::Reg<intpend::INTPEND_SPEC>;
154#[doc = "Pending interrupts"]
155pub mod intpend;
156#[doc = "HFCLKRUN (r) register accessor: an alias for `Reg<HFCLKRUN_SPEC>`"]
157pub type HFCLKRUN = crate::Reg<hfclkrun::HFCLKRUN_SPEC>;
158#[doc = "Status indicating that HFCLKSTART task has been triggered"]
159pub mod hfclkrun;
160#[doc = "HFCLKSTAT (r) register accessor: an alias for `Reg<HFCLKSTAT_SPEC>`"]
161pub type HFCLKSTAT = crate::Reg<hfclkstat::HFCLKSTAT_SPEC>;
162#[doc = "Status indicating which HFCLK128M/HFCLK64M source is running This register value in any CLOCK instance reflects status only due to configurations/actions in that CLOCK instance."]
163pub mod hfclkstat;
164#[doc = "LFCLKRUN (r) register accessor: an alias for `Reg<LFCLKRUN_SPEC>`"]
165pub type LFCLKRUN = crate::Reg<lfclkrun::LFCLKRUN_SPEC>;
166#[doc = "Status indicating that LFCLKSTART task has been triggered"]
167pub mod lfclkrun;
168#[doc = "LFCLKSTAT (r) register accessor: an alias for `Reg<LFCLKSTAT_SPEC>`"]
169pub type LFCLKSTAT = crate::Reg<lfclkstat::LFCLKSTAT_SPEC>;
170#[doc = "Status indicating which LFCLK source is running This register value in any CLOCK instance reflects status only due to configurations/actions in that CLOCK instance."]
171pub mod lfclkstat;
172#[doc = "LFCLKSRCCOPY (r) register accessor: an alias for `Reg<LFCLKSRCCOPY_SPEC>`"]
173pub type LFCLKSRCCOPY = crate::Reg<lfclksrccopy::LFCLKSRCCOPY_SPEC>;
174#[doc = "Copy of LFCLKSRC register, set when LFCLKSTART task was triggered"]
175pub mod lfclksrccopy;
176#[doc = "HFCLKSRC (rw) register accessor: an alias for `Reg<HFCLKSRC_SPEC>`"]
177pub type HFCLKSRC = crate::Reg<hfclksrc::HFCLKSRC_SPEC>;
178#[doc = "Clock source for HFCLK128M/HFCLK64M"]
179pub mod hfclksrc;
180#[doc = "LFCLKSRC (rw) register accessor: an alias for `Reg<LFCLKSRC_SPEC>`"]
181pub type LFCLKSRC = crate::Reg<lfclksrc::LFCLKSRC_SPEC>;
182#[doc = "Clock source for LFCLK"]
183pub mod lfclksrc;
184#[doc = "HFCLKCTRL (rw) register accessor: an alias for `Reg<HFCLKCTRL_SPEC>`"]
185pub type HFCLKCTRL = crate::Reg<hfclkctrl::HFCLKCTRL_SPEC>;
186#[doc = "HFCLK128M frequency configuration"]
187pub mod hfclkctrl;
188#[doc = "HFCLKALWAYSRUN (rw) register accessor: an alias for `Reg<HFCLKALWAYSRUN_SPEC>`"]
189pub type HFCLKALWAYSRUN = crate::Reg<hfclkalwaysrun::HFCLKALWAYSRUN_SPEC>;
190#[doc = "Automatic or manual control of HFCLK128M/HFCLK64M"]
191pub mod hfclkalwaysrun;
192#[doc = "LFCLKALWAYSRUN (rw) register accessor: an alias for `Reg<LFCLKALWAYSRUN_SPEC>`"]
193pub type LFCLKALWAYSRUN = crate::Reg<lfclkalwaysrun::LFCLKALWAYSRUN_SPEC>;
194#[doc = "Automatic or manual control of LFCLK"]
195pub mod lfclkalwaysrun;