stm32l0/stm32l0x2/
aes.rs

1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5    cr: CR,
6    sr: SR,
7    dinr: DINR,
8    doutr: DOUTR,
9    keyr0: KEYR0,
10    keyr1: KEYR1,
11    keyr2: KEYR2,
12    keyr3: KEYR3,
13    ivr0: IVR0,
14    ivr1: IVR1,
15    ivr2: IVR2,
16    ivr3: IVR3,
17}
18impl RegisterBlock {
19    ///0x00 - control register
20    #[inline(always)]
21    pub const fn cr(&self) -> &CR {
22        &self.cr
23    }
24    ///0x04 - status register
25    #[inline(always)]
26    pub const fn sr(&self) -> &SR {
27        &self.sr
28    }
29    ///0x08 - data input register
30    #[inline(always)]
31    pub const fn dinr(&self) -> &DINR {
32        &self.dinr
33    }
34    ///0x0c - data output register
35    #[inline(always)]
36    pub const fn doutr(&self) -> &DOUTR {
37        &self.doutr
38    }
39    ///0x10 - key register 0
40    #[inline(always)]
41    pub const fn keyr0(&self) -> &KEYR0 {
42        &self.keyr0
43    }
44    ///0x14 - key register 1
45    #[inline(always)]
46    pub const fn keyr1(&self) -> &KEYR1 {
47        &self.keyr1
48    }
49    ///0x18 - key register 2
50    #[inline(always)]
51    pub const fn keyr2(&self) -> &KEYR2 {
52        &self.keyr2
53    }
54    ///0x1c - key register 3
55    #[inline(always)]
56    pub const fn keyr3(&self) -> &KEYR3 {
57        &self.keyr3
58    }
59    ///0x20 - initialization vector register 0
60    #[inline(always)]
61    pub const fn ivr0(&self) -> &IVR0 {
62        &self.ivr0
63    }
64    ///0x24 - initialization vector register 1
65    #[inline(always)]
66    pub const fn ivr1(&self) -> &IVR1 {
67        &self.ivr1
68    }
69    ///0x28 - initialization vector register 2
70    #[inline(always)]
71    pub const fn ivr2(&self) -> &IVR2 {
72        &self.ivr2
73    }
74    ///0x2c - initialization vector register 3
75    #[inline(always)]
76    pub const fn ivr3(&self) -> &IVR3 {
77        &self.ivr3
78    }
79}
80/**CR (rw) register accessor: control register
81
82You can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
83
84See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L0x2.html#AES:CR)
85
86For information about available fields see [`mod@cr`] module*/
87pub type CR = crate::Reg<cr::CRrs>;
88///control register
89pub mod cr;
90/**SR (r) register accessor: status register
91
92You can [`read`](crate::Reg::read) this register and get [`sr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
93
94See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L0x2.html#AES:SR)
95
96For information about available fields see [`mod@sr`] module*/
97pub type SR = crate::Reg<sr::SRrs>;
98///status register
99pub mod sr;
100/**DINR (rw) register accessor: data input register
101
102You can [`read`](crate::Reg::read) this register and get [`dinr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dinr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
103
104See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L0x2.html#AES:DINR)
105
106For information about available fields see [`mod@dinr`] module*/
107pub type DINR = crate::Reg<dinr::DINRrs>;
108///data input register
109pub mod dinr;
110/**DOUTR (r) register accessor: data output register
111
112You can [`read`](crate::Reg::read) this register and get [`doutr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
113
114See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L0x2.html#AES:DOUTR)
115
116For information about available fields see [`mod@doutr`] module*/
117pub type DOUTR = crate::Reg<doutr::DOUTRrs>;
118///data output register
119pub mod doutr;
120/**KEYR0 (rw) register accessor: key register 0
121
122You can [`read`](crate::Reg::read) this register and get [`keyr0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`keyr0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
123
124See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L0x2.html#AES:KEYR0)
125
126For information about available fields see [`mod@keyr0`] module*/
127pub type KEYR0 = crate::Reg<keyr0::KEYR0rs>;
128///key register 0
129pub mod keyr0;
130/**KEYR1 (rw) register accessor: key register 1
131
132You can [`read`](crate::Reg::read) this register and get [`keyr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`keyr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
133
134See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L0x2.html#AES:KEYR1)
135
136For information about available fields see [`mod@keyr1`] module*/
137pub type KEYR1 = crate::Reg<keyr1::KEYR1rs>;
138///key register 1
139pub mod keyr1;
140/**KEYR2 (rw) register accessor: key register 2
141
142You can [`read`](crate::Reg::read) this register and get [`keyr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`keyr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
143
144See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L0x2.html#AES:KEYR2)
145
146For information about available fields see [`mod@keyr2`] module*/
147pub type KEYR2 = crate::Reg<keyr2::KEYR2rs>;
148///key register 2
149pub mod keyr2;
150/**KEYR3 (rw) register accessor: key register 3
151
152You can [`read`](crate::Reg::read) this register and get [`keyr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`keyr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
153
154See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L0x2.html#AES:KEYR3)
155
156For information about available fields see [`mod@keyr3`] module*/
157pub type KEYR3 = crate::Reg<keyr3::KEYR3rs>;
158///key register 3
159pub mod keyr3;
160/**IVR0 (rw) register accessor: initialization vector register 0
161
162You can [`read`](crate::Reg::read) this register and get [`ivr0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ivr0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
163
164See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L0x2.html#AES:IVR0)
165
166For information about available fields see [`mod@ivr0`] module*/
167pub type IVR0 = crate::Reg<ivr0::IVR0rs>;
168///initialization vector register 0
169pub mod ivr0;
170/**IVR1 (rw) register accessor: initialization vector register 1
171
172You can [`read`](crate::Reg::read) this register and get [`ivr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ivr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
173
174See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L0x2.html#AES:IVR1)
175
176For information about available fields see [`mod@ivr1`] module*/
177pub type IVR1 = crate::Reg<ivr1::IVR1rs>;
178///initialization vector register 1
179pub mod ivr1;
180/**IVR2 (rw) register accessor: initialization vector register 2
181
182You can [`read`](crate::Reg::read) this register and get [`ivr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ivr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
183
184See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L0x2.html#AES:IVR2)
185
186For information about available fields see [`mod@ivr2`] module*/
187pub type IVR2 = crate::Reg<ivr2::IVR2rs>;
188///initialization vector register 2
189pub mod ivr2;
190/**IVR3 (rw) register accessor: initialization vector register 3
191
192You can [`read`](crate::Reg::read) this register and get [`ivr3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ivr3::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
193
194See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L0x2.html#AES:IVR3)
195
196For information about available fields see [`mod@ivr3`] module*/
197pub type IVR3 = crate::Reg<ivr3::IVR3rs>;
198///initialization vector register 3
199pub mod ivr3;