bl702_pac/ef_data_1/
reg_data_1_lock.rs1#[doc = "Register `reg_data_1_lock` reader"]
2pub struct R(crate::R<REG_DATA_1_LOCK_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<REG_DATA_1_LOCK_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<REG_DATA_1_LOCK_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<REG_DATA_1_LOCK_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `reg_data_1_lock` writer"]
17pub struct W(crate::W<REG_DATA_1_LOCK_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<REG_DATA_1_LOCK_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<REG_DATA_1_LOCK_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<REG_DATA_1_LOCK_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `RESERVED_9_0` reader - "]
38pub type RESERVED_9_0_R = crate::FieldReader<u16, u16>;
39#[doc = "Field `RESERVED_9_0` writer - "]
40pub type RESERVED_9_0_W<'a, const O: u8> =
41 crate::FieldWriter<'a, u32, REG_DATA_1_LOCK_SPEC, u16, u16, 10, O>;
42#[doc = "Field `wr_lock_key_slot_6` reader - "]
43pub type WR_LOCK_KEY_SLOT_6_R = crate::BitReader<bool>;
44#[doc = "Field `wr_lock_key_slot_6` writer - "]
45pub type WR_LOCK_KEY_SLOT_6_W<'a, const O: u8> =
46 crate::BitWriter<'a, u32, REG_DATA_1_LOCK_SPEC, bool, O>;
47#[doc = "Field `wr_lock_key_slot_7` reader - "]
48pub type WR_LOCK_KEY_SLOT_7_R = crate::BitReader<bool>;
49#[doc = "Field `wr_lock_key_slot_7` writer - "]
50pub type WR_LOCK_KEY_SLOT_7_W<'a, const O: u8> =
51 crate::BitWriter<'a, u32, REG_DATA_1_LOCK_SPEC, bool, O>;
52#[doc = "Field `wr_lock_key_slot_8` reader - "]
53pub type WR_LOCK_KEY_SLOT_8_R = crate::BitReader<bool>;
54#[doc = "Field `wr_lock_key_slot_8` writer - "]
55pub type WR_LOCK_KEY_SLOT_8_W<'a, const O: u8> =
56 crate::BitWriter<'a, u32, REG_DATA_1_LOCK_SPEC, bool, O>;
57#[doc = "Field `wr_lock_key_slot_9` reader - "]
58pub type WR_LOCK_KEY_SLOT_9_R = crate::BitReader<bool>;
59#[doc = "Field `wr_lock_key_slot_9` writer - "]
60pub type WR_LOCK_KEY_SLOT_9_W<'a, const O: u8> =
61 crate::BitWriter<'a, u32, REG_DATA_1_LOCK_SPEC, bool, O>;
62#[doc = "Field `RESERVED_25_16` reader - "]
63pub type RESERVED_25_16_R = crate::FieldReader<u16, u16>;
64#[doc = "Field `RESERVED_25_16` writer - "]
65pub type RESERVED_25_16_W<'a, const O: u8> =
66 crate::FieldWriter<'a, u32, REG_DATA_1_LOCK_SPEC, u16, u16, 10, O>;
67#[doc = "Field `rd_lock_key_slot_6` reader - "]
68pub type RD_LOCK_KEY_SLOT_6_R = crate::BitReader<bool>;
69#[doc = "Field `rd_lock_key_slot_6` writer - "]
70pub type RD_LOCK_KEY_SLOT_6_W<'a, const O: u8> =
71 crate::BitWriter<'a, u32, REG_DATA_1_LOCK_SPEC, bool, O>;
72#[doc = "Field `rd_lock_key_slot_7` reader - "]
73pub type RD_LOCK_KEY_SLOT_7_R = crate::BitReader<bool>;
74#[doc = "Field `rd_lock_key_slot_7` writer - "]
75pub type RD_LOCK_KEY_SLOT_7_W<'a, const O: u8> =
76 crate::BitWriter<'a, u32, REG_DATA_1_LOCK_SPEC, bool, O>;
77#[doc = "Field `rd_lock_key_slot_8` reader - "]
78pub type RD_LOCK_KEY_SLOT_8_R = crate::BitReader<bool>;
79#[doc = "Field `rd_lock_key_slot_8` writer - "]
80pub type RD_LOCK_KEY_SLOT_8_W<'a, const O: u8> =
81 crate::BitWriter<'a, u32, REG_DATA_1_LOCK_SPEC, bool, O>;
82#[doc = "Field `rd_lock_key_slot_9` reader - "]
83pub type RD_LOCK_KEY_SLOT_9_R = crate::BitReader<bool>;
84#[doc = "Field `rd_lock_key_slot_9` writer - "]
85pub type RD_LOCK_KEY_SLOT_9_W<'a, const O: u8> =
86 crate::BitWriter<'a, u32, REG_DATA_1_LOCK_SPEC, bool, O>;
87impl R {
88 #[doc = "Bits 0:9"]
89 #[inline(always)]
90 pub fn reserved_9_0(&self) -> RESERVED_9_0_R {
91 RESERVED_9_0_R::new((self.bits & 0x03ff) as u16)
92 }
93 #[doc = "Bit 10"]
94 #[inline(always)]
95 pub fn wr_lock_key_slot_6(&self) -> WR_LOCK_KEY_SLOT_6_R {
96 WR_LOCK_KEY_SLOT_6_R::new(((self.bits >> 10) & 1) != 0)
97 }
98 #[doc = "Bit 11"]
99 #[inline(always)]
100 pub fn wr_lock_key_slot_7(&self) -> WR_LOCK_KEY_SLOT_7_R {
101 WR_LOCK_KEY_SLOT_7_R::new(((self.bits >> 11) & 1) != 0)
102 }
103 #[doc = "Bit 12"]
104 #[inline(always)]
105 pub fn wr_lock_key_slot_8(&self) -> WR_LOCK_KEY_SLOT_8_R {
106 WR_LOCK_KEY_SLOT_8_R::new(((self.bits >> 12) & 1) != 0)
107 }
108 #[doc = "Bit 13"]
109 #[inline(always)]
110 pub fn wr_lock_key_slot_9(&self) -> WR_LOCK_KEY_SLOT_9_R {
111 WR_LOCK_KEY_SLOT_9_R::new(((self.bits >> 13) & 1) != 0)
112 }
113 #[doc = "Bits 16:25"]
114 #[inline(always)]
115 pub fn reserved_25_16(&self) -> RESERVED_25_16_R {
116 RESERVED_25_16_R::new(((self.bits >> 16) & 0x03ff) as u16)
117 }
118 #[doc = "Bit 26"]
119 #[inline(always)]
120 pub fn rd_lock_key_slot_6(&self) -> RD_LOCK_KEY_SLOT_6_R {
121 RD_LOCK_KEY_SLOT_6_R::new(((self.bits >> 26) & 1) != 0)
122 }
123 #[doc = "Bit 27"]
124 #[inline(always)]
125 pub fn rd_lock_key_slot_7(&self) -> RD_LOCK_KEY_SLOT_7_R {
126 RD_LOCK_KEY_SLOT_7_R::new(((self.bits >> 27) & 1) != 0)
127 }
128 #[doc = "Bit 28"]
129 #[inline(always)]
130 pub fn rd_lock_key_slot_8(&self) -> RD_LOCK_KEY_SLOT_8_R {
131 RD_LOCK_KEY_SLOT_8_R::new(((self.bits >> 28) & 1) != 0)
132 }
133 #[doc = "Bit 29"]
134 #[inline(always)]
135 pub fn rd_lock_key_slot_9(&self) -> RD_LOCK_KEY_SLOT_9_R {
136 RD_LOCK_KEY_SLOT_9_R::new(((self.bits >> 29) & 1) != 0)
137 }
138}
139impl W {
140 #[doc = "Bits 0:9"]
141 #[inline(always)]
142 #[must_use]
143 pub fn reserved_9_0(&mut self) -> RESERVED_9_0_W<0> {
144 RESERVED_9_0_W::new(self)
145 }
146 #[doc = "Bit 10"]
147 #[inline(always)]
148 #[must_use]
149 pub fn wr_lock_key_slot_6(&mut self) -> WR_LOCK_KEY_SLOT_6_W<10> {
150 WR_LOCK_KEY_SLOT_6_W::new(self)
151 }
152 #[doc = "Bit 11"]
153 #[inline(always)]
154 #[must_use]
155 pub fn wr_lock_key_slot_7(&mut self) -> WR_LOCK_KEY_SLOT_7_W<11> {
156 WR_LOCK_KEY_SLOT_7_W::new(self)
157 }
158 #[doc = "Bit 12"]
159 #[inline(always)]
160 #[must_use]
161 pub fn wr_lock_key_slot_8(&mut self) -> WR_LOCK_KEY_SLOT_8_W<12> {
162 WR_LOCK_KEY_SLOT_8_W::new(self)
163 }
164 #[doc = "Bit 13"]
165 #[inline(always)]
166 #[must_use]
167 pub fn wr_lock_key_slot_9(&mut self) -> WR_LOCK_KEY_SLOT_9_W<13> {
168 WR_LOCK_KEY_SLOT_9_W::new(self)
169 }
170 #[doc = "Bits 16:25"]
171 #[inline(always)]
172 #[must_use]
173 pub fn reserved_25_16(&mut self) -> RESERVED_25_16_W<16> {
174 RESERVED_25_16_W::new(self)
175 }
176 #[doc = "Bit 26"]
177 #[inline(always)]
178 #[must_use]
179 pub fn rd_lock_key_slot_6(&mut self) -> RD_LOCK_KEY_SLOT_6_W<26> {
180 RD_LOCK_KEY_SLOT_6_W::new(self)
181 }
182 #[doc = "Bit 27"]
183 #[inline(always)]
184 #[must_use]
185 pub fn rd_lock_key_slot_7(&mut self) -> RD_LOCK_KEY_SLOT_7_W<27> {
186 RD_LOCK_KEY_SLOT_7_W::new(self)
187 }
188 #[doc = "Bit 28"]
189 #[inline(always)]
190 #[must_use]
191 pub fn rd_lock_key_slot_8(&mut self) -> RD_LOCK_KEY_SLOT_8_W<28> {
192 RD_LOCK_KEY_SLOT_8_W::new(self)
193 }
194 #[doc = "Bit 29"]
195 #[inline(always)]
196 #[must_use]
197 pub fn rd_lock_key_slot_9(&mut self) -> RD_LOCK_KEY_SLOT_9_W<29> {
198 RD_LOCK_KEY_SLOT_9_W::new(self)
199 }
200 #[doc = "Writes raw bits to the register."]
201 #[inline(always)]
202 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
203 self.0.bits(bits);
204 self
205 }
206}
207#[doc = "reg_data_1_lock.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [reg_data_1_lock](index.html) module"]
208pub struct REG_DATA_1_LOCK_SPEC;
209impl crate::RegisterSpec for REG_DATA_1_LOCK_SPEC {
210 type Ux = u32;
211}
212#[doc = "`read()` method returns [reg_data_1_lock::R](R) reader structure"]
213impl crate::Readable for REG_DATA_1_LOCK_SPEC {
214 type Reader = R;
215}
216#[doc = "`write(|w| ..)` method takes [reg_data_1_lock::W](W) writer structure"]
217impl crate::Writable for REG_DATA_1_LOCK_SPEC {
218 type Writer = W;
219 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
220 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
221}
222#[doc = "`reset()` method sets reg_data_1_lock to value 0"]
223impl crate::Resettable for REG_DATA_1_LOCK_SPEC {
224 const RESET_VALUE: Self::Ux = 0;
225}