1#[doc = "Register `SSISCR` reader"]
2pub struct R(crate::R<SSISCR_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<SSISCR_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<SSISCR_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<SSISCR_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `SSISCR` writer"]
17pub struct W(crate::W<SSISCR_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<SSISCR_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<SSISCR_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<SSISCR_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `RDFS` reader - RDF Setting Condition Select"]
38pub type RDFS_R = crate::FieldReader<u8, RDFS_A>;
39#[doc = "RDF Setting Condition Select\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41#[repr(u8)]
42pub enum RDFS_A {
43 #[doc = "0: SSIFRDR has one stage or more data size"]
44 _000 = 0,
45 #[doc = "1: SSIFRDR has two stages or more data size (snip)"]
46 _001 = 1,
47 #[doc = "6: SSIFRDR has seven stages or more data size"]
48 _110 = 6,
49 #[doc = "7: SSIFRDR has eight stages or more data size."]
50 _111 = 7,
51}
52impl From<RDFS_A> for u8 {
53 #[inline(always)]
54 fn from(variant: RDFS_A) -> Self {
55 variant as _
56 }
57}
58impl RDFS_R {
59 #[doc = "Get enumerated values variant"]
60 #[inline(always)]
61 pub fn variant(&self) -> Option<RDFS_A> {
62 match self.bits {
63 0 => Some(RDFS_A::_000),
64 1 => Some(RDFS_A::_001),
65 6 => Some(RDFS_A::_110),
66 7 => Some(RDFS_A::_111),
67 _ => None,
68 }
69 }
70 #[doc = "Checks if the value of the field is `_000`"]
71 #[inline(always)]
72 pub fn is_000(&self) -> bool {
73 *self == RDFS_A::_000
74 }
75 #[doc = "Checks if the value of the field is `_001`"]
76 #[inline(always)]
77 pub fn is_001(&self) -> bool {
78 *self == RDFS_A::_001
79 }
80 #[doc = "Checks if the value of the field is `_110`"]
81 #[inline(always)]
82 pub fn is_110(&self) -> bool {
83 *self == RDFS_A::_110
84 }
85 #[doc = "Checks if the value of the field is `_111`"]
86 #[inline(always)]
87 pub fn is_111(&self) -> bool {
88 *self == RDFS_A::_111
89 }
90}
91#[doc = "Field `RDFS` writer - RDF Setting Condition Select"]
92pub type RDFS_W<'a, const O: u8> = crate::FieldWriter<'a, u32, SSISCR_SPEC, u8, RDFS_A, 3, O>;
93impl<'a, const O: u8> RDFS_W<'a, O> {
94 #[doc = "SSIFRDR has one stage or more data size"]
95 #[inline(always)]
96 pub fn _000(self) -> &'a mut W {
97 self.variant(RDFS_A::_000)
98 }
99 #[doc = "SSIFRDR has two stages or more data size (snip)"]
100 #[inline(always)]
101 pub fn _001(self) -> &'a mut W {
102 self.variant(RDFS_A::_001)
103 }
104 #[doc = "SSIFRDR has seven stages or more data size"]
105 #[inline(always)]
106 pub fn _110(self) -> &'a mut W {
107 self.variant(RDFS_A::_110)
108 }
109 #[doc = "SSIFRDR has eight stages or more data size."]
110 #[inline(always)]
111 pub fn _111(self) -> &'a mut W {
112 self.variant(RDFS_A::_111)
113 }
114}
115#[doc = "Field `TDES` reader - TDE Setting Condition Select"]
116pub type TDES_R = crate::FieldReader<u8, TDES_A>;
117#[doc = "TDE Setting Condition Select\n\nValue on reset: 0"]
118#[derive(Clone, Copy, Debug, PartialEq, Eq)]
119#[repr(u8)]
120pub enum TDES_A {
121 #[doc = "0: SSIFTDR has one stage or more free space"]
122 _000 = 0,
123 #[doc = "1: SSIFTDR has two stages or more free space (snip)"]
124 _001 = 1,
125 #[doc = "6: SSIFTDR has seven stages or more free space"]
126 _110 = 6,
127 #[doc = "7: SSIFTDR has eight stages or more free space."]
128 _111 = 7,
129}
130impl From<TDES_A> for u8 {
131 #[inline(always)]
132 fn from(variant: TDES_A) -> Self {
133 variant as _
134 }
135}
136impl TDES_R {
137 #[doc = "Get enumerated values variant"]
138 #[inline(always)]
139 pub fn variant(&self) -> Option<TDES_A> {
140 match self.bits {
141 0 => Some(TDES_A::_000),
142 1 => Some(TDES_A::_001),
143 6 => Some(TDES_A::_110),
144 7 => Some(TDES_A::_111),
145 _ => None,
146 }
147 }
148 #[doc = "Checks if the value of the field is `_000`"]
149 #[inline(always)]
150 pub fn is_000(&self) -> bool {
151 *self == TDES_A::_000
152 }
153 #[doc = "Checks if the value of the field is `_001`"]
154 #[inline(always)]
155 pub fn is_001(&self) -> bool {
156 *self == TDES_A::_001
157 }
158 #[doc = "Checks if the value of the field is `_110`"]
159 #[inline(always)]
160 pub fn is_110(&self) -> bool {
161 *self == TDES_A::_110
162 }
163 #[doc = "Checks if the value of the field is `_111`"]
164 #[inline(always)]
165 pub fn is_111(&self) -> bool {
166 *self == TDES_A::_111
167 }
168}
169#[doc = "Field `TDES` writer - TDE Setting Condition Select"]
170pub type TDES_W<'a, const O: u8> = crate::FieldWriter<'a, u32, SSISCR_SPEC, u8, TDES_A, 3, O>;
171impl<'a, const O: u8> TDES_W<'a, O> {
172 #[doc = "SSIFTDR has one stage or more free space"]
173 #[inline(always)]
174 pub fn _000(self) -> &'a mut W {
175 self.variant(TDES_A::_000)
176 }
177 #[doc = "SSIFTDR has two stages or more free space (snip)"]
178 #[inline(always)]
179 pub fn _001(self) -> &'a mut W {
180 self.variant(TDES_A::_001)
181 }
182 #[doc = "SSIFTDR has seven stages or more free space"]
183 #[inline(always)]
184 pub fn _110(self) -> &'a mut W {
185 self.variant(TDES_A::_110)
186 }
187 #[doc = "SSIFTDR has eight stages or more free space."]
188 #[inline(always)]
189 pub fn _111(self) -> &'a mut W {
190 self.variant(TDES_A::_111)
191 }
192}
193impl R {
194 #[doc = "Bits 0:2 - RDF Setting Condition Select"]
195 #[inline(always)]
196 pub fn rdfs(&self) -> RDFS_R {
197 RDFS_R::new((self.bits & 7) as u8)
198 }
199 #[doc = "Bits 8:10 - TDE Setting Condition Select"]
200 #[inline(always)]
201 pub fn tdes(&self) -> TDES_R {
202 TDES_R::new(((self.bits >> 8) & 7) as u8)
203 }
204}
205impl W {
206 #[doc = "Bits 0:2 - RDF Setting Condition Select"]
207 #[inline(always)]
208 #[must_use]
209 pub fn rdfs(&mut self) -> RDFS_W<0> {
210 RDFS_W::new(self)
211 }
212 #[doc = "Bits 8:10 - TDE Setting Condition Select"]
213 #[inline(always)]
214 #[must_use]
215 pub fn tdes(&mut self) -> TDES_W<8> {
216 TDES_W::new(self)
217 }
218 #[doc = "Writes raw bits to the register."]
219 #[inline(always)]
220 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
221 self.0.bits(bits);
222 self
223 }
224}
225#[doc = "Status Control Register\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 [ssiscr](index.html) module"]
226pub struct SSISCR_SPEC;
227impl crate::RegisterSpec for SSISCR_SPEC {
228 type Ux = u32;
229}
230#[doc = "`read()` method returns [ssiscr::R](R) reader structure"]
231impl crate::Readable for SSISCR_SPEC {
232 type Reader = R;
233}
234#[doc = "`write(|w| ..)` method takes [ssiscr::W](W) writer structure"]
235impl crate::Writable for SSISCR_SPEC {
236 type Writer = W;
237 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
238 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
239}
240#[doc = "`reset()` method sets SSISCR to value 0"]
241impl crate::Resettable for SSISCR_SPEC {
242 const RESET_VALUE: Self::Ux = 0;
243}