Skip to main content

atsamd51p19a/
oscctrl.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Event Control"]
5    pub evctrl: EVCTRL,
6    _reserved1: [u8; 3usize],
7    #[doc = "0x04 - Interrupt Enable Clear"]
8    pub intenclr: INTENCLR,
9    #[doc = "0x08 - Interrupt Enable Set"]
10    pub intenset: INTENSET,
11    #[doc = "0x0c - Interrupt Flag Status and Clear"]
12    pub intflag: INTFLAG,
13    #[doc = "0x10 - Status"]
14    pub status: STATUS,
15    #[doc = "0x14 - External Multipurpose Crystal Oscillator Control"]
16    pub xoscctrl: [XOSCCTRL; 2],
17    #[doc = "0x1c - DFLL48M Control A"]
18    pub dfllctrla: DFLLCTRLA,
19    _reserved7: [u8; 3usize],
20    #[doc = "0x20 - DFLL48M Control B"]
21    pub dfllctrlb: DFLLCTRLB,
22    _reserved8: [u8; 3usize],
23    #[doc = "0x24 - DFLL48M Value"]
24    pub dfllval: DFLLVAL,
25    #[doc = "0x28 - DFLL48M Multiplier"]
26    pub dfllmul: DFLLMUL,
27    #[doc = "0x2c - DFLL48M Synchronization"]
28    pub dfllsync: DFLLSYNC,
29    _reserved11: [u8; 3usize],
30    #[doc = "0x30 - DPLL\\[%s\\]"]
31    pub dpll: [DPLL; 2],
32}
33#[doc = r"Register block"]
34#[repr(C)]
35pub struct DPLL {
36    #[doc = "0x00 - DPLL Control A"]
37    pub dpllctrla: self::dpll::DPLLCTRLA,
38    _reserved1: [u8; 3usize],
39    #[doc = "0x04 - DPLL Ratio Control"]
40    pub dpllratio: self::dpll::DPLLRATIO,
41    #[doc = "0x08 - DPLL Control B"]
42    pub dpllctrlb: self::dpll::DPLLCTRLB,
43    #[doc = "0x0c - DPLL Synchronization Busy"]
44    pub dpllsyncbusy: self::dpll::DPLLSYNCBUSY,
45    #[doc = "0x10 - DPLL Status"]
46    pub dpllstatus: self::dpll::DPLLSTATUS,
47}
48#[doc = r"Register block"]
49#[doc = "DPLL\\[%s\\]"]
50pub mod dpll;
51#[doc = "Event Control\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 [evctrl](evctrl) module"]
52pub type EVCTRL = crate::Reg<u8, _EVCTRL>;
53#[allow(missing_docs)]
54#[doc(hidden)]
55pub struct _EVCTRL;
56#[doc = "`read()` method returns [evctrl::R](evctrl::R) reader structure"]
57impl crate::Readable for EVCTRL {}
58#[doc = "`write(|w| ..)` method takes [evctrl::W](evctrl::W) writer structure"]
59impl crate::Writable for EVCTRL {}
60#[doc = "Event Control"]
61pub mod evctrl;
62#[doc = "Interrupt Enable Clear\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 [intenclr](intenclr) module"]
63pub type INTENCLR = crate::Reg<u32, _INTENCLR>;
64#[allow(missing_docs)]
65#[doc(hidden)]
66pub struct _INTENCLR;
67#[doc = "`read()` method returns [intenclr::R](intenclr::R) reader structure"]
68impl crate::Readable for INTENCLR {}
69#[doc = "`write(|w| ..)` method takes [intenclr::W](intenclr::W) writer structure"]
70impl crate::Writable for INTENCLR {}
71#[doc = "Interrupt Enable Clear"]
72pub mod intenclr;
73#[doc = "Interrupt Enable Set\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 [intenset](intenset) module"]
74pub type INTENSET = crate::Reg<u32, _INTENSET>;
75#[allow(missing_docs)]
76#[doc(hidden)]
77pub struct _INTENSET;
78#[doc = "`read()` method returns [intenset::R](intenset::R) reader structure"]
79impl crate::Readable for INTENSET {}
80#[doc = "`write(|w| ..)` method takes [intenset::W](intenset::W) writer structure"]
81impl crate::Writable for INTENSET {}
82#[doc = "Interrupt Enable Set"]
83pub mod intenset;
84#[doc = "Interrupt Flag Status and Clear\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 [intflag](intflag) module"]
85pub type INTFLAG = crate::Reg<u32, _INTFLAG>;
86#[allow(missing_docs)]
87#[doc(hidden)]
88pub struct _INTFLAG;
89#[doc = "`read()` method returns [intflag::R](intflag::R) reader structure"]
90impl crate::Readable for INTFLAG {}
91#[doc = "`write(|w| ..)` method takes [intflag::W](intflag::W) writer structure"]
92impl crate::Writable for INTFLAG {}
93#[doc = "Interrupt Flag Status and Clear"]
94pub mod intflag;
95#[doc = "Status\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"]
96pub type STATUS = crate::Reg<u32, _STATUS>;
97#[allow(missing_docs)]
98#[doc(hidden)]
99pub struct _STATUS;
100#[doc = "`read()` method returns [status::R](status::R) reader structure"]
101impl crate::Readable for STATUS {}
102#[doc = "Status"]
103pub mod status;
104#[doc = "External Multipurpose Crystal Oscillator Control\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 [xoscctrl](xoscctrl) module"]
105pub type XOSCCTRL = crate::Reg<u32, _XOSCCTRL>;
106#[allow(missing_docs)]
107#[doc(hidden)]
108pub struct _XOSCCTRL;
109#[doc = "`read()` method returns [xoscctrl::R](xoscctrl::R) reader structure"]
110impl crate::Readable for XOSCCTRL {}
111#[doc = "`write(|w| ..)` method takes [xoscctrl::W](xoscctrl::W) writer structure"]
112impl crate::Writable for XOSCCTRL {}
113#[doc = "External Multipurpose Crystal Oscillator Control"]
114pub mod xoscctrl;
115#[doc = "DFLL48M Control A\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 [dfllctrla](dfllctrla) module"]
116pub type DFLLCTRLA = crate::Reg<u8, _DFLLCTRLA>;
117#[allow(missing_docs)]
118#[doc(hidden)]
119pub struct _DFLLCTRLA;
120#[doc = "`read()` method returns [dfllctrla::R](dfllctrla::R) reader structure"]
121impl crate::Readable for DFLLCTRLA {}
122#[doc = "`write(|w| ..)` method takes [dfllctrla::W](dfllctrla::W) writer structure"]
123impl crate::Writable for DFLLCTRLA {}
124#[doc = "DFLL48M Control A"]
125pub mod dfllctrla;
126#[doc = "DFLL48M Control B\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 [dfllctrlb](dfllctrlb) module"]
127pub type DFLLCTRLB = crate::Reg<u8, _DFLLCTRLB>;
128#[allow(missing_docs)]
129#[doc(hidden)]
130pub struct _DFLLCTRLB;
131#[doc = "`read()` method returns [dfllctrlb::R](dfllctrlb::R) reader structure"]
132impl crate::Readable for DFLLCTRLB {}
133#[doc = "`write(|w| ..)` method takes [dfllctrlb::W](dfllctrlb::W) writer structure"]
134impl crate::Writable for DFLLCTRLB {}
135#[doc = "DFLL48M Control B"]
136pub mod dfllctrlb;
137#[doc = "DFLL48M Value\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 [dfllval](dfllval) module"]
138pub type DFLLVAL = crate::Reg<u32, _DFLLVAL>;
139#[allow(missing_docs)]
140#[doc(hidden)]
141pub struct _DFLLVAL;
142#[doc = "`read()` method returns [dfllval::R](dfllval::R) reader structure"]
143impl crate::Readable for DFLLVAL {}
144#[doc = "`write(|w| ..)` method takes [dfllval::W](dfllval::W) writer structure"]
145impl crate::Writable for DFLLVAL {}
146#[doc = "DFLL48M Value"]
147pub mod dfllval;
148#[doc = "DFLL48M Multiplier\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 [dfllmul](dfllmul) module"]
149pub type DFLLMUL = crate::Reg<u32, _DFLLMUL>;
150#[allow(missing_docs)]
151#[doc(hidden)]
152pub struct _DFLLMUL;
153#[doc = "`read()` method returns [dfllmul::R](dfllmul::R) reader structure"]
154impl crate::Readable for DFLLMUL {}
155#[doc = "`write(|w| ..)` method takes [dfllmul::W](dfllmul::W) writer structure"]
156impl crate::Writable for DFLLMUL {}
157#[doc = "DFLL48M Multiplier"]
158pub mod dfllmul;
159#[doc = "DFLL48M Synchronization\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 [dfllsync](dfllsync) module"]
160pub type DFLLSYNC = crate::Reg<u8, _DFLLSYNC>;
161#[allow(missing_docs)]
162#[doc(hidden)]
163pub struct _DFLLSYNC;
164#[doc = "`read()` method returns [dfllsync::R](dfllsync::R) reader structure"]
165impl crate::Readable for DFLLSYNC {}
166#[doc = "`write(|w| ..)` method takes [dfllsync::W](dfllsync::W) writer structure"]
167impl crate::Writable for DFLLSYNC {}
168#[doc = "DFLL48M Synchronization"]
169pub mod dfllsync;