1#[doc = "Temperature Monitor"]
2#[repr(C)]
3pub struct RegisterBlock {
4 _reserved0: [u8; 0x0180],
5#[doc = "Tempsensor Control Register 0"]
6pub TEMPSENSE0: crate::RWRegister<u32>,
7#[doc = "Tempsensor Control Register 0"]
8pub TEMPSENSE0_SET: crate::RWRegister<u32>,
9#[doc = "Tempsensor Control Register 0"]
10pub TEMPSENSE0_CLR: crate::RWRegister<u32>,
11#[doc = "Tempsensor Control Register 0"]
12pub TEMPSENSE0_TOG: crate::RWRegister<u32>,
13#[doc = "Tempsensor Control Register 1"]
14pub TEMPSENSE1: crate::RWRegister<u32>,
15#[doc = "Tempsensor Control Register 1"]
16pub TEMPSENSE1_SET: crate::RWRegister<u32>,
17#[doc = "Tempsensor Control Register 1"]
18pub TEMPSENSE1_CLR: crate::RWRegister<u32>,
19#[doc = "Tempsensor Control Register 1"]
20pub TEMPSENSE1_TOG: crate::RWRegister<u32>,
21 _reserved1: [u8; 0xf0],
22#[doc = "Tempsensor Control Register 2"]
23pub TEMPSENSE2: crate::RWRegister<u32>,
24#[doc = "Tempsensor Control Register 2"]
25pub TEMPSENSE2_SET: crate::RWRegister<u32>,
26#[doc = "Tempsensor Control Register 2"]
27pub TEMPSENSE2_CLR: crate::RWRegister<u32>,
28#[doc = "Tempsensor Control Register 2"]
29pub TEMPSENSE2_TOG: crate::RWRegister<u32>,
30}
31#[doc = "Tempsensor Control Register 0"]
32pub mod TEMPSENSE0 {
33#[doc = "This bit powers down the temperature sensor."]
34pub mod POWER_DOWN {
35pub const offset: u32 = 0;
36pub const mask: u32 = 0x01 << offset;
37pub mod R {}
38pub mod W {}
39pub mod RW {
40#[doc = "Enable power to the temperature sensor."]
41pub const POWER_UP: u32 = 0;
42#[doc = "Power down the temperature sensor."]
43pub const POWER_DOWN: u32 = 0x01;
44 }
45 }
46#[doc = "Starts the measurement process"]
47pub mod MEASURE_TEMP {
48pub const offset: u32 = 1;
49pub const mask: u32 = 0x01 << offset;
50pub mod R {}
51pub mod W {}
52pub mod RW {
53#[doc = "Do not start the measurement process."]
54pub const STOP: u32 = 0;
55#[doc = "Start the measurement process."]
56pub const START: u32 = 0x01;
57 }
58 }
59#[doc = "Indicates that the latest temp is valid"]
60pub mod FINISHED {
61pub const offset: u32 = 2;
62pub const mask: u32 = 0x01 << offset;
63pub mod R {}
64pub mod W {}
65pub mod RW {
66#[doc = "Last measurement is not ready yet."]
67pub const INVALID: u32 = 0;
68#[doc = "Last measurement is valid."]
69pub const VALID: u32 = 0x01;
70 }
71 }
72#[doc = "This bit field contains the last measured temperature count."]
73pub mod TEMP_CNT {
74pub const offset: u32 = 8;
75pub const mask: u32 = 0x0fff << offset;
76pub mod R {}
77pub mod W {}
78pub mod RW {}
79 }
80#[doc = "This bit field contains the temperature count (raw sensor output) that will generate a high alarm when TEMP_CNT is smaller than this field"]
81pub mod ALARM_VALUE {
82pub const offset: u32 = 20;
83pub const mask: u32 = 0x0fff << offset;
84pub mod R {}
85pub mod W {}
86pub mod RW {}
87 }
88}
89#[doc = "Tempsensor Control Register 0"]
90pub mod TEMPSENSE0_SET {
91#[doc = "This bit powers down the temperature sensor."]
92pub mod POWER_DOWN {
93pub const offset: u32 = 0;
94pub const mask: u32 = 0x01 << offset;
95pub mod R {}
96pub mod W {}
97pub mod RW {
98#[doc = "Enable power to the temperature sensor."]
99pub const POWER_UP: u32 = 0;
100#[doc = "Power down the temperature sensor."]
101pub const POWER_DOWN: u32 = 0x01;
102 }
103 }
104#[doc = "Starts the measurement process"]
105pub mod MEASURE_TEMP {
106pub const offset: u32 = 1;
107pub const mask: u32 = 0x01 << offset;
108pub mod R {}
109pub mod W {}
110pub mod RW {
111#[doc = "Do not start the measurement process."]
112pub const STOP: u32 = 0;
113#[doc = "Start the measurement process."]
114pub const START: u32 = 0x01;
115 }
116 }
117#[doc = "Indicates that the latest temp is valid"]
118pub mod FINISHED {
119pub const offset: u32 = 2;
120pub const mask: u32 = 0x01 << offset;
121pub mod R {}
122pub mod W {}
123pub mod RW {
124#[doc = "Last measurement is not ready yet."]
125pub const INVALID: u32 = 0;
126#[doc = "Last measurement is valid."]
127pub const VALID: u32 = 0x01;
128 }
129 }
130#[doc = "This bit field contains the last measured temperature count."]
131pub mod TEMP_CNT {
132pub const offset: u32 = 8;
133pub const mask: u32 = 0x0fff << offset;
134pub mod R {}
135pub mod W {}
136pub mod RW {}
137 }
138#[doc = "This bit field contains the temperature count (raw sensor output) that will generate a high alarm when TEMP_CNT is smaller than this field"]
139pub mod ALARM_VALUE {
140pub const offset: u32 = 20;
141pub const mask: u32 = 0x0fff << offset;
142pub mod R {}
143pub mod W {}
144pub mod RW {}
145 }
146}
147#[doc = "Tempsensor Control Register 0"]
148pub mod TEMPSENSE0_CLR {
149#[doc = "This bit powers down the temperature sensor."]
150pub mod POWER_DOWN {
151pub const offset: u32 = 0;
152pub const mask: u32 = 0x01 << offset;
153pub mod R {}
154pub mod W {}
155pub mod RW {
156#[doc = "Enable power to the temperature sensor."]
157pub const POWER_UP: u32 = 0;
158#[doc = "Power down the temperature sensor."]
159pub const POWER_DOWN: u32 = 0x01;
160 }
161 }
162#[doc = "Starts the measurement process"]
163pub mod MEASURE_TEMP {
164pub const offset: u32 = 1;
165pub const mask: u32 = 0x01 << offset;
166pub mod R {}
167pub mod W {}
168pub mod RW {
169#[doc = "Do not start the measurement process."]
170pub const STOP: u32 = 0;
171#[doc = "Start the measurement process."]
172pub const START: u32 = 0x01;
173 }
174 }
175#[doc = "Indicates that the latest temp is valid"]
176pub mod FINISHED {
177pub const offset: u32 = 2;
178pub const mask: u32 = 0x01 << offset;
179pub mod R {}
180pub mod W {}
181pub mod RW {
182#[doc = "Last measurement is not ready yet."]
183pub const INVALID: u32 = 0;
184#[doc = "Last measurement is valid."]
185pub const VALID: u32 = 0x01;
186 }
187 }
188#[doc = "This bit field contains the last measured temperature count."]
189pub mod TEMP_CNT {
190pub const offset: u32 = 8;
191pub const mask: u32 = 0x0fff << offset;
192pub mod R {}
193pub mod W {}
194pub mod RW {}
195 }
196#[doc = "This bit field contains the temperature count (raw sensor output) that will generate a high alarm when TEMP_CNT is smaller than this field"]
197pub mod ALARM_VALUE {
198pub const offset: u32 = 20;
199pub const mask: u32 = 0x0fff << offset;
200pub mod R {}
201pub mod W {}
202pub mod RW {}
203 }
204}
205#[doc = "Tempsensor Control Register 0"]
206pub mod TEMPSENSE0_TOG {
207#[doc = "This bit powers down the temperature sensor."]
208pub mod POWER_DOWN {
209pub const offset: u32 = 0;
210pub const mask: u32 = 0x01 << offset;
211pub mod R {}
212pub mod W {}
213pub mod RW {
214#[doc = "Enable power to the temperature sensor."]
215pub const POWER_UP: u32 = 0;
216#[doc = "Power down the temperature sensor."]
217pub const POWER_DOWN: u32 = 0x01;
218 }
219 }
220#[doc = "Starts the measurement process"]
221pub mod MEASURE_TEMP {
222pub const offset: u32 = 1;
223pub const mask: u32 = 0x01 << offset;
224pub mod R {}
225pub mod W {}
226pub mod RW {
227#[doc = "Do not start the measurement process."]
228pub const STOP: u32 = 0;
229#[doc = "Start the measurement process."]
230pub const START: u32 = 0x01;
231 }
232 }
233#[doc = "Indicates that the latest temp is valid"]
234pub mod FINISHED {
235pub const offset: u32 = 2;
236pub const mask: u32 = 0x01 << offset;
237pub mod R {}
238pub mod W {}
239pub mod RW {
240#[doc = "Last measurement is not ready yet."]
241pub const INVALID: u32 = 0;
242#[doc = "Last measurement is valid."]
243pub const VALID: u32 = 0x01;
244 }
245 }
246#[doc = "This bit field contains the last measured temperature count."]
247pub mod TEMP_CNT {
248pub const offset: u32 = 8;
249pub const mask: u32 = 0x0fff << offset;
250pub mod R {}
251pub mod W {}
252pub mod RW {}
253 }
254#[doc = "This bit field contains the temperature count (raw sensor output) that will generate a high alarm when TEMP_CNT is smaller than this field"]
255pub mod ALARM_VALUE {
256pub const offset: u32 = 20;
257pub const mask: u32 = 0x0fff << offset;
258pub mod R {}
259pub mod W {}
260pub mod RW {}
261 }
262}
263#[doc = "Tempsensor Control Register 1"]
264pub mod TEMPSENSE1 {
265#[doc = "This bits determines how many RTC clocks to wait before automatically repeating a temperature measurement"]
266pub mod MEASURE_FREQ {
267pub const offset: u32 = 0;
268pub const mask: u32 = 0xffff << offset;
269pub mod R {}
270pub mod W {}
271pub mod RW {}
272 }
273}
274#[doc = "Tempsensor Control Register 1"]
275pub mod TEMPSENSE1_SET {
276#[doc = "This bits determines how many RTC clocks to wait before automatically repeating a temperature measurement"]
277pub mod MEASURE_FREQ {
278pub const offset: u32 = 0;
279pub const mask: u32 = 0xffff << offset;
280pub mod R {}
281pub mod W {}
282pub mod RW {}
283 }
284}
285#[doc = "Tempsensor Control Register 1"]
286pub mod TEMPSENSE1_CLR {
287#[doc = "This bits determines how many RTC clocks to wait before automatically repeating a temperature measurement"]
288pub mod MEASURE_FREQ {
289pub const offset: u32 = 0;
290pub const mask: u32 = 0xffff << offset;
291pub mod R {}
292pub mod W {}
293pub mod RW {}
294 }
295}
296#[doc = "Tempsensor Control Register 1"]
297pub mod TEMPSENSE1_TOG {
298#[doc = "This bits determines how many RTC clocks to wait before automatically repeating a temperature measurement"]
299pub mod MEASURE_FREQ {
300pub const offset: u32 = 0;
301pub const mask: u32 = 0xffff << offset;
302pub mod R {}
303pub mod W {}
304pub mod RW {}
305 }
306}
307#[doc = "Tempsensor Control Register 2"]
308pub mod TEMPSENSE2 {
309#[doc = "This bit field contains the temperature count that will generate a low alarm interrupt when the field is exceeded by TEMP_CNT"]
310pub mod LOW_ALARM_VALUE {
311pub const offset: u32 = 0;
312pub const mask: u32 = 0x0fff << offset;
313pub mod R {}
314pub mod W {}
315pub mod RW {}
316 }
317#[doc = "This bit field contains the temperature count that will generate a panic interrupt when TEMP_CNT is smaller than this field"]
318pub mod PANIC_ALARM_VALUE {
319pub const offset: u32 = 16;
320pub const mask: u32 = 0x0fff << offset;
321pub mod R {}
322pub mod W {}
323pub mod RW {}
324 }
325}
326#[doc = "Tempsensor Control Register 2"]
327pub mod TEMPSENSE2_SET {
328#[doc = "This bit field contains the temperature count that will generate a low alarm interrupt when the field is exceeded by TEMP_CNT"]
329pub mod LOW_ALARM_VALUE {
330pub const offset: u32 = 0;
331pub const mask: u32 = 0x0fff << offset;
332pub mod R {}
333pub mod W {}
334pub mod RW {}
335 }
336#[doc = "This bit field contains the temperature count that will generate a panic interrupt when TEMP_CNT is smaller than this field"]
337pub mod PANIC_ALARM_VALUE {
338pub const offset: u32 = 16;
339pub const mask: u32 = 0x0fff << offset;
340pub mod R {}
341pub mod W {}
342pub mod RW {}
343 }
344}
345#[doc = "Tempsensor Control Register 2"]
346pub mod TEMPSENSE2_CLR {
347#[doc = "This bit field contains the temperature count that will generate a low alarm interrupt when the field is exceeded by TEMP_CNT"]
348pub mod LOW_ALARM_VALUE {
349pub const offset: u32 = 0;
350pub const mask: u32 = 0x0fff << offset;
351pub mod R {}
352pub mod W {}
353pub mod RW {}
354 }
355#[doc = "This bit field contains the temperature count that will generate a panic interrupt when TEMP_CNT is smaller than this field"]
356pub mod PANIC_ALARM_VALUE {
357pub const offset: u32 = 16;
358pub const mask: u32 = 0x0fff << offset;
359pub mod R {}
360pub mod W {}
361pub mod RW {}
362 }
363}
364#[doc = "Tempsensor Control Register 2"]
365pub mod TEMPSENSE2_TOG {
366#[doc = "This bit field contains the temperature count that will generate a low alarm interrupt when the field is exceeded by TEMP_CNT"]
367pub mod LOW_ALARM_VALUE {
368pub const offset: u32 = 0;
369pub const mask: u32 = 0x0fff << offset;
370pub mod R {}
371pub mod W {}
372pub mod RW {}
373 }
374#[doc = "This bit field contains the temperature count that will generate a panic interrupt when TEMP_CNT is smaller than this field"]
375pub mod PANIC_ALARM_VALUE {
376pub const offset: u32 = 16;
377pub const mask: u32 = 0x0fff << offset;
378pub mod R {}
379pub mod W {}
380pub mod RW {}
381 }
382}