nrf5340_app_pac/
lpcomp_ns.rs1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Start comparator"]
5 pub tasks_start: TASKS_START,
6 #[doc = "0x04 - Stop comparator"]
7 pub tasks_stop: TASKS_STOP,
8 #[doc = "0x08 - Sample comparator value"]
9 pub tasks_sample: TASKS_SAMPLE,
10 _reserved3: [u8; 0x74],
11 #[doc = "0x80 - Subscribe configuration for task START"]
12 pub subscribe_start: SUBSCRIBE_START,
13 #[doc = "0x84 - Subscribe configuration for task STOP"]
14 pub subscribe_stop: SUBSCRIBE_STOP,
15 #[doc = "0x88 - Subscribe configuration for task SAMPLE"]
16 pub subscribe_sample: SUBSCRIBE_SAMPLE,
17 _reserved6: [u8; 0x74],
18 #[doc = "0x100 - LPCOMP is ready and output is valid"]
19 pub events_ready: EVENTS_READY,
20 #[doc = "0x104 - Downward crossing"]
21 pub events_down: EVENTS_DOWN,
22 #[doc = "0x108 - Upward crossing"]
23 pub events_up: EVENTS_UP,
24 #[doc = "0x10c - Downward or upward crossing"]
25 pub events_cross: EVENTS_CROSS,
26 _reserved10: [u8; 0x70],
27 #[doc = "0x180 - Publish configuration for event READY"]
28 pub publish_ready: PUBLISH_READY,
29 #[doc = "0x184 - Publish configuration for event DOWN"]
30 pub publish_down: PUBLISH_DOWN,
31 #[doc = "0x188 - Publish configuration for event UP"]
32 pub publish_up: PUBLISH_UP,
33 #[doc = "0x18c - Publish configuration for event CROSS"]
34 pub publish_cross: PUBLISH_CROSS,
35 _reserved14: [u8; 0x70],
36 #[doc = "0x200 - Shortcuts between local events and tasks"]
37 pub shorts: SHORTS,
38 _reserved15: [u8; 0x0100],
39 #[doc = "0x304 - Enable interrupt"]
40 pub intenset: INTENSET,
41 #[doc = "0x308 - Disable interrupt"]
42 pub intenclr: INTENCLR,
43 _reserved17: [u8; 0xf4],
44 #[doc = "0x400 - Compare result"]
45 pub result: RESULT,
46 _reserved18: [u8; 0xfc],
47 #[doc = "0x500 - Enable LPCOMP"]
48 pub enable: ENABLE,
49 #[doc = "0x504 - Input pin select"]
50 pub psel: PSEL,
51 #[doc = "0x508 - Reference select"]
52 pub refsel: REFSEL,
53 #[doc = "0x50c - External reference select"]
54 pub extrefsel: EXTREFSEL,
55 _reserved22: [u8; 0x10],
56 #[doc = "0x520 - Analog detect configuration"]
57 pub anadetect: ANADETECT,
58 _reserved23: [u8; 0x14],
59 #[doc = "0x538 - Comparator hysteresis enable"]
60 pub hyst: HYST,
61}
62#[doc = "TASKS_START (w) register accessor: an alias for `Reg<TASKS_START_SPEC>`"]
63pub type TASKS_START = crate::Reg<tasks_start::TASKS_START_SPEC>;
64#[doc = "Start comparator"]
65pub mod tasks_start;
66#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
67pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
68#[doc = "Stop comparator"]
69pub mod tasks_stop;
70#[doc = "TASKS_SAMPLE (w) register accessor: an alias for `Reg<TASKS_SAMPLE_SPEC>`"]
71pub type TASKS_SAMPLE = crate::Reg<tasks_sample::TASKS_SAMPLE_SPEC>;
72#[doc = "Sample comparator value"]
73pub mod tasks_sample;
74#[doc = "SUBSCRIBE_START (rw) register accessor: an alias for `Reg<SUBSCRIBE_START_SPEC>`"]
75pub type SUBSCRIBE_START = crate::Reg<subscribe_start::SUBSCRIBE_START_SPEC>;
76#[doc = "Subscribe configuration for task START"]
77pub mod subscribe_start;
78#[doc = "SUBSCRIBE_STOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_STOP_SPEC>`"]
79pub type SUBSCRIBE_STOP = crate::Reg<subscribe_stop::SUBSCRIBE_STOP_SPEC>;
80#[doc = "Subscribe configuration for task STOP"]
81pub mod subscribe_stop;
82#[doc = "SUBSCRIBE_SAMPLE (rw) register accessor: an alias for `Reg<SUBSCRIBE_SAMPLE_SPEC>`"]
83pub type SUBSCRIBE_SAMPLE = crate::Reg<subscribe_sample::SUBSCRIBE_SAMPLE_SPEC>;
84#[doc = "Subscribe configuration for task SAMPLE"]
85pub mod subscribe_sample;
86#[doc = "EVENTS_READY (rw) register accessor: an alias for `Reg<EVENTS_READY_SPEC>`"]
87pub type EVENTS_READY = crate::Reg<events_ready::EVENTS_READY_SPEC>;
88#[doc = "LPCOMP is ready and output is valid"]
89pub mod events_ready;
90#[doc = "EVENTS_DOWN (rw) register accessor: an alias for `Reg<EVENTS_DOWN_SPEC>`"]
91pub type EVENTS_DOWN = crate::Reg<events_down::EVENTS_DOWN_SPEC>;
92#[doc = "Downward crossing"]
93pub mod events_down;
94#[doc = "EVENTS_UP (rw) register accessor: an alias for `Reg<EVENTS_UP_SPEC>`"]
95pub type EVENTS_UP = crate::Reg<events_up::EVENTS_UP_SPEC>;
96#[doc = "Upward crossing"]
97pub mod events_up;
98#[doc = "EVENTS_CROSS (rw) register accessor: an alias for `Reg<EVENTS_CROSS_SPEC>`"]
99pub type EVENTS_CROSS = crate::Reg<events_cross::EVENTS_CROSS_SPEC>;
100#[doc = "Downward or upward crossing"]
101pub mod events_cross;
102#[doc = "PUBLISH_READY (rw) register accessor: an alias for `Reg<PUBLISH_READY_SPEC>`"]
103pub type PUBLISH_READY = crate::Reg<publish_ready::PUBLISH_READY_SPEC>;
104#[doc = "Publish configuration for event READY"]
105pub mod publish_ready;
106#[doc = "PUBLISH_DOWN (rw) register accessor: an alias for `Reg<PUBLISH_DOWN_SPEC>`"]
107pub type PUBLISH_DOWN = crate::Reg<publish_down::PUBLISH_DOWN_SPEC>;
108#[doc = "Publish configuration for event DOWN"]
109pub mod publish_down;
110#[doc = "PUBLISH_UP (rw) register accessor: an alias for `Reg<PUBLISH_UP_SPEC>`"]
111pub type PUBLISH_UP = crate::Reg<publish_up::PUBLISH_UP_SPEC>;
112#[doc = "Publish configuration for event UP"]
113pub mod publish_up;
114#[doc = "PUBLISH_CROSS (rw) register accessor: an alias for `Reg<PUBLISH_CROSS_SPEC>`"]
115pub type PUBLISH_CROSS = crate::Reg<publish_cross::PUBLISH_CROSS_SPEC>;
116#[doc = "Publish configuration for event CROSS"]
117pub mod publish_cross;
118#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
119pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
120#[doc = "Shortcuts between local events and tasks"]
121pub mod shorts;
122#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
123pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
124#[doc = "Enable interrupt"]
125pub mod intenset;
126#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
127pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
128#[doc = "Disable interrupt"]
129pub mod intenclr;
130#[doc = "RESULT (r) register accessor: an alias for `Reg<RESULT_SPEC>`"]
131pub type RESULT = crate::Reg<result::RESULT_SPEC>;
132#[doc = "Compare result"]
133pub mod result;
134#[doc = "ENABLE (rw) register accessor: an alias for `Reg<ENABLE_SPEC>`"]
135pub type ENABLE = crate::Reg<enable::ENABLE_SPEC>;
136#[doc = "Enable LPCOMP"]
137pub mod enable;
138#[doc = "PSEL (rw) register accessor: an alias for `Reg<PSEL_SPEC>`"]
139pub type PSEL = crate::Reg<psel::PSEL_SPEC>;
140#[doc = "Input pin select"]
141pub mod psel;
142#[doc = "REFSEL (rw) register accessor: an alias for `Reg<REFSEL_SPEC>`"]
143pub type REFSEL = crate::Reg<refsel::REFSEL_SPEC>;
144#[doc = "Reference select"]
145pub mod refsel;
146#[doc = "EXTREFSEL (rw) register accessor: an alias for `Reg<EXTREFSEL_SPEC>`"]
147pub type EXTREFSEL = crate::Reg<extrefsel::EXTREFSEL_SPEC>;
148#[doc = "External reference select"]
149pub mod extrefsel;
150#[doc = "ANADETECT (rw) register accessor: an alias for `Reg<ANADETECT_SPEC>`"]
151pub type ANADETECT = crate::Reg<anadetect::ANADETECT_SPEC>;
152#[doc = "Analog detect configuration"]
153pub mod anadetect;
154#[doc = "HYST (rw) register accessor: an alias for `Reg<HYST_SPEC>`"]
155pub type HYST = crate::Reg<hyst::HYST_SPEC>;
156#[doc = "Comparator hysteresis enable"]
157pub mod hyst;