nrf52811_pac/
clock.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Start HFCLK crystal oscillator"]
5    pub tasks_hfclkstart: TASKS_HFCLKSTART,
6    #[doc = "0x04 - Stop HFCLK crystal oscillator"]
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    #[doc = "0x10 - Start calibration of LFRC oscillator"]
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 - HFCLK 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 LFCLK RC oscillator complete event"]
25    pub events_done: EVENTS_DONE,
26    #[doc = "0x110 - Calibration timer timeout"]
27    pub events_ctto: EVENTS_CTTO,
28    _reserved11: [u8; 0x01f0],
29    #[doc = "0x304 - Enable interrupt"]
30    pub intenset: INTENSET,
31    #[doc = "0x308 - Disable interrupt"]
32    pub intenclr: INTENCLR,
33    _reserved13: [u8; 0xfc],
34    #[doc = "0x408 - Status indicating that HFCLKSTART task has been triggered"]
35    pub hfclkrun: HFCLKRUN,
36    #[doc = "0x40c - HFCLK status"]
37    pub hfclkstat: HFCLKSTAT,
38    _reserved15: [u8; 0x04],
39    #[doc = "0x414 - Status indicating that LFCLKSTART task has been triggered"]
40    pub lfclkrun: LFCLKRUN,
41    #[doc = "0x418 - LFCLK status"]
42    pub lfclkstat: LFCLKSTAT,
43    #[doc = "0x41c - Copy of LFCLKSRC register, set when LFCLKSTART task was triggered"]
44    pub lfclksrccopy: LFCLKSRCCOPY,
45    _reserved18: [u8; 0xf8],
46    #[doc = "0x518 - Clock source for the LFCLK"]
47    pub lfclksrc: LFCLKSRC,
48    _reserved19: [u8; 0x1c],
49    #[doc = "0x538 - Calibration timer interval"]
50    pub ctiv: CTIV,
51}
52#[doc = "TASKS_HFCLKSTART (w) register accessor: an alias for `Reg<TASKS_HFCLKSTART_SPEC>`"]
53pub type TASKS_HFCLKSTART = crate::Reg<tasks_hfclkstart::TASKS_HFCLKSTART_SPEC>;
54#[doc = "Start HFCLK crystal oscillator"]
55pub mod tasks_hfclkstart;
56#[doc = "TASKS_HFCLKSTOP (w) register accessor: an alias for `Reg<TASKS_HFCLKSTOP_SPEC>`"]
57pub type TASKS_HFCLKSTOP = crate::Reg<tasks_hfclkstop::TASKS_HFCLKSTOP_SPEC>;
58#[doc = "Stop HFCLK crystal oscillator"]
59pub mod tasks_hfclkstop;
60#[doc = "TASKS_LFCLKSTART (w) register accessor: an alias for `Reg<TASKS_LFCLKSTART_SPEC>`"]
61pub type TASKS_LFCLKSTART = crate::Reg<tasks_lfclkstart::TASKS_LFCLKSTART_SPEC>;
62#[doc = "Start LFCLK source"]
63pub mod tasks_lfclkstart;
64#[doc = "TASKS_LFCLKSTOP (w) register accessor: an alias for `Reg<TASKS_LFCLKSTOP_SPEC>`"]
65pub type TASKS_LFCLKSTOP = crate::Reg<tasks_lfclkstop::TASKS_LFCLKSTOP_SPEC>;
66#[doc = "Stop LFCLK source"]
67pub mod tasks_lfclkstop;
68#[doc = "TASKS_CAL (w) register accessor: an alias for `Reg<TASKS_CAL_SPEC>`"]
69pub type TASKS_CAL = crate::Reg<tasks_cal::TASKS_CAL_SPEC>;
70#[doc = "Start calibration of LFRC oscillator"]
71pub mod tasks_cal;
72#[doc = "TASKS_CTSTART (w) register accessor: an alias for `Reg<TASKS_CTSTART_SPEC>`"]
73pub type TASKS_CTSTART = crate::Reg<tasks_ctstart::TASKS_CTSTART_SPEC>;
74#[doc = "Start calibration timer"]
75pub mod tasks_ctstart;
76#[doc = "TASKS_CTSTOP (w) register accessor: an alias for `Reg<TASKS_CTSTOP_SPEC>`"]
77pub type TASKS_CTSTOP = crate::Reg<tasks_ctstop::TASKS_CTSTOP_SPEC>;
78#[doc = "Stop calibration timer"]
79pub mod tasks_ctstop;
80#[doc = "EVENTS_HFCLKSTARTED (rw) register accessor: an alias for `Reg<EVENTS_HFCLKSTARTED_SPEC>`"]
81pub type EVENTS_HFCLKSTARTED = crate::Reg<events_hfclkstarted::EVENTS_HFCLKSTARTED_SPEC>;
82#[doc = "HFCLK oscillator started"]
83pub mod events_hfclkstarted;
84#[doc = "EVENTS_LFCLKSTARTED (rw) register accessor: an alias for `Reg<EVENTS_LFCLKSTARTED_SPEC>`"]
85pub type EVENTS_LFCLKSTARTED = crate::Reg<events_lfclkstarted::EVENTS_LFCLKSTARTED_SPEC>;
86#[doc = "LFCLK started"]
87pub mod events_lfclkstarted;
88#[doc = "EVENTS_DONE (rw) register accessor: an alias for `Reg<EVENTS_DONE_SPEC>`"]
89pub type EVENTS_DONE = crate::Reg<events_done::EVENTS_DONE_SPEC>;
90#[doc = "Calibration of LFCLK RC oscillator complete event"]
91pub mod events_done;
92#[doc = "EVENTS_CTTO (rw) register accessor: an alias for `Reg<EVENTS_CTTO_SPEC>`"]
93pub type EVENTS_CTTO = crate::Reg<events_ctto::EVENTS_CTTO_SPEC>;
94#[doc = "Calibration timer timeout"]
95pub mod events_ctto;
96#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
97pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
98#[doc = "Enable interrupt"]
99pub mod intenset;
100#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
101pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
102#[doc = "Disable interrupt"]
103pub mod intenclr;
104#[doc = "HFCLKRUN (r) register accessor: an alias for `Reg<HFCLKRUN_SPEC>`"]
105pub type HFCLKRUN = crate::Reg<hfclkrun::HFCLKRUN_SPEC>;
106#[doc = "Status indicating that HFCLKSTART task has been triggered"]
107pub mod hfclkrun;
108#[doc = "HFCLKSTAT (r) register accessor: an alias for `Reg<HFCLKSTAT_SPEC>`"]
109pub type HFCLKSTAT = crate::Reg<hfclkstat::HFCLKSTAT_SPEC>;
110#[doc = "HFCLK status"]
111pub mod hfclkstat;
112#[doc = "LFCLKRUN (r) register accessor: an alias for `Reg<LFCLKRUN_SPEC>`"]
113pub type LFCLKRUN = crate::Reg<lfclkrun::LFCLKRUN_SPEC>;
114#[doc = "Status indicating that LFCLKSTART task has been triggered"]
115pub mod lfclkrun;
116#[doc = "LFCLKSTAT (r) register accessor: an alias for `Reg<LFCLKSTAT_SPEC>`"]
117pub type LFCLKSTAT = crate::Reg<lfclkstat::LFCLKSTAT_SPEC>;
118#[doc = "LFCLK status"]
119pub mod lfclkstat;
120#[doc = "LFCLKSRCCOPY (r) register accessor: an alias for `Reg<LFCLKSRCCOPY_SPEC>`"]
121pub type LFCLKSRCCOPY = crate::Reg<lfclksrccopy::LFCLKSRCCOPY_SPEC>;
122#[doc = "Copy of LFCLKSRC register, set when LFCLKSTART task was triggered"]
123pub mod lfclksrccopy;
124#[doc = "LFCLKSRC (rw) register accessor: an alias for `Reg<LFCLKSRC_SPEC>`"]
125pub type LFCLKSRC = crate::Reg<lfclksrc::LFCLKSRC_SPEC>;
126#[doc = "Clock source for the LFCLK"]
127pub mod lfclksrc;
128#[doc = "CTIV (rw) register accessor: an alias for `Reg<CTIV_SPEC>`"]
129pub type CTIV = crate::Reg<ctiv::CTIV_SPEC>;
130#[doc = "Calibration timer interval"]
131pub mod ctiv;