efm32gg12b810/
pcnt2.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Control Register"]
5    pub ctrl: CTRL,
6    #[doc = "0x04 - Command Register"]
7    pub cmd: CMD,
8    #[doc = "0x08 - Status Register"]
9    pub status: STATUS,
10    #[doc = "0x0c - Counter Value Register"]
11    pub cnt: CNT,
12    #[doc = "0x10 - Top Value Register"]
13    pub top: TOP,
14    #[doc = "0x14 - Top Value Buffer Register"]
15    pub topb: TOPB,
16    #[doc = "0x18 - Interrupt Flag Register"]
17    pub if_: IF,
18    #[doc = "0x1c - Interrupt Flag Set Register"]
19    pub ifs: IFS,
20    #[doc = "0x20 - Interrupt Flag Clear Register"]
21    pub ifc: IFC,
22    #[doc = "0x24 - Interrupt Enable Register"]
23    pub ien: IEN,
24    _reserved10: [u8; 4usize],
25    #[doc = "0x2c - I/O Routing Location Register"]
26    pub routeloc0: ROUTELOC0,
27    _reserved11: [u8; 16usize],
28    #[doc = "0x40 - Freeze Register"]
29    pub freeze: FREEZE,
30    #[doc = "0x44 - Synchronization Busy Register"]
31    pub syncbusy: SYNCBUSY,
32    _reserved13: [u8; 28usize],
33    #[doc = "0x64 - Auxiliary Counter Value Register"]
34    pub auxcnt: AUXCNT,
35    #[doc = "0x68 - PCNT Input Register"]
36    pub input: INPUT,
37    #[doc = "0x6c - Oversampling Config Register"]
38    pub ovscfg: OVSCFG,
39}
40#[doc = "Control 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 available fields see [ctrl](ctrl) module"]
41pub type CTRL = crate::Reg<u32, _CTRL>;
42#[allow(missing_docs)]
43#[doc(hidden)]
44pub struct _CTRL;
45#[doc = "`read()` method returns [ctrl::R](ctrl::R) reader structure"]
46impl crate::Readable for CTRL {}
47#[doc = "`write(|w| ..)` method takes [ctrl::W](ctrl::W) writer structure"]
48impl crate::Writable for CTRL {}
49#[doc = "Control Register"]
50pub mod ctrl;
51#[doc = "Command Register\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [cmd](cmd) module"]
52pub type CMD = crate::Reg<u32, _CMD>;
53#[allow(missing_docs)]
54#[doc(hidden)]
55pub struct _CMD;
56#[doc = "`write(|w| ..)` method takes [cmd::W](cmd::W) writer structure"]
57impl crate::Writable for CMD {}
58#[doc = "Command Register"]
59pub mod cmd;
60#[doc = "Status Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [status](status) module"]
61pub type STATUS = crate::Reg<u32, _STATUS>;
62#[allow(missing_docs)]
63#[doc(hidden)]
64pub struct _STATUS;
65#[doc = "`read()` method returns [status::R](status::R) reader structure"]
66impl crate::Readable for STATUS {}
67#[doc = "Status Register"]
68pub mod status;
69#[doc = "Counter Value Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [cnt](cnt) module"]
70pub type CNT = crate::Reg<u32, _CNT>;
71#[allow(missing_docs)]
72#[doc(hidden)]
73pub struct _CNT;
74#[doc = "`read()` method returns [cnt::R](cnt::R) reader structure"]
75impl crate::Readable for CNT {}
76#[doc = "Counter Value Register"]
77pub mod cnt;
78#[doc = "Top Value Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [top](top) module"]
79pub type TOP = crate::Reg<u32, _TOP>;
80#[allow(missing_docs)]
81#[doc(hidden)]
82pub struct _TOP;
83#[doc = "`read()` method returns [top::R](top::R) reader structure"]
84impl crate::Readable for TOP {}
85#[doc = "Top Value Register"]
86pub mod top;
87#[doc = "Top Value Buffer 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 available fields see [topb](topb) module"]
88pub type TOPB = crate::Reg<u32, _TOPB>;
89#[allow(missing_docs)]
90#[doc(hidden)]
91pub struct _TOPB;
92#[doc = "`read()` method returns [topb::R](topb::R) reader structure"]
93impl crate::Readable for TOPB {}
94#[doc = "`write(|w| ..)` method takes [topb::W](topb::W) writer structure"]
95impl crate::Writable for TOPB {}
96#[doc = "Top Value Buffer Register"]
97pub mod topb;
98#[doc = "Interrupt Flag Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [if_](if_) module"]
99pub type IF = crate::Reg<u32, _IF>;
100#[allow(missing_docs)]
101#[doc(hidden)]
102pub struct _IF;
103#[doc = "`read()` method returns [if_::R](if_::R) reader structure"]
104impl crate::Readable for IF {}
105#[doc = "Interrupt Flag Register"]
106pub mod if_;
107#[doc = "Interrupt Flag Set Register\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ifs](ifs) module"]
108pub type IFS = crate::Reg<u32, _IFS>;
109#[allow(missing_docs)]
110#[doc(hidden)]
111pub struct _IFS;
112#[doc = "`write(|w| ..)` method takes [ifs::W](ifs::W) writer structure"]
113impl crate::Writable for IFS {}
114#[doc = "Interrupt Flag Set Register"]
115pub mod ifs;
116#[doc = "Interrupt Flag Clear Register\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ifc](ifc) module"]
117pub type IFC = crate::Reg<u32, _IFC>;
118#[allow(missing_docs)]
119#[doc(hidden)]
120pub struct _IFC;
121#[doc = "`write(|w| ..)` method takes [ifc::W](ifc::W) writer structure"]
122impl crate::Writable for IFC {}
123#[doc = "Interrupt Flag Clear Register"]
124pub mod ifc;
125#[doc = "Interrupt Enable 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 available fields see [ien](ien) module"]
126pub type IEN = crate::Reg<u32, _IEN>;
127#[allow(missing_docs)]
128#[doc(hidden)]
129pub struct _IEN;
130#[doc = "`read()` method returns [ien::R](ien::R) reader structure"]
131impl crate::Readable for IEN {}
132#[doc = "`write(|w| ..)` method takes [ien::W](ien::W) writer structure"]
133impl crate::Writable for IEN {}
134#[doc = "Interrupt Enable Register"]
135pub mod ien;
136#[doc = "I/O Routing Location 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 available fields see [routeloc0](routeloc0) module"]
137pub type ROUTELOC0 = crate::Reg<u32, _ROUTELOC0>;
138#[allow(missing_docs)]
139#[doc(hidden)]
140pub struct _ROUTELOC0;
141#[doc = "`read()` method returns [routeloc0::R](routeloc0::R) reader structure"]
142impl crate::Readable for ROUTELOC0 {}
143#[doc = "`write(|w| ..)` method takes [routeloc0::W](routeloc0::W) writer structure"]
144impl crate::Writable for ROUTELOC0 {}
145#[doc = "I/O Routing Location Register"]
146pub mod routeloc0;
147#[doc = "Freeze 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 available fields see [freeze](freeze) module"]
148pub type FREEZE = crate::Reg<u32, _FREEZE>;
149#[allow(missing_docs)]
150#[doc(hidden)]
151pub struct _FREEZE;
152#[doc = "`read()` method returns [freeze::R](freeze::R) reader structure"]
153impl crate::Readable for FREEZE {}
154#[doc = "`write(|w| ..)` method takes [freeze::W](freeze::W) writer structure"]
155impl crate::Writable for FREEZE {}
156#[doc = "Freeze Register"]
157pub mod freeze;
158#[doc = "Synchronization Busy Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [syncbusy](syncbusy) module"]
159pub type SYNCBUSY = crate::Reg<u32, _SYNCBUSY>;
160#[allow(missing_docs)]
161#[doc(hidden)]
162pub struct _SYNCBUSY;
163#[doc = "`read()` method returns [syncbusy::R](syncbusy::R) reader structure"]
164impl crate::Readable for SYNCBUSY {}
165#[doc = "Synchronization Busy Register"]
166pub mod syncbusy;
167#[doc = "Auxiliary Counter Value Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [auxcnt](auxcnt) module"]
168pub type AUXCNT = crate::Reg<u32, _AUXCNT>;
169#[allow(missing_docs)]
170#[doc(hidden)]
171pub struct _AUXCNT;
172#[doc = "`read()` method returns [auxcnt::R](auxcnt::R) reader structure"]
173impl crate::Readable for AUXCNT {}
174#[doc = "Auxiliary Counter Value Register"]
175pub mod auxcnt;
176#[doc = "PCNT Input 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 available fields see [input](input) module"]
177pub type INPUT = crate::Reg<u32, _INPUT>;
178#[allow(missing_docs)]
179#[doc(hidden)]
180pub struct _INPUT;
181#[doc = "`read()` method returns [input::R](input::R) reader structure"]
182impl crate::Readable for INPUT {}
183#[doc = "`write(|w| ..)` method takes [input::W](input::W) writer structure"]
184impl crate::Writable for INPUT {}
185#[doc = "PCNT Input Register"]
186pub mod input;
187#[doc = "Oversampling Config 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 available fields see [ovscfg](ovscfg) module"]
188pub type OVSCFG = crate::Reg<u32, _OVSCFG>;
189#[allow(missing_docs)]
190#[doc(hidden)]
191pub struct _OVSCFG;
192#[doc = "`read()` method returns [ovscfg::R](ovscfg::R) reader structure"]
193impl crate::Readable for OVSCFG {}
194#[doc = "`write(|w| ..)` method takes [ovscfg::W](ovscfg::W) writer structure"]
195impl crate::Writable for OVSCFG {}
196#[doc = "Oversampling Config Register"]
197pub mod ovscfg;