esp32c6/slchost/
slc0host_int_st.rs1#[doc = "Register `SLC0HOST_INT_ST` reader"]
2pub type R = crate::R<SLC0HOST_INT_ST_SPEC>;
3#[doc = "Field `SLC0_TOHOST_BIT0_INT_ST` reader - *******Description***********"]
4pub type SLC0_TOHOST_BIT0_INT_ST_R = crate::BitReader;
5#[doc = "Field `SLC0_TOHOST_BIT1_INT_ST` reader - *******Description***********"]
6pub type SLC0_TOHOST_BIT1_INT_ST_R = crate::BitReader;
7#[doc = "Field `SLC0_TOHOST_BIT2_INT_ST` reader - *******Description***********"]
8pub type SLC0_TOHOST_BIT2_INT_ST_R = crate::BitReader;
9#[doc = "Field `SLC0_TOHOST_BIT3_INT_ST` reader - *******Description***********"]
10pub type SLC0_TOHOST_BIT3_INT_ST_R = crate::BitReader;
11#[doc = "Field `SLC0_TOHOST_BIT4_INT_ST` reader - *******Description***********"]
12pub type SLC0_TOHOST_BIT4_INT_ST_R = crate::BitReader;
13#[doc = "Field `SLC0_TOHOST_BIT5_INT_ST` reader - *******Description***********"]
14pub type SLC0_TOHOST_BIT5_INT_ST_R = crate::BitReader;
15#[doc = "Field `SLC0_TOHOST_BIT6_INT_ST` reader - *******Description***********"]
16pub type SLC0_TOHOST_BIT6_INT_ST_R = crate::BitReader;
17#[doc = "Field `SLC0_TOHOST_BIT7_INT_ST` reader - *******Description***********"]
18pub type SLC0_TOHOST_BIT7_INT_ST_R = crate::BitReader;
19#[doc = "Field `SLC0_TOKEN0_1TO0_INT_ST` reader - *******Description***********"]
20pub type SLC0_TOKEN0_1TO0_INT_ST_R = crate::BitReader;
21#[doc = "Field `SLC0_TOKEN1_1TO0_INT_ST` reader - *******Description***********"]
22pub type SLC0_TOKEN1_1TO0_INT_ST_R = crate::BitReader;
23#[doc = "Field `SLC0_TOKEN0_0TO1_INT_ST` reader - *******Description***********"]
24pub type SLC0_TOKEN0_0TO1_INT_ST_R = crate::BitReader;
25#[doc = "Field `SLC0_TOKEN1_0TO1_INT_ST` reader - *******Description***********"]
26pub type SLC0_TOKEN1_0TO1_INT_ST_R = crate::BitReader;
27#[doc = "Field `SLC0HOST_RX_SOF_INT_ST` reader - *******Description***********"]
28pub type SLC0HOST_RX_SOF_INT_ST_R = crate::BitReader;
29#[doc = "Field `SLC0HOST_RX_EOF_INT_ST` reader - *******Description***********"]
30pub type SLC0HOST_RX_EOF_INT_ST_R = crate::BitReader;
31#[doc = "Field `SLC0HOST_RX_START_INT_ST` reader - *******Description***********"]
32pub type SLC0HOST_RX_START_INT_ST_R = crate::BitReader;
33#[doc = "Field `SLC0HOST_TX_START_INT_ST` reader - *******Description***********"]
34pub type SLC0HOST_TX_START_INT_ST_R = crate::BitReader;
35#[doc = "Field `SLC0_RX_UDF_INT_ST` reader - *******Description***********"]
36pub type SLC0_RX_UDF_INT_ST_R = crate::BitReader;
37#[doc = "Field `SLC0_TX_OVF_INT_ST` reader - *******Description***********"]
38pub type SLC0_TX_OVF_INT_ST_R = crate::BitReader;
39#[doc = "Field `SLC0_RX_PF_VALID_INT_ST` reader - *******Description***********"]
40pub type SLC0_RX_PF_VALID_INT_ST_R = crate::BitReader;
41#[doc = "Field `SLC0_EXT_BIT0_INT_ST` reader - *******Description***********"]
42pub type SLC0_EXT_BIT0_INT_ST_R = crate::BitReader;
43#[doc = "Field `SLC0_EXT_BIT1_INT_ST` reader - *******Description***********"]
44pub type SLC0_EXT_BIT1_INT_ST_R = crate::BitReader;
45#[doc = "Field `SLC0_EXT_BIT2_INT_ST` reader - *******Description***********"]
46pub type SLC0_EXT_BIT2_INT_ST_R = crate::BitReader;
47#[doc = "Field `SLC0_EXT_BIT3_INT_ST` reader - *******Description***********"]
48pub type SLC0_EXT_BIT3_INT_ST_R = crate::BitReader;
49#[doc = "Field `SLC0_RX_NEW_PACKET_INT_ST` reader - *******Description***********"]
50pub type SLC0_RX_NEW_PACKET_INT_ST_R = crate::BitReader;
51#[doc = "Field `SLC0_HOST_RD_RETRY_INT_ST` reader - *******Description***********"]
52pub type SLC0_HOST_RD_RETRY_INT_ST_R = crate::BitReader;
53#[doc = "Field `GPIO_SDIO_INT_ST` reader - *******Description***********"]
54pub type GPIO_SDIO_INT_ST_R = crate::BitReader;
55impl R {
56 #[doc = "Bit 0 - *******Description***********"]
57 #[inline(always)]
58 pub fn slc0_tohost_bit0_int_st(&self) -> SLC0_TOHOST_BIT0_INT_ST_R {
59 SLC0_TOHOST_BIT0_INT_ST_R::new((self.bits & 1) != 0)
60 }
61 #[doc = "Bit 1 - *******Description***********"]
62 #[inline(always)]
63 pub fn slc0_tohost_bit1_int_st(&self) -> SLC0_TOHOST_BIT1_INT_ST_R {
64 SLC0_TOHOST_BIT1_INT_ST_R::new(((self.bits >> 1) & 1) != 0)
65 }
66 #[doc = "Bit 2 - *******Description***********"]
67 #[inline(always)]
68 pub fn slc0_tohost_bit2_int_st(&self) -> SLC0_TOHOST_BIT2_INT_ST_R {
69 SLC0_TOHOST_BIT2_INT_ST_R::new(((self.bits >> 2) & 1) != 0)
70 }
71 #[doc = "Bit 3 - *******Description***********"]
72 #[inline(always)]
73 pub fn slc0_tohost_bit3_int_st(&self) -> SLC0_TOHOST_BIT3_INT_ST_R {
74 SLC0_TOHOST_BIT3_INT_ST_R::new(((self.bits >> 3) & 1) != 0)
75 }
76 #[doc = "Bit 4 - *******Description***********"]
77 #[inline(always)]
78 pub fn slc0_tohost_bit4_int_st(&self) -> SLC0_TOHOST_BIT4_INT_ST_R {
79 SLC0_TOHOST_BIT4_INT_ST_R::new(((self.bits >> 4) & 1) != 0)
80 }
81 #[doc = "Bit 5 - *******Description***********"]
82 #[inline(always)]
83 pub fn slc0_tohost_bit5_int_st(&self) -> SLC0_TOHOST_BIT5_INT_ST_R {
84 SLC0_TOHOST_BIT5_INT_ST_R::new(((self.bits >> 5) & 1) != 0)
85 }
86 #[doc = "Bit 6 - *******Description***********"]
87 #[inline(always)]
88 pub fn slc0_tohost_bit6_int_st(&self) -> SLC0_TOHOST_BIT6_INT_ST_R {
89 SLC0_TOHOST_BIT6_INT_ST_R::new(((self.bits >> 6) & 1) != 0)
90 }
91 #[doc = "Bit 7 - *******Description***********"]
92 #[inline(always)]
93 pub fn slc0_tohost_bit7_int_st(&self) -> SLC0_TOHOST_BIT7_INT_ST_R {
94 SLC0_TOHOST_BIT7_INT_ST_R::new(((self.bits >> 7) & 1) != 0)
95 }
96 #[doc = "Bit 8 - *******Description***********"]
97 #[inline(always)]
98 pub fn slc0_token0_1to0_int_st(&self) -> SLC0_TOKEN0_1TO0_INT_ST_R {
99 SLC0_TOKEN0_1TO0_INT_ST_R::new(((self.bits >> 8) & 1) != 0)
100 }
101 #[doc = "Bit 9 - *******Description***********"]
102 #[inline(always)]
103 pub fn slc0_token1_1to0_int_st(&self) -> SLC0_TOKEN1_1TO0_INT_ST_R {
104 SLC0_TOKEN1_1TO0_INT_ST_R::new(((self.bits >> 9) & 1) != 0)
105 }
106 #[doc = "Bit 10 - *******Description***********"]
107 #[inline(always)]
108 pub fn slc0_token0_0to1_int_st(&self) -> SLC0_TOKEN0_0TO1_INT_ST_R {
109 SLC0_TOKEN0_0TO1_INT_ST_R::new(((self.bits >> 10) & 1) != 0)
110 }
111 #[doc = "Bit 11 - *******Description***********"]
112 #[inline(always)]
113 pub fn slc0_token1_0to1_int_st(&self) -> SLC0_TOKEN1_0TO1_INT_ST_R {
114 SLC0_TOKEN1_0TO1_INT_ST_R::new(((self.bits >> 11) & 1) != 0)
115 }
116 #[doc = "Bit 12 - *******Description***********"]
117 #[inline(always)]
118 pub fn slc0host_rx_sof_int_st(&self) -> SLC0HOST_RX_SOF_INT_ST_R {
119 SLC0HOST_RX_SOF_INT_ST_R::new(((self.bits >> 12) & 1) != 0)
120 }
121 #[doc = "Bit 13 - *******Description***********"]
122 #[inline(always)]
123 pub fn slc0host_rx_eof_int_st(&self) -> SLC0HOST_RX_EOF_INT_ST_R {
124 SLC0HOST_RX_EOF_INT_ST_R::new(((self.bits >> 13) & 1) != 0)
125 }
126 #[doc = "Bit 14 - *******Description***********"]
127 #[inline(always)]
128 pub fn slc0host_rx_start_int_st(&self) -> SLC0HOST_RX_START_INT_ST_R {
129 SLC0HOST_RX_START_INT_ST_R::new(((self.bits >> 14) & 1) != 0)
130 }
131 #[doc = "Bit 15 - *******Description***********"]
132 #[inline(always)]
133 pub fn slc0host_tx_start_int_st(&self) -> SLC0HOST_TX_START_INT_ST_R {
134 SLC0HOST_TX_START_INT_ST_R::new(((self.bits >> 15) & 1) != 0)
135 }
136 #[doc = "Bit 16 - *******Description***********"]
137 #[inline(always)]
138 pub fn slc0_rx_udf_int_st(&self) -> SLC0_RX_UDF_INT_ST_R {
139 SLC0_RX_UDF_INT_ST_R::new(((self.bits >> 16) & 1) != 0)
140 }
141 #[doc = "Bit 17 - *******Description***********"]
142 #[inline(always)]
143 pub fn slc0_tx_ovf_int_st(&self) -> SLC0_TX_OVF_INT_ST_R {
144 SLC0_TX_OVF_INT_ST_R::new(((self.bits >> 17) & 1) != 0)
145 }
146 #[doc = "Bit 18 - *******Description***********"]
147 #[inline(always)]
148 pub fn slc0_rx_pf_valid_int_st(&self) -> SLC0_RX_PF_VALID_INT_ST_R {
149 SLC0_RX_PF_VALID_INT_ST_R::new(((self.bits >> 18) & 1) != 0)
150 }
151 #[doc = "Bit 19 - *******Description***********"]
152 #[inline(always)]
153 pub fn slc0_ext_bit0_int_st(&self) -> SLC0_EXT_BIT0_INT_ST_R {
154 SLC0_EXT_BIT0_INT_ST_R::new(((self.bits >> 19) & 1) != 0)
155 }
156 #[doc = "Bit 20 - *******Description***********"]
157 #[inline(always)]
158 pub fn slc0_ext_bit1_int_st(&self) -> SLC0_EXT_BIT1_INT_ST_R {
159 SLC0_EXT_BIT1_INT_ST_R::new(((self.bits >> 20) & 1) != 0)
160 }
161 #[doc = "Bit 21 - *******Description***********"]
162 #[inline(always)]
163 pub fn slc0_ext_bit2_int_st(&self) -> SLC0_EXT_BIT2_INT_ST_R {
164 SLC0_EXT_BIT2_INT_ST_R::new(((self.bits >> 21) & 1) != 0)
165 }
166 #[doc = "Bit 22 - *******Description***********"]
167 #[inline(always)]
168 pub fn slc0_ext_bit3_int_st(&self) -> SLC0_EXT_BIT3_INT_ST_R {
169 SLC0_EXT_BIT3_INT_ST_R::new(((self.bits >> 22) & 1) != 0)
170 }
171 #[doc = "Bit 23 - *******Description***********"]
172 #[inline(always)]
173 pub fn slc0_rx_new_packet_int_st(&self) -> SLC0_RX_NEW_PACKET_INT_ST_R {
174 SLC0_RX_NEW_PACKET_INT_ST_R::new(((self.bits >> 23) & 1) != 0)
175 }
176 #[doc = "Bit 24 - *******Description***********"]
177 #[inline(always)]
178 pub fn slc0_host_rd_retry_int_st(&self) -> SLC0_HOST_RD_RETRY_INT_ST_R {
179 SLC0_HOST_RD_RETRY_INT_ST_R::new(((self.bits >> 24) & 1) != 0)
180 }
181 #[doc = "Bit 25 - *******Description***********"]
182 #[inline(always)]
183 pub fn gpio_sdio_int_st(&self) -> GPIO_SDIO_INT_ST_R {
184 GPIO_SDIO_INT_ST_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("SLC0HOST_INT_ST")
191 .field("slc0_tohost_bit0_int_st", &self.slc0_tohost_bit0_int_st())
192 .field("slc0_tohost_bit1_int_st", &self.slc0_tohost_bit1_int_st())
193 .field("slc0_tohost_bit2_int_st", &self.slc0_tohost_bit2_int_st())
194 .field("slc0_tohost_bit3_int_st", &self.slc0_tohost_bit3_int_st())
195 .field("slc0_tohost_bit4_int_st", &self.slc0_tohost_bit4_int_st())
196 .field("slc0_tohost_bit5_int_st", &self.slc0_tohost_bit5_int_st())
197 .field("slc0_tohost_bit6_int_st", &self.slc0_tohost_bit6_int_st())
198 .field("slc0_tohost_bit7_int_st", &self.slc0_tohost_bit7_int_st())
199 .field("slc0_token0_1to0_int_st", &self.slc0_token0_1to0_int_st())
200 .field("slc0_token1_1to0_int_st", &self.slc0_token1_1to0_int_st())
201 .field("slc0_token0_0to1_int_st", &self.slc0_token0_0to1_int_st())
202 .field("slc0_token1_0to1_int_st", &self.slc0_token1_0to1_int_st())
203 .field("slc0host_rx_sof_int_st", &self.slc0host_rx_sof_int_st())
204 .field("slc0host_rx_eof_int_st", &self.slc0host_rx_eof_int_st())
205 .field("slc0host_rx_start_int_st", &self.slc0host_rx_start_int_st())
206 .field("slc0host_tx_start_int_st", &self.slc0host_tx_start_int_st())
207 .field("slc0_rx_udf_int_st", &self.slc0_rx_udf_int_st())
208 .field("slc0_tx_ovf_int_st", &self.slc0_tx_ovf_int_st())
209 .field("slc0_rx_pf_valid_int_st", &self.slc0_rx_pf_valid_int_st())
210 .field("slc0_ext_bit0_int_st", &self.slc0_ext_bit0_int_st())
211 .field("slc0_ext_bit1_int_st", &self.slc0_ext_bit1_int_st())
212 .field("slc0_ext_bit2_int_st", &self.slc0_ext_bit2_int_st())
213 .field("slc0_ext_bit3_int_st", &self.slc0_ext_bit3_int_st())
214 .field(
215 "slc0_rx_new_packet_int_st",
216 &self.slc0_rx_new_packet_int_st(),
217 )
218 .field(
219 "slc0_host_rd_retry_int_st",
220 &self.slc0_host_rd_retry_int_st(),
221 )
222 .field("gpio_sdio_int_st", &self.gpio_sdio_int_st())
223 .finish()
224 }
225}
226#[doc = "*******Description***********\n\nYou can [`read`](crate::Reg::read) this register and get [`slc0host_int_st::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
227pub struct SLC0HOST_INT_ST_SPEC;
228impl crate::RegisterSpec for SLC0HOST_INT_ST_SPEC {
229 type Ux = u32;
230}
231#[doc = "`read()` method returns [`slc0host_int_st::R`](R) reader structure"]
232impl crate::Readable for SLC0HOST_INT_ST_SPEC {}
233#[doc = "`reset()` method sets SLC0HOST_INT_ST to value 0"]
234impl crate::Resettable for SLC0HOST_INT_ST_SPEC {
235 const RESET_VALUE: u32 = 0;
236}