nrf9160_pac/
clock_ns.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Start HFCLK source"]
5    pub tasks_hfclkstart: TASKS_HFCLKSTART,
6    #[doc = "0x04 - Stop HFCLK source"]
7    pub tasks_hfclkstop: TASKS_HFCLKSTOP,
8    #[doc = "0x08 - Start LFCLK source"]
9    pub tasks_lfclkstart: TASKS_LFCLKSTART,
10    #[doc = "0x0c - Stop LFCLK source"]
11    pub tasks_lfclkstop: TASKS_LFCLKSTOP,
12    _reserved4: [u8; 0x70],
13    #[doc = "0x80 - Subscribe configuration for task HFCLKSTART"]
14    pub subscribe_hfclkstart: SUBSCRIBE_HFCLKSTART,
15    #[doc = "0x84 - Subscribe configuration for task HFCLKSTOP"]
16    pub subscribe_hfclkstop: SUBSCRIBE_HFCLKSTOP,
17    #[doc = "0x88 - Subscribe configuration for task LFCLKSTART"]
18    pub subscribe_lfclkstart: SUBSCRIBE_LFCLKSTART,
19    #[doc = "0x8c - Subscribe configuration for task LFCLKSTOP"]
20    pub subscribe_lfclkstop: SUBSCRIBE_LFCLKSTOP,
21    _reserved8: [u8; 0x70],
22    #[doc = "0x100 - HFCLK oscillator started"]
23    pub events_hfclkstarted: EVENTS_HFCLKSTARTED,
24    #[doc = "0x104 - LFCLK started"]
25    pub events_lfclkstarted: EVENTS_LFCLKSTARTED,
26    _reserved10: [u8; 0x78],
27    #[doc = "0x180 - Publish configuration for event HFCLKSTARTED"]
28    pub publish_hfclkstarted: PUBLISH_HFCLKSTARTED,
29    #[doc = "0x184 - Publish configuration for event LFCLKSTARTED"]
30    pub publish_lfclkstarted: PUBLISH_LFCLKSTARTED,
31    _reserved12: [u8; 0x0178],
32    #[doc = "0x300 - Enable or disable interrupt"]
33    pub inten: INTEN,
34    #[doc = "0x304 - Enable interrupt"]
35    pub intenset: INTENSET,
36    #[doc = "0x308 - Disable interrupt"]
37    pub intenclr: INTENCLR,
38    #[doc = "0x30c - Pending interrupts"]
39    pub intpend: INTPEND,
40    _reserved16: [u8; 0xf8],
41    #[doc = "0x408 - Status indicating that HFCLKSTART task has been triggered"]
42    pub hfclkrun: HFCLKRUN,
43    #[doc = "0x40c - The register shows if HFXO has been requested by triggering HFCLKSTART task and if it has been started (STATE)"]
44    pub hfclkstat: HFCLKSTAT,
45    _reserved18: [u8; 0x04],
46    #[doc = "0x414 - Status indicating that LFCLKSTART task has been triggered"]
47    pub lfclkrun: LFCLKRUN,
48    #[doc = "0x418 - The register shows which LFCLK source has been requested (SRC) when triggering LFCLKSTART task and if the source has been started (STATE)"]
49    pub lfclkstat: LFCLKSTAT,
50    #[doc = "0x41c - Copy of LFCLKSRC register, set after LFCLKSTART task has been triggered"]
51    pub lfclksrccopy: LFCLKSRCCOPY,
52    _reserved21: [u8; 0xf8],
53    #[doc = "0x518 - Clock source for the LFCLK. LFCLKSTART task starts starts a clock source selected with this register."]
54    pub lfclksrc: LFCLKSRC,
55}
56#[doc = "TASKS_HFCLKSTART (w) register accessor: an alias for `Reg<TASKS_HFCLKSTART_SPEC>`"]
57pub type TASKS_HFCLKSTART = crate::Reg<tasks_hfclkstart::TASKS_HFCLKSTART_SPEC>;
58#[doc = "Start HFCLK source"]
59pub mod tasks_hfclkstart;
60#[doc = "TASKS_HFCLKSTOP (w) register accessor: an alias for `Reg<TASKS_HFCLKSTOP_SPEC>`"]
61pub type TASKS_HFCLKSTOP = crate::Reg<tasks_hfclkstop::TASKS_HFCLKSTOP_SPEC>;
62#[doc = "Stop HFCLK source"]
63pub mod tasks_hfclkstop;
64#[doc = "TASKS_LFCLKSTART (w) register accessor: an alias for `Reg<TASKS_LFCLKSTART_SPEC>`"]
65pub type TASKS_LFCLKSTART = crate::Reg<tasks_lfclkstart::TASKS_LFCLKSTART_SPEC>;
66#[doc = "Start LFCLK source"]
67pub mod tasks_lfclkstart;
68#[doc = "TASKS_LFCLKSTOP (w) register accessor: an alias for `Reg<TASKS_LFCLKSTOP_SPEC>`"]
69pub type TASKS_LFCLKSTOP = crate::Reg<tasks_lfclkstop::TASKS_LFCLKSTOP_SPEC>;
70#[doc = "Stop LFCLK source"]
71pub mod tasks_lfclkstop;
72#[doc = "SUBSCRIBE_HFCLKSTART (rw) register accessor: an alias for `Reg<SUBSCRIBE_HFCLKSTART_SPEC>`"]
73pub type SUBSCRIBE_HFCLKSTART = crate::Reg<subscribe_hfclkstart::SUBSCRIBE_HFCLKSTART_SPEC>;
74#[doc = "Subscribe configuration for task HFCLKSTART"]
75pub mod subscribe_hfclkstart;
76#[doc = "SUBSCRIBE_HFCLKSTOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_HFCLKSTOP_SPEC>`"]
77pub type SUBSCRIBE_HFCLKSTOP = crate::Reg<subscribe_hfclkstop::SUBSCRIBE_HFCLKSTOP_SPEC>;
78#[doc = "Subscribe configuration for task HFCLKSTOP"]
79pub mod subscribe_hfclkstop;
80#[doc = "SUBSCRIBE_LFCLKSTART (rw) register accessor: an alias for `Reg<SUBSCRIBE_LFCLKSTART_SPEC>`"]
81pub type SUBSCRIBE_LFCLKSTART = crate::Reg<subscribe_lfclkstart::SUBSCRIBE_LFCLKSTART_SPEC>;
82#[doc = "Subscribe configuration for task LFCLKSTART"]
83pub mod subscribe_lfclkstart;
84#[doc = "SUBSCRIBE_LFCLKSTOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_LFCLKSTOP_SPEC>`"]
85pub type SUBSCRIBE_LFCLKSTOP = crate::Reg<subscribe_lfclkstop::SUBSCRIBE_LFCLKSTOP_SPEC>;
86#[doc = "Subscribe configuration for task LFCLKSTOP"]
87pub mod subscribe_lfclkstop;
88#[doc = "EVENTS_HFCLKSTARTED (rw) register accessor: an alias for `Reg<EVENTS_HFCLKSTARTED_SPEC>`"]
89pub type EVENTS_HFCLKSTARTED = crate::Reg<events_hfclkstarted::EVENTS_HFCLKSTARTED_SPEC>;
90#[doc = "HFCLK oscillator started"]
91pub mod events_hfclkstarted;
92#[doc = "EVENTS_LFCLKSTARTED (rw) register accessor: an alias for `Reg<EVENTS_LFCLKSTARTED_SPEC>`"]
93pub type EVENTS_LFCLKSTARTED = crate::Reg<events_lfclkstarted::EVENTS_LFCLKSTARTED_SPEC>;
94#[doc = "LFCLK started"]
95pub mod events_lfclkstarted;
96#[doc = "PUBLISH_HFCLKSTARTED (rw) register accessor: an alias for `Reg<PUBLISH_HFCLKSTARTED_SPEC>`"]
97pub type PUBLISH_HFCLKSTARTED = crate::Reg<publish_hfclkstarted::PUBLISH_HFCLKSTARTED_SPEC>;
98#[doc = "Publish configuration for event HFCLKSTARTED"]
99pub mod publish_hfclkstarted;
100#[doc = "PUBLISH_LFCLKSTARTED (rw) register accessor: an alias for `Reg<PUBLISH_LFCLKSTARTED_SPEC>`"]
101pub type PUBLISH_LFCLKSTARTED = crate::Reg<publish_lfclkstarted::PUBLISH_LFCLKSTARTED_SPEC>;
102#[doc = "Publish configuration for event LFCLKSTARTED"]
103pub mod publish_lfclkstarted;
104#[doc = "INTEN (rw) register accessor: an alias for `Reg<INTEN_SPEC>`"]
105pub type INTEN = crate::Reg<inten::INTEN_SPEC>;
106#[doc = "Enable or disable interrupt"]
107pub mod inten;
108#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
109pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
110#[doc = "Enable interrupt"]
111pub mod intenset;
112#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
113pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
114#[doc = "Disable interrupt"]
115pub mod intenclr;
116#[doc = "INTPEND (r) register accessor: an alias for `Reg<INTPEND_SPEC>`"]
117pub type INTPEND = crate::Reg<intpend::INTPEND_SPEC>;
118#[doc = "Pending interrupts"]
119pub mod intpend;
120#[doc = "HFCLKRUN (r) register accessor: an alias for `Reg<HFCLKRUN_SPEC>`"]
121pub type HFCLKRUN = crate::Reg<hfclkrun::HFCLKRUN_SPEC>;
122#[doc = "Status indicating that HFCLKSTART task has been triggered"]
123pub mod hfclkrun;
124#[doc = "HFCLKSTAT (r) register accessor: an alias for `Reg<HFCLKSTAT_SPEC>`"]
125pub type HFCLKSTAT = crate::Reg<hfclkstat::HFCLKSTAT_SPEC>;
126#[doc = "The register shows if HFXO has been requested by triggering HFCLKSTART task and if it has been started (STATE)"]
127pub mod hfclkstat;
128#[doc = "LFCLKRUN (r) register accessor: an alias for `Reg<LFCLKRUN_SPEC>`"]
129pub type LFCLKRUN = crate::Reg<lfclkrun::LFCLKRUN_SPEC>;
130#[doc = "Status indicating that LFCLKSTART task has been triggered"]
131pub mod lfclkrun;
132#[doc = "LFCLKSTAT (r) register accessor: an alias for `Reg<LFCLKSTAT_SPEC>`"]
133pub type LFCLKSTAT = crate::Reg<lfclkstat::LFCLKSTAT_SPEC>;
134#[doc = "The register shows which LFCLK source has been requested (SRC) when triggering LFCLKSTART task and if the source has been started (STATE)"]
135pub mod lfclkstat;
136#[doc = "LFCLKSRCCOPY (r) register accessor: an alias for `Reg<LFCLKSRCCOPY_SPEC>`"]
137pub type LFCLKSRCCOPY = crate::Reg<lfclksrccopy::LFCLKSRCCOPY_SPEC>;
138#[doc = "Copy of LFCLKSRC register, set after LFCLKSTART task has been triggered"]
139pub mod lfclksrccopy;
140#[doc = "LFCLKSRC (rw) register accessor: an alias for `Reg<LFCLKSRC_SPEC>`"]
141pub type LFCLKSRC = crate::Reg<lfclksrc::LFCLKSRC_SPEC>;
142#[doc = "Clock source for the LFCLK. LFCLKSTART task starts starts a clock source selected with this register."]
143pub mod lfclksrc;