esp32/slchost/
host_slc0host_int_raw.rs1#[doc = "Register `HOST_SLC0HOST_INT_RAW` reader"]
2pub type R = crate::R<HOST_SLC0HOST_INT_RAW_SPEC>;
3#[doc = "Field `HOST_SLC0_TOHOST_BIT0_INT_RAW` reader - "]
4pub type HOST_SLC0_TOHOST_BIT0_INT_RAW_R = crate::BitReader;
5#[doc = "Field `HOST_SLC0_TOHOST_BIT1_INT_RAW` reader - "]
6pub type HOST_SLC0_TOHOST_BIT1_INT_RAW_R = crate::BitReader;
7#[doc = "Field `HOST_SLC0_TOHOST_BIT2_INT_RAW` reader - "]
8pub type HOST_SLC0_TOHOST_BIT2_INT_RAW_R = crate::BitReader;
9#[doc = "Field `HOST_SLC0_TOHOST_BIT3_INT_RAW` reader - "]
10pub type HOST_SLC0_TOHOST_BIT3_INT_RAW_R = crate::BitReader;
11#[doc = "Field `HOST_SLC0_TOHOST_BIT4_INT_RAW` reader - "]
12pub type HOST_SLC0_TOHOST_BIT4_INT_RAW_R = crate::BitReader;
13#[doc = "Field `HOST_SLC0_TOHOST_BIT5_INT_RAW` reader - "]
14pub type HOST_SLC0_TOHOST_BIT5_INT_RAW_R = crate::BitReader;
15#[doc = "Field `HOST_SLC0_TOHOST_BIT6_INT_RAW` reader - "]
16pub type HOST_SLC0_TOHOST_BIT6_INT_RAW_R = crate::BitReader;
17#[doc = "Field `HOST_SLC0_TOHOST_BIT7_INT_RAW` reader - "]
18pub type HOST_SLC0_TOHOST_BIT7_INT_RAW_R = crate::BitReader;
19#[doc = "Field `HOST_SLC0_TOKEN0_1TO0_INT_RAW` reader - "]
20pub type HOST_SLC0_TOKEN0_1TO0_INT_RAW_R = crate::BitReader;
21#[doc = "Field `HOST_SLC0_TOKEN1_1TO0_INT_RAW` reader - "]
22pub type HOST_SLC0_TOKEN1_1TO0_INT_RAW_R = crate::BitReader;
23#[doc = "Field `HOST_SLC0_TOKEN0_0TO1_INT_RAW` reader - "]
24pub type HOST_SLC0_TOKEN0_0TO1_INT_RAW_R = crate::BitReader;
25#[doc = "Field `HOST_SLC0_TOKEN1_0TO1_INT_RAW` reader - "]
26pub type HOST_SLC0_TOKEN1_0TO1_INT_RAW_R = crate::BitReader;
27#[doc = "Field `HOST_SLC0HOST_RX_SOF_INT_RAW` reader - "]
28pub type HOST_SLC0HOST_RX_SOF_INT_RAW_R = crate::BitReader;
29#[doc = "Field `HOST_SLC0HOST_RX_EOF_INT_RAW` reader - "]
30pub type HOST_SLC0HOST_RX_EOF_INT_RAW_R = crate::BitReader;
31#[doc = "Field `HOST_SLC0HOST_RX_START_INT_RAW` reader - "]
32pub type HOST_SLC0HOST_RX_START_INT_RAW_R = crate::BitReader;
33#[doc = "Field `HOST_SLC0HOST_TX_START_INT_RAW` reader - "]
34pub type HOST_SLC0HOST_TX_START_INT_RAW_R = crate::BitReader;
35#[doc = "Field `HOST_SLC0_RX_UDF_INT_RAW` reader - "]
36pub type HOST_SLC0_RX_UDF_INT_RAW_R = crate::BitReader;
37#[doc = "Field `HOST_SLC0_TX_OVF_INT_RAW` reader - "]
38pub type HOST_SLC0_TX_OVF_INT_RAW_R = crate::BitReader;
39#[doc = "Field `HOST_SLC0_RX_PF_VALID_INT_RAW` reader - "]
40pub type HOST_SLC0_RX_PF_VALID_INT_RAW_R = crate::BitReader;
41#[doc = "Field `HOST_SLC0_EXT_BIT0_INT_RAW` reader - "]
42pub type HOST_SLC0_EXT_BIT0_INT_RAW_R = crate::BitReader;
43#[doc = "Field `HOST_SLC0_EXT_BIT1_INT_RAW` reader - "]
44pub type HOST_SLC0_EXT_BIT1_INT_RAW_R = crate::BitReader;
45#[doc = "Field `HOST_SLC0_EXT_BIT2_INT_RAW` reader - "]
46pub type HOST_SLC0_EXT_BIT2_INT_RAW_R = crate::BitReader;
47#[doc = "Field `HOST_SLC0_EXT_BIT3_INT_RAW` reader - "]
48pub type HOST_SLC0_EXT_BIT3_INT_RAW_R = crate::BitReader;
49#[doc = "Field `HOST_SLC0_RX_NEW_PACKET_INT_RAW` reader - "]
50pub type HOST_SLC0_RX_NEW_PACKET_INT_RAW_R = crate::BitReader;
51#[doc = "Field `HOST_SLC0_HOST_RD_RETRY_INT_RAW` reader - "]
52pub type HOST_SLC0_HOST_RD_RETRY_INT_RAW_R = crate::BitReader;
53#[doc = "Field `HOST_GPIO_SDIO_INT_RAW` reader - "]
54pub type HOST_GPIO_SDIO_INT_RAW_R = crate::BitReader;
55impl R {
56 #[doc = "Bit 0"]
57 #[inline(always)]
58 pub fn host_slc0_tohost_bit0_int_raw(&self) -> HOST_SLC0_TOHOST_BIT0_INT_RAW_R {
59 HOST_SLC0_TOHOST_BIT0_INT_RAW_R::new((self.bits & 1) != 0)
60 }
61 #[doc = "Bit 1"]
62 #[inline(always)]
63 pub fn host_slc0_tohost_bit1_int_raw(&self) -> HOST_SLC0_TOHOST_BIT1_INT_RAW_R {
64 HOST_SLC0_TOHOST_BIT1_INT_RAW_R::new(((self.bits >> 1) & 1) != 0)
65 }
66 #[doc = "Bit 2"]
67 #[inline(always)]
68 pub fn host_slc0_tohost_bit2_int_raw(&self) -> HOST_SLC0_TOHOST_BIT2_INT_RAW_R {
69 HOST_SLC0_TOHOST_BIT2_INT_RAW_R::new(((self.bits >> 2) & 1) != 0)
70 }
71 #[doc = "Bit 3"]
72 #[inline(always)]
73 pub fn host_slc0_tohost_bit3_int_raw(&self) -> HOST_SLC0_TOHOST_BIT3_INT_RAW_R {
74 HOST_SLC0_TOHOST_BIT3_INT_RAW_R::new(((self.bits >> 3) & 1) != 0)
75 }
76 #[doc = "Bit 4"]
77 #[inline(always)]
78 pub fn host_slc0_tohost_bit4_int_raw(&self) -> HOST_SLC0_TOHOST_BIT4_INT_RAW_R {
79 HOST_SLC0_TOHOST_BIT4_INT_RAW_R::new(((self.bits >> 4) & 1) != 0)
80 }
81 #[doc = "Bit 5"]
82 #[inline(always)]
83 pub fn host_slc0_tohost_bit5_int_raw(&self) -> HOST_SLC0_TOHOST_BIT5_INT_RAW_R {
84 HOST_SLC0_TOHOST_BIT5_INT_RAW_R::new(((self.bits >> 5) & 1) != 0)
85 }
86 #[doc = "Bit 6"]
87 #[inline(always)]
88 pub fn host_slc0_tohost_bit6_int_raw(&self) -> HOST_SLC0_TOHOST_BIT6_INT_RAW_R {
89 HOST_SLC0_TOHOST_BIT6_INT_RAW_R::new(((self.bits >> 6) & 1) != 0)
90 }
91 #[doc = "Bit 7"]
92 #[inline(always)]
93 pub fn host_slc0_tohost_bit7_int_raw(&self) -> HOST_SLC0_TOHOST_BIT7_INT_RAW_R {
94 HOST_SLC0_TOHOST_BIT7_INT_RAW_R::new(((self.bits >> 7) & 1) != 0)
95 }
96 #[doc = "Bit 8"]
97 #[inline(always)]
98 pub fn host_slc0_token0_1to0_int_raw(&self) -> HOST_SLC0_TOKEN0_1TO0_INT_RAW_R {
99 HOST_SLC0_TOKEN0_1TO0_INT_RAW_R::new(((self.bits >> 8) & 1) != 0)
100 }
101 #[doc = "Bit 9"]
102 #[inline(always)]
103 pub fn host_slc0_token1_1to0_int_raw(&self) -> HOST_SLC0_TOKEN1_1TO0_INT_RAW_R {
104 HOST_SLC0_TOKEN1_1TO0_INT_RAW_R::new(((self.bits >> 9) & 1) != 0)
105 }
106 #[doc = "Bit 10"]
107 #[inline(always)]
108 pub fn host_slc0_token0_0to1_int_raw(&self) -> HOST_SLC0_TOKEN0_0TO1_INT_RAW_R {
109 HOST_SLC0_TOKEN0_0TO1_INT_RAW_R::new(((self.bits >> 10) & 1) != 0)
110 }
111 #[doc = "Bit 11"]
112 #[inline(always)]
113 pub fn host_slc0_token1_0to1_int_raw(&self) -> HOST_SLC0_TOKEN1_0TO1_INT_RAW_R {
114 HOST_SLC0_TOKEN1_0TO1_INT_RAW_R::new(((self.bits >> 11) & 1) != 0)
115 }
116 #[doc = "Bit 12"]
117 #[inline(always)]
118 pub fn host_slc0host_rx_sof_int_raw(&self) -> HOST_SLC0HOST_RX_SOF_INT_RAW_R {
119 HOST_SLC0HOST_RX_SOF_INT_RAW_R::new(((self.bits >> 12) & 1) != 0)
120 }
121 #[doc = "Bit 13"]
122 #[inline(always)]
123 pub fn host_slc0host_rx_eof_int_raw(&self) -> HOST_SLC0HOST_RX_EOF_INT_RAW_R {
124 HOST_SLC0HOST_RX_EOF_INT_RAW_R::new(((self.bits >> 13) & 1) != 0)
125 }
126 #[doc = "Bit 14"]
127 #[inline(always)]
128 pub fn host_slc0host_rx_start_int_raw(&self) -> HOST_SLC0HOST_RX_START_INT_RAW_R {
129 HOST_SLC0HOST_RX_START_INT_RAW_R::new(((self.bits >> 14) & 1) != 0)
130 }
131 #[doc = "Bit 15"]
132 #[inline(always)]
133 pub fn host_slc0host_tx_start_int_raw(&self) -> HOST_SLC0HOST_TX_START_INT_RAW_R {
134 HOST_SLC0HOST_TX_START_INT_RAW_R::new(((self.bits >> 15) & 1) != 0)
135 }
136 #[doc = "Bit 16"]
137 #[inline(always)]
138 pub fn host_slc0_rx_udf_int_raw(&self) -> HOST_SLC0_RX_UDF_INT_RAW_R {
139 HOST_SLC0_RX_UDF_INT_RAW_R::new(((self.bits >> 16) & 1) != 0)
140 }
141 #[doc = "Bit 17"]
142 #[inline(always)]
143 pub fn host_slc0_tx_ovf_int_raw(&self) -> HOST_SLC0_TX_OVF_INT_RAW_R {
144 HOST_SLC0_TX_OVF_INT_RAW_R::new(((self.bits >> 17) & 1) != 0)
145 }
146 #[doc = "Bit 18"]
147 #[inline(always)]
148 pub fn host_slc0_rx_pf_valid_int_raw(&self) -> HOST_SLC0_RX_PF_VALID_INT_RAW_R {
149 HOST_SLC0_RX_PF_VALID_INT_RAW_R::new(((self.bits >> 18) & 1) != 0)
150 }
151 #[doc = "Bit 19"]
152 #[inline(always)]
153 pub fn host_slc0_ext_bit0_int_raw(&self) -> HOST_SLC0_EXT_BIT0_INT_RAW_R {
154 HOST_SLC0_EXT_BIT0_INT_RAW_R::new(((self.bits >> 19) & 1) != 0)
155 }
156 #[doc = "Bit 20"]
157 #[inline(always)]
158 pub fn host_slc0_ext_bit1_int_raw(&self) -> HOST_SLC0_EXT_BIT1_INT_RAW_R {
159 HOST_SLC0_EXT_BIT1_INT_RAW_R::new(((self.bits >> 20) & 1) != 0)
160 }
161 #[doc = "Bit 21"]
162 #[inline(always)]
163 pub fn host_slc0_ext_bit2_int_raw(&self) -> HOST_SLC0_EXT_BIT2_INT_RAW_R {
164 HOST_SLC0_EXT_BIT2_INT_RAW_R::new(((self.bits >> 21) & 1) != 0)
165 }
166 #[doc = "Bit 22"]
167 #[inline(always)]
168 pub fn host_slc0_ext_bit3_int_raw(&self) -> HOST_SLC0_EXT_BIT3_INT_RAW_R {
169 HOST_SLC0_EXT_BIT3_INT_RAW_R::new(((self.bits >> 22) & 1) != 0)
170 }
171 #[doc = "Bit 23"]
172 #[inline(always)]
173 pub fn host_slc0_rx_new_packet_int_raw(&self) -> HOST_SLC0_RX_NEW_PACKET_INT_RAW_R {
174 HOST_SLC0_RX_NEW_PACKET_INT_RAW_R::new(((self.bits >> 23) & 1) != 0)
175 }
176 #[doc = "Bit 24"]
177 #[inline(always)]
178 pub fn host_slc0_host_rd_retry_int_raw(&self) -> HOST_SLC0_HOST_RD_RETRY_INT_RAW_R {
179 HOST_SLC0_HOST_RD_RETRY_INT_RAW_R::new(((self.bits >> 24) & 1) != 0)
180 }
181 #[doc = "Bit 25"]
182 #[inline(always)]
183 pub fn host_gpio_sdio_int_raw(&self) -> HOST_GPIO_SDIO_INT_RAW_R {
184 HOST_GPIO_SDIO_INT_RAW_R::new(((self.bits >> 25) & 1) != 0)
185 }
186}
187#[cfg(feature = "impl-register-debug")]
188impl core::fmt::Debug for R {
189 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
190 f.debug_struct("HOST_SLC0HOST_INT_RAW")
191 .field(
192 "host_slc0_tohost_bit0_int_raw",
193 &self.host_slc0_tohost_bit0_int_raw(),
194 )
195 .field(
196 "host_slc0_tohost_bit1_int_raw",
197 &self.host_slc0_tohost_bit1_int_raw(),
198 )
199 .field(
200 "host_slc0_tohost_bit2_int_raw",
201 &self.host_slc0_tohost_bit2_int_raw(),
202 )
203 .field(
204 "host_slc0_tohost_bit3_int_raw",
205 &self.host_slc0_tohost_bit3_int_raw(),
206 )
207 .field(
208 "host_slc0_tohost_bit4_int_raw",
209 &self.host_slc0_tohost_bit4_int_raw(),
210 )
211 .field(
212 "host_slc0_tohost_bit5_int_raw",
213 &self.host_slc0_tohost_bit5_int_raw(),
214 )
215 .field(
216 "host_slc0_tohost_bit6_int_raw",
217 &self.host_slc0_tohost_bit6_int_raw(),
218 )
219 .field(
220 "host_slc0_tohost_bit7_int_raw",
221 &self.host_slc0_tohost_bit7_int_raw(),
222 )
223 .field(
224 "host_slc0_token0_1to0_int_raw",
225 &self.host_slc0_token0_1to0_int_raw(),
226 )
227 .field(
228 "host_slc0_token1_1to0_int_raw",
229 &self.host_slc0_token1_1to0_int_raw(),
230 )
231 .field(
232 "host_slc0_token0_0to1_int_raw",
233 &self.host_slc0_token0_0to1_int_raw(),
234 )
235 .field(
236 "host_slc0_token1_0to1_int_raw",
237 &self.host_slc0_token1_0to1_int_raw(),
238 )
239 .field(
240 "host_slc0host_rx_sof_int_raw",
241 &self.host_slc0host_rx_sof_int_raw(),
242 )
243 .field(
244 "host_slc0host_rx_eof_int_raw",
245 &self.host_slc0host_rx_eof_int_raw(),
246 )
247 .field(
248 "host_slc0host_rx_start_int_raw",
249 &self.host_slc0host_rx_start_int_raw(),
250 )
251 .field(
252 "host_slc0host_tx_start_int_raw",
253 &self.host_slc0host_tx_start_int_raw(),
254 )
255 .field("host_slc0_rx_udf_int_raw", &self.host_slc0_rx_udf_int_raw())
256 .field("host_slc0_tx_ovf_int_raw", &self.host_slc0_tx_ovf_int_raw())
257 .field(
258 "host_slc0_rx_pf_valid_int_raw",
259 &self.host_slc0_rx_pf_valid_int_raw(),
260 )
261 .field(
262 "host_slc0_ext_bit0_int_raw",
263 &self.host_slc0_ext_bit0_int_raw(),
264 )
265 .field(
266 "host_slc0_ext_bit1_int_raw",
267 &self.host_slc0_ext_bit1_int_raw(),
268 )
269 .field(
270 "host_slc0_ext_bit2_int_raw",
271 &self.host_slc0_ext_bit2_int_raw(),
272 )
273 .field(
274 "host_slc0_ext_bit3_int_raw",
275 &self.host_slc0_ext_bit3_int_raw(),
276 )
277 .field(
278 "host_slc0_rx_new_packet_int_raw",
279 &self.host_slc0_rx_new_packet_int_raw(),
280 )
281 .field(
282 "host_slc0_host_rd_retry_int_raw",
283 &self.host_slc0_host_rd_retry_int_raw(),
284 )
285 .field("host_gpio_sdio_int_raw", &self.host_gpio_sdio_int_raw())
286 .finish()
287 }
288}
289#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`host_slc0host_int_raw::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
290pub struct HOST_SLC0HOST_INT_RAW_SPEC;
291impl crate::RegisterSpec for HOST_SLC0HOST_INT_RAW_SPEC {
292 type Ux = u32;
293}
294#[doc = "`read()` method returns [`host_slc0host_int_raw::R`](R) reader structure"]
295impl crate::Readable for HOST_SLC0HOST_INT_RAW_SPEC {}
296#[doc = "`reset()` method sets HOST_SLC0HOST_INT_RAW to value 0"]
297impl crate::Resettable for HOST_SLC0HOST_INT_RAW_SPEC {}