stm32l4x2_pac/
adc.rs

1#[doc = r" Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - interrupt and status register"]
5    pub isr: ISR,
6    #[doc = "0x04 - interrupt enable register"]
7    pub ier: IER,
8    #[doc = "0x08 - control register"]
9    pub cr: CR,
10    #[doc = "0x0c - configuration register"]
11    pub cfgr: CFGR,
12    #[doc = "0x10 - configuration register"]
13    pub cfgr2: CFGR2,
14    #[doc = "0x14 - sample time register 1"]
15    pub smpr1: SMPR1,
16    #[doc = "0x18 - sample time register 2"]
17    pub smpr2: SMPR2,
18    _reserved0: [u8; 4usize],
19    #[doc = "0x20 - watchdog threshold register 1"]
20    pub tr1: TR1,
21    #[doc = "0x24 - watchdog threshold register"]
22    pub tr2: TR2,
23    #[doc = "0x28 - watchdog threshold register 3"]
24    pub tr3: TR3,
25    _reserved1: [u8; 4usize],
26    #[doc = "0x30 - regular sequence register 1"]
27    pub sqr1: SQR1,
28    #[doc = "0x34 - regular sequence register 2"]
29    pub sqr2: SQR2,
30    #[doc = "0x38 - regular sequence register 3"]
31    pub sqr3: SQR3,
32    #[doc = "0x3c - regular sequence register 4"]
33    pub sqr4: SQR4,
34    #[doc = "0x40 - regular Data Register"]
35    pub dr: DR,
36    _reserved2: [u8; 8usize],
37    #[doc = "0x4c - injected sequence register"]
38    pub jsqr: JSQR,
39    _reserved3: [u8; 16usize],
40    #[doc = "0x60 - offset register 1"]
41    pub ofr1: OFR1,
42    #[doc = "0x64 - offset register 2"]
43    pub ofr2: OFR2,
44    #[doc = "0x68 - offset register 3"]
45    pub ofr3: OFR3,
46    #[doc = "0x6c - offset register 4"]
47    pub ofr4: OFR4,
48    _reserved4: [u8; 16usize],
49    #[doc = "0x80 - injected data register 1"]
50    pub jdr1: JDR1,
51    #[doc = "0x84 - injected data register 2"]
52    pub jdr2: JDR2,
53    #[doc = "0x88 - injected data register 3"]
54    pub jdr3: JDR3,
55    #[doc = "0x8c - injected data register 4"]
56    pub jdr4: JDR4,
57    _reserved5: [u8; 16usize],
58    #[doc = "0xa0 - Analog Watchdog 2 Configuration Register"]
59    pub awd2cr: AWD2CR,
60    #[doc = "0xa4 - Analog Watchdog 3 Configuration Register"]
61    pub awd3cr: AWD3CR,
62    _reserved6: [u8; 8usize],
63    #[doc = "0xb0 - Differential Mode Selection Register 2"]
64    pub difsel: DIFSEL,
65    #[doc = "0xb4 - Calibration Factors"]
66    pub calfact: CALFACT,
67}
68#[doc = "interrupt and status register"]
69pub struct ISR {
70    register: ::vcell::VolatileCell<u32>,
71}
72#[doc = "interrupt and status register"]
73pub mod isr;
74#[doc = "interrupt enable register"]
75pub struct IER {
76    register: ::vcell::VolatileCell<u32>,
77}
78#[doc = "interrupt enable register"]
79pub mod ier;
80#[doc = "control register"]
81pub struct CR {
82    register: ::vcell::VolatileCell<u32>,
83}
84#[doc = "control register"]
85pub mod cr;
86#[doc = "configuration register"]
87pub struct CFGR {
88    register: ::vcell::VolatileCell<u32>,
89}
90#[doc = "configuration register"]
91pub mod cfgr;
92#[doc = "configuration register"]
93pub struct CFGR2 {
94    register: ::vcell::VolatileCell<u32>,
95}
96#[doc = "configuration register"]
97pub mod cfgr2;
98#[doc = "sample time register 1"]
99pub struct SMPR1 {
100    register: ::vcell::VolatileCell<u32>,
101}
102#[doc = "sample time register 1"]
103pub mod smpr1;
104#[doc = "sample time register 2"]
105pub struct SMPR2 {
106    register: ::vcell::VolatileCell<u32>,
107}
108#[doc = "sample time register 2"]
109pub mod smpr2;
110#[doc = "watchdog threshold register 1"]
111pub struct TR1 {
112    register: ::vcell::VolatileCell<u32>,
113}
114#[doc = "watchdog threshold register 1"]
115pub mod tr1;
116#[doc = "watchdog threshold register"]
117pub struct TR2 {
118    register: ::vcell::VolatileCell<u32>,
119}
120#[doc = "watchdog threshold register"]
121pub mod tr2;
122#[doc = "watchdog threshold register 3"]
123pub struct TR3 {
124    register: ::vcell::VolatileCell<u32>,
125}
126#[doc = "watchdog threshold register 3"]
127pub mod tr3;
128#[doc = "regular sequence register 1"]
129pub struct SQR1 {
130    register: ::vcell::VolatileCell<u32>,
131}
132#[doc = "regular sequence register 1"]
133pub mod sqr1;
134#[doc = "regular sequence register 2"]
135pub struct SQR2 {
136    register: ::vcell::VolatileCell<u32>,
137}
138#[doc = "regular sequence register 2"]
139pub mod sqr2;
140#[doc = "regular sequence register 3"]
141pub struct SQR3 {
142    register: ::vcell::VolatileCell<u32>,
143}
144#[doc = "regular sequence register 3"]
145pub mod sqr3;
146#[doc = "regular sequence register 4"]
147pub struct SQR4 {
148    register: ::vcell::VolatileCell<u32>,
149}
150#[doc = "regular sequence register 4"]
151pub mod sqr4;
152#[doc = "regular Data Register"]
153pub struct DR {
154    register: ::vcell::VolatileCell<u32>,
155}
156#[doc = "regular Data Register"]
157pub mod dr;
158#[doc = "injected sequence register"]
159pub struct JSQR {
160    register: ::vcell::VolatileCell<u32>,
161}
162#[doc = "injected sequence register"]
163pub mod jsqr;
164#[doc = "offset register 1"]
165pub struct OFR1 {
166    register: ::vcell::VolatileCell<u32>,
167}
168#[doc = "offset register 1"]
169pub mod ofr1;
170#[doc = "offset register 2"]
171pub struct OFR2 {
172    register: ::vcell::VolatileCell<u32>,
173}
174#[doc = "offset register 2"]
175pub mod ofr2;
176#[doc = "offset register 3"]
177pub struct OFR3 {
178    register: ::vcell::VolatileCell<u32>,
179}
180#[doc = "offset register 3"]
181pub mod ofr3;
182#[doc = "offset register 4"]
183pub struct OFR4 {
184    register: ::vcell::VolatileCell<u32>,
185}
186#[doc = "offset register 4"]
187pub mod ofr4;
188#[doc = "injected data register 1"]
189pub struct JDR1 {
190    register: ::vcell::VolatileCell<u32>,
191}
192#[doc = "injected data register 1"]
193pub mod jdr1;
194#[doc = "injected data register 2"]
195pub struct JDR2 {
196    register: ::vcell::VolatileCell<u32>,
197}
198#[doc = "injected data register 2"]
199pub mod jdr2;
200#[doc = "injected data register 3"]
201pub struct JDR3 {
202    register: ::vcell::VolatileCell<u32>,
203}
204#[doc = "injected data register 3"]
205pub mod jdr3;
206#[doc = "injected data register 4"]
207pub struct JDR4 {
208    register: ::vcell::VolatileCell<u32>,
209}
210#[doc = "injected data register 4"]
211pub mod jdr4;
212#[doc = "Analog Watchdog 2 Configuration Register"]
213pub struct AWD2CR {
214    register: ::vcell::VolatileCell<u32>,
215}
216#[doc = "Analog Watchdog 2 Configuration Register"]
217pub mod awd2cr;
218#[doc = "Analog Watchdog 3 Configuration Register"]
219pub struct AWD3CR {
220    register: ::vcell::VolatileCell<u32>,
221}
222#[doc = "Analog Watchdog 3 Configuration Register"]
223pub mod awd3cr;
224#[doc = "Differential Mode Selection Register 2"]
225pub struct DIFSEL {
226    register: ::vcell::VolatileCell<u32>,
227}
228#[doc = "Differential Mode Selection Register 2"]
229pub mod difsel;
230#[doc = "Calibration Factors"]
231pub struct CALFACT {
232    register: ::vcell::VolatileCell<u32>,
233}
234#[doc = "Calibration Factors"]
235pub mod calfact;