fomu_pac/
timer0.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Bits 24-31 of `TIMER0_LOAD`. Load value when Timer is (re-)enabled.In One-Shot mode, the value written to this register specify the Timer's duration in clock cycles."]
5    pub load3: LOAD3,
6    _reserved1: [u8; 3usize],
7    #[doc = "0x04 - Bits 16-23 of `TIMER0_LOAD`."]
8    pub load2: LOAD2,
9    _reserved2: [u8; 3usize],
10    #[doc = "0x08 - Bits 8-15 of `TIMER0_LOAD`."]
11    pub load1: LOAD1,
12    _reserved3: [u8; 3usize],
13    #[doc = "0x0c - Bits 0-7 of `TIMER0_LOAD`."]
14    pub load0: LOAD0,
15    _reserved4: [u8; 3usize],
16    #[doc = "0x10 - Bits 24-31 of `TIMER0_RELOAD`. Reload value when Timer reaches 0.In Periodic mode, the value written to this register specify the Timer's period in clock cycles."]
17    pub reload3: RELOAD3,
18    _reserved5: [u8; 3usize],
19    #[doc = "0x14 - Bits 16-23 of `TIMER0_RELOAD`."]
20    pub reload2: RELOAD2,
21    _reserved6: [u8; 3usize],
22    #[doc = "0x18 - Bits 8-15 of `TIMER0_RELOAD`."]
23    pub reload1: RELOAD1,
24    _reserved7: [u8; 3usize],
25    #[doc = "0x1c - Bits 0-7 of `TIMER0_RELOAD`."]
26    pub reload0: RELOAD0,
27    _reserved8: [u8; 3usize],
28    #[doc = "0x20 - Enable of the Timer.Set if to 1 to enable/start the Timer and 0 to disable the Timer"]
29    pub en: EN,
30    _reserved9: [u8; 3usize],
31    #[doc = "0x24 - Update of the current countdown value.A write to this register latches the current countdown value to `value` register."]
32    pub update_value: UPDATE_VALUE,
33    _reserved10: [u8; 3usize],
34    #[doc = "0x28 - Bits 24-31 of `TIMER0_VALUE`. Latched countdown value"]
35    pub value3: VALUE3,
36    _reserved11: [u8; 3usize],
37    #[doc = "0x2c - Bits 16-23 of `TIMER0_VALUE`."]
38    pub value2: VALUE2,
39    _reserved12: [u8; 3usize],
40    #[doc = "0x30 - Bits 8-15 of `TIMER0_VALUE`."]
41    pub value1: VALUE1,
42    _reserved13: [u8; 3usize],
43    #[doc = "0x34 - Bits 0-7 of `TIMER0_VALUE`."]
44    pub value0: VALUE0,
45    _reserved14: [u8; 3usize],
46    #[doc = "0x38 - "]
47    pub ev_status: EV_STATUS,
48    _reserved15: [u8; 3usize],
49    #[doc = "0x3c - "]
50    pub ev_pending: EV_PENDING,
51    _reserved16: [u8; 3usize],
52    #[doc = "0x40 - "]
53    pub ev_enable: EV_ENABLE,
54}
55#[doc = "Bits 24-31 of `TIMER0_LOAD`. Load value when Timer is (re-)enabled.In One-Shot mode, the value written to this register specify the Timer's duration in clock cycles.\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [load3](load3) module"]
56pub type LOAD3 = crate::Reg<u8, _LOAD3>;
57#[allow(missing_docs)]
58#[doc(hidden)]
59pub struct _LOAD3;
60#[doc = "`read()` method returns [load3::R](load3::R) reader structure"]
61impl crate::Readable for LOAD3 {}
62#[doc = "`write(|w| ..)` method takes [load3::W](load3::W) writer structure"]
63impl crate::Writable for LOAD3 {}
64#[doc = "Bits 24-31 of `TIMER0_LOAD`. Load value when Timer is (re-)enabled.In One-Shot mode, the value written to this register specify the Timer's duration in clock cycles."]
65pub mod load3;
66#[doc = "Bits 16-23 of `TIMER0_LOAD`.\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [load2](load2) module"]
67pub type LOAD2 = crate::Reg<u8, _LOAD2>;
68#[allow(missing_docs)]
69#[doc(hidden)]
70pub struct _LOAD2;
71#[doc = "`read()` method returns [load2::R](load2::R) reader structure"]
72impl crate::Readable for LOAD2 {}
73#[doc = "`write(|w| ..)` method takes [load2::W](load2::W) writer structure"]
74impl crate::Writable for LOAD2 {}
75#[doc = "Bits 16-23 of `TIMER0_LOAD`."]
76pub mod load2;
77#[doc = "Bits 8-15 of `TIMER0_LOAD`.\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [load1](load1) module"]
78pub type LOAD1 = crate::Reg<u8, _LOAD1>;
79#[allow(missing_docs)]
80#[doc(hidden)]
81pub struct _LOAD1;
82#[doc = "`read()` method returns [load1::R](load1::R) reader structure"]
83impl crate::Readable for LOAD1 {}
84#[doc = "`write(|w| ..)` method takes [load1::W](load1::W) writer structure"]
85impl crate::Writable for LOAD1 {}
86#[doc = "Bits 8-15 of `TIMER0_LOAD`."]
87pub mod load1;
88#[doc = "Bits 0-7 of `TIMER0_LOAD`.\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [load0](load0) module"]
89pub type LOAD0 = crate::Reg<u8, _LOAD0>;
90#[allow(missing_docs)]
91#[doc(hidden)]
92pub struct _LOAD0;
93#[doc = "`read()` method returns [load0::R](load0::R) reader structure"]
94impl crate::Readable for LOAD0 {}
95#[doc = "`write(|w| ..)` method takes [load0::W](load0::W) writer structure"]
96impl crate::Writable for LOAD0 {}
97#[doc = "Bits 0-7 of `TIMER0_LOAD`."]
98pub mod load0;
99#[doc = "Bits 24-31 of `TIMER0_RELOAD`. Reload value when Timer reaches 0.In Periodic mode, the value written to this register specify the Timer's period in clock cycles.\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [reload3](reload3) module"]
100pub type RELOAD3 = crate::Reg<u8, _RELOAD3>;
101#[allow(missing_docs)]
102#[doc(hidden)]
103pub struct _RELOAD3;
104#[doc = "`read()` method returns [reload3::R](reload3::R) reader structure"]
105impl crate::Readable for RELOAD3 {}
106#[doc = "`write(|w| ..)` method takes [reload3::W](reload3::W) writer structure"]
107impl crate::Writable for RELOAD3 {}
108#[doc = "Bits 24-31 of `TIMER0_RELOAD`. Reload value when Timer reaches 0.In Periodic mode, the value written to this register specify the Timer's period in clock cycles."]
109pub mod reload3;
110#[doc = "Bits 16-23 of `TIMER0_RELOAD`.\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [reload2](reload2) module"]
111pub type RELOAD2 = crate::Reg<u8, _RELOAD2>;
112#[allow(missing_docs)]
113#[doc(hidden)]
114pub struct _RELOAD2;
115#[doc = "`read()` method returns [reload2::R](reload2::R) reader structure"]
116impl crate::Readable for RELOAD2 {}
117#[doc = "`write(|w| ..)` method takes [reload2::W](reload2::W) writer structure"]
118impl crate::Writable for RELOAD2 {}
119#[doc = "Bits 16-23 of `TIMER0_RELOAD`."]
120pub mod reload2;
121#[doc = "Bits 8-15 of `TIMER0_RELOAD`.\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [reload1](reload1) module"]
122pub type RELOAD1 = crate::Reg<u8, _RELOAD1>;
123#[allow(missing_docs)]
124#[doc(hidden)]
125pub struct _RELOAD1;
126#[doc = "`read()` method returns [reload1::R](reload1::R) reader structure"]
127impl crate::Readable for RELOAD1 {}
128#[doc = "`write(|w| ..)` method takes [reload1::W](reload1::W) writer structure"]
129impl crate::Writable for RELOAD1 {}
130#[doc = "Bits 8-15 of `TIMER0_RELOAD`."]
131pub mod reload1;
132#[doc = "Bits 0-7 of `TIMER0_RELOAD`.\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [reload0](reload0) module"]
133pub type RELOAD0 = crate::Reg<u8, _RELOAD0>;
134#[allow(missing_docs)]
135#[doc(hidden)]
136pub struct _RELOAD0;
137#[doc = "`read()` method returns [reload0::R](reload0::R) reader structure"]
138impl crate::Readable for RELOAD0 {}
139#[doc = "`write(|w| ..)` method takes [reload0::W](reload0::W) writer structure"]
140impl crate::Writable for RELOAD0 {}
141#[doc = "Bits 0-7 of `TIMER0_RELOAD`."]
142pub mod reload0;
143#[doc = "Enable of the Timer.Set if to 1 to enable/start the Timer and 0 to disable the Timer\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [en](en) module"]
144pub type EN = crate::Reg<u8, _EN>;
145#[allow(missing_docs)]
146#[doc(hidden)]
147pub struct _EN;
148#[doc = "`read()` method returns [en::R](en::R) reader structure"]
149impl crate::Readable for EN {}
150#[doc = "`write(|w| ..)` method takes [en::W](en::W) writer structure"]
151impl crate::Writable for EN {}
152#[doc = "Enable of the Timer.Set if to 1 to enable/start the Timer and 0 to disable the Timer"]
153pub mod en;
154#[doc = "Update of the current countdown value.A write to this register latches the current countdown value to `value` register.\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [update_value](update_value) module"]
155pub type UPDATE_VALUE = crate::Reg<u8, _UPDATE_VALUE>;
156#[allow(missing_docs)]
157#[doc(hidden)]
158pub struct _UPDATE_VALUE;
159#[doc = "`read()` method returns [update_value::R](update_value::R) reader structure"]
160impl crate::Readable for UPDATE_VALUE {}
161#[doc = "`write(|w| ..)` method takes [update_value::W](update_value::W) writer structure"]
162impl crate::Writable for UPDATE_VALUE {}
163#[doc = "Update of the current countdown value.A write to this register latches the current countdown value to `value` register."]
164pub mod update_value;
165#[doc = "Bits 24-31 of `TIMER0_VALUE`. Latched countdown value\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [value3](value3) module"]
166pub type VALUE3 = crate::Reg<u8, _VALUE3>;
167#[allow(missing_docs)]
168#[doc(hidden)]
169pub struct _VALUE3;
170#[doc = "`read()` method returns [value3::R](value3::R) reader structure"]
171impl crate::Readable for VALUE3 {}
172#[doc = "Bits 24-31 of `TIMER0_VALUE`. Latched countdown value"]
173pub mod value3;
174#[doc = "Bits 16-23 of `TIMER0_VALUE`.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [value2](value2) module"]
175pub type VALUE2 = crate::Reg<u8, _VALUE2>;
176#[allow(missing_docs)]
177#[doc(hidden)]
178pub struct _VALUE2;
179#[doc = "`read()` method returns [value2::R](value2::R) reader structure"]
180impl crate::Readable for VALUE2 {}
181#[doc = "Bits 16-23 of `TIMER0_VALUE`."]
182pub mod value2;
183#[doc = "Bits 8-15 of `TIMER0_VALUE`.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [value1](value1) module"]
184pub type VALUE1 = crate::Reg<u8, _VALUE1>;
185#[allow(missing_docs)]
186#[doc(hidden)]
187pub struct _VALUE1;
188#[doc = "`read()` method returns [value1::R](value1::R) reader structure"]
189impl crate::Readable for VALUE1 {}
190#[doc = "Bits 8-15 of `TIMER0_VALUE`."]
191pub mod value1;
192#[doc = "Bits 0-7 of `TIMER0_VALUE`.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [value0](value0) module"]
193pub type VALUE0 = crate::Reg<u8, _VALUE0>;
194#[allow(missing_docs)]
195#[doc(hidden)]
196pub struct _VALUE0;
197#[doc = "`read()` method returns [value0::R](value0::R) reader structure"]
198impl crate::Readable for VALUE0 {}
199#[doc = "Bits 0-7 of `TIMER0_VALUE`."]
200pub mod value0;
201#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [ev_status](ev_status) module"]
202pub type EV_STATUS = crate::Reg<u8, _EV_STATUS>;
203#[allow(missing_docs)]
204#[doc(hidden)]
205pub struct _EV_STATUS;
206#[doc = "`read()` method returns [ev_status::R](ev_status::R) reader structure"]
207impl crate::Readable for EV_STATUS {}
208#[doc = "`write(|w| ..)` method takes [ev_status::W](ev_status::W) writer structure"]
209impl crate::Writable for EV_STATUS {}
210#[doc = ""]
211pub mod ev_status;
212#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [ev_pending](ev_pending) module"]
213pub type EV_PENDING = crate::Reg<u8, _EV_PENDING>;
214#[allow(missing_docs)]
215#[doc(hidden)]
216pub struct _EV_PENDING;
217#[doc = "`read()` method returns [ev_pending::R](ev_pending::R) reader structure"]
218impl crate::Readable for EV_PENDING {}
219#[doc = "`write(|w| ..)` method takes [ev_pending::W](ev_pending::W) writer structure"]
220impl crate::Writable for EV_PENDING {}
221#[doc = ""]
222pub mod ev_pending;
223#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [ev_enable](ev_enable) module"]
224pub type EV_ENABLE = crate::Reg<u8, _EV_ENABLE>;
225#[allow(missing_docs)]
226#[doc(hidden)]
227pub struct _EV_ENABLE;
228#[doc = "`read()` method returns [ev_enable::R](ev_enable::R) reader structure"]
229impl crate::Readable for EV_ENABLE {}
230#[doc = "`write(|w| ..)` method takes [ev_enable::W](ev_enable::W) writer structure"]
231impl crate::Writable for EV_ENABLE {}
232#[doc = ""]
233pub mod ev_enable;