1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
#[doc = "Register `MODEM_RST_CONF` reader"]
pub type R = crate::R<MODEM_RST_CONF_SPEC>;
#[doc = "Register `MODEM_RST_CONF` writer"]
pub type W = crate::W<MODEM_RST_CONF_SPEC>;
#[doc = "Field `RST_WIFIBB` reader - "]
pub type RST_WIFIBB_R = crate::BitReader;
#[doc = "Field `RST_WIFIBB` writer - "]
pub type RST_WIFIBB_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_WIFIMAC` reader - "]
pub type RST_WIFIMAC_R = crate::BitReader;
#[doc = "Field `RST_WIFIMAC` writer - "]
pub type RST_WIFIMAC_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_FE` reader - "]
pub type RST_FE_R = crate::BitReader;
#[doc = "Field `RST_FE` writer - "]
pub type RST_FE_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_BTMAC_APB` reader - "]
pub type RST_BTMAC_APB_R = crate::BitReader;
#[doc = "Field `RST_BTMAC_APB` writer - "]
pub type RST_BTMAC_APB_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_BTMAC` reader - "]
pub type RST_BTMAC_R = crate::BitReader;
#[doc = "Field `RST_BTMAC` writer - "]
pub type RST_BTMAC_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_BTBB_APB` reader - "]
pub type RST_BTBB_APB_R = crate::BitReader;
#[doc = "Field `RST_BTBB_APB` writer - "]
pub type RST_BTBB_APB_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_BTBB` reader - "]
pub type RST_BTBB_R = crate::BitReader;
#[doc = "Field `RST_BTBB` writer - "]
pub type RST_BTBB_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_ETM` reader - "]
pub type RST_ETM_R = crate::BitReader;
#[doc = "Field `RST_ETM` writer - "]
pub type RST_ETM_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_ZBMAC` reader - "]
pub type RST_ZBMAC_R = crate::BitReader;
#[doc = "Field `RST_ZBMAC` writer - "]
pub type RST_ZBMAC_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_MODEM_ECB` reader - "]
pub type RST_MODEM_ECB_R = crate::BitReader;
#[doc = "Field `RST_MODEM_ECB` writer - "]
pub type RST_MODEM_ECB_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_MODEM_CCM` reader - "]
pub type RST_MODEM_CCM_R = crate::BitReader;
#[doc = "Field `RST_MODEM_CCM` writer - "]
pub type RST_MODEM_CCM_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_MODEM_BAH` reader - "]
pub type RST_MODEM_BAH_R = crate::BitReader;
#[doc = "Field `RST_MODEM_BAH` writer - "]
pub type RST_MODEM_BAH_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_MODEM_SEC` reader - "]
pub type RST_MODEM_SEC_R = crate::BitReader;
#[doc = "Field `RST_MODEM_SEC` writer - "]
pub type RST_MODEM_SEC_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_BLE_TIMER` reader - "]
pub type RST_BLE_TIMER_R = crate::BitReader;
#[doc = "Field `RST_BLE_TIMER` writer - "]
pub type RST_BLE_TIMER_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RST_DATA_DUMP` reader - "]
pub type RST_DATA_DUMP_R = crate::BitReader;
#[doc = "Field `RST_DATA_DUMP` writer - "]
pub type RST_DATA_DUMP_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 8"]
    #[inline(always)]
    pub fn rst_wifibb(&self) -> RST_WIFIBB_R {
        RST_WIFIBB_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 10"]
    #[inline(always)]
    pub fn rst_wifimac(&self) -> RST_WIFIMAC_R {
        RST_WIFIMAC_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 14"]
    #[inline(always)]
    pub fn rst_fe(&self) -> RST_FE_R {
        RST_FE_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15"]
    #[inline(always)]
    pub fn rst_btmac_apb(&self) -> RST_BTMAC_APB_R {
        RST_BTMAC_APB_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16"]
    #[inline(always)]
    pub fn rst_btmac(&self) -> RST_BTMAC_R {
        RST_BTMAC_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17"]
    #[inline(always)]
    pub fn rst_btbb_apb(&self) -> RST_BTBB_APB_R {
        RST_BTBB_APB_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18"]
    #[inline(always)]
    pub fn rst_btbb(&self) -> RST_BTBB_R {
        RST_BTBB_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 22"]
    #[inline(always)]
    pub fn rst_etm(&self) -> RST_ETM_R {
        RST_ETM_R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 24"]
    #[inline(always)]
    pub fn rst_zbmac(&self) -> RST_ZBMAC_R {
        RST_ZBMAC_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25"]
    #[inline(always)]
    pub fn rst_modem_ecb(&self) -> RST_MODEM_ECB_R {
        RST_MODEM_ECB_R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26"]
    #[inline(always)]
    pub fn rst_modem_ccm(&self) -> RST_MODEM_CCM_R {
        RST_MODEM_CCM_R::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bit 27"]
    #[inline(always)]
    pub fn rst_modem_bah(&self) -> RST_MODEM_BAH_R {
        RST_MODEM_BAH_R::new(((self.bits >> 27) & 1) != 0)
    }
    #[doc = "Bit 29"]
    #[inline(always)]
    pub fn rst_modem_sec(&self) -> RST_MODEM_SEC_R {
        RST_MODEM_SEC_R::new(((self.bits >> 29) & 1) != 0)
    }
    #[doc = "Bit 30"]
    #[inline(always)]
    pub fn rst_ble_timer(&self) -> RST_BLE_TIMER_R {
        RST_BLE_TIMER_R::new(((self.bits >> 30) & 1) != 0)
    }
    #[doc = "Bit 31"]
    #[inline(always)]
    pub fn rst_data_dump(&self) -> RST_DATA_DUMP_R {
        RST_DATA_DUMP_R::new(((self.bits >> 31) & 1) != 0)
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("MODEM_RST_CONF")
            .field("rst_wifibb", &self.rst_wifibb())
            .field("rst_wifimac", &self.rst_wifimac())
            .field("rst_fe", &self.rst_fe())
            .field("rst_btmac_apb", &self.rst_btmac_apb())
            .field("rst_btmac", &self.rst_btmac())
            .field("rst_btbb_apb", &self.rst_btbb_apb())
            .field("rst_btbb", &self.rst_btbb())
            .field("rst_etm", &self.rst_etm())
            .field("rst_zbmac", &self.rst_zbmac())
            .field("rst_modem_ecb", &self.rst_modem_ecb())
            .field("rst_modem_ccm", &self.rst_modem_ccm())
            .field("rst_modem_bah", &self.rst_modem_bah())
            .field("rst_modem_sec", &self.rst_modem_sec())
            .field("rst_ble_timer", &self.rst_ble_timer())
            .field("rst_data_dump", &self.rst_data_dump())
            .finish()
    }
}
impl W {
    #[doc = "Bit 8"]
    #[inline(always)]
    #[must_use]
    pub fn rst_wifibb(&mut self) -> RST_WIFIBB_W<MODEM_RST_CONF_SPEC> {
        RST_WIFIBB_W::new(self, 8)
    }
    #[doc = "Bit 10"]
    #[inline(always)]
    #[must_use]
    pub fn rst_wifimac(&mut self) -> RST_WIFIMAC_W<MODEM_RST_CONF_SPEC> {
        RST_WIFIMAC_W::new(self, 10)
    }
    #[doc = "Bit 14"]
    #[inline(always)]
    #[must_use]
    pub fn rst_fe(&mut self) -> RST_FE_W<MODEM_RST_CONF_SPEC> {
        RST_FE_W::new(self, 14)
    }
    #[doc = "Bit 15"]
    #[inline(always)]
    #[must_use]
    pub fn rst_btmac_apb(&mut self) -> RST_BTMAC_APB_W<MODEM_RST_CONF_SPEC> {
        RST_BTMAC_APB_W::new(self, 15)
    }
    #[doc = "Bit 16"]
    #[inline(always)]
    #[must_use]
    pub fn rst_btmac(&mut self) -> RST_BTMAC_W<MODEM_RST_CONF_SPEC> {
        RST_BTMAC_W::new(self, 16)
    }
    #[doc = "Bit 17"]
    #[inline(always)]
    #[must_use]
    pub fn rst_btbb_apb(&mut self) -> RST_BTBB_APB_W<MODEM_RST_CONF_SPEC> {
        RST_BTBB_APB_W::new(self, 17)
    }
    #[doc = "Bit 18"]
    #[inline(always)]
    #[must_use]
    pub fn rst_btbb(&mut self) -> RST_BTBB_W<MODEM_RST_CONF_SPEC> {
        RST_BTBB_W::new(self, 18)
    }
    #[doc = "Bit 22"]
    #[inline(always)]
    #[must_use]
    pub fn rst_etm(&mut self) -> RST_ETM_W<MODEM_RST_CONF_SPEC> {
        RST_ETM_W::new(self, 22)
    }
    #[doc = "Bit 24"]
    #[inline(always)]
    #[must_use]
    pub fn rst_zbmac(&mut self) -> RST_ZBMAC_W<MODEM_RST_CONF_SPEC> {
        RST_ZBMAC_W::new(self, 24)
    }
    #[doc = "Bit 25"]
    #[inline(always)]
    #[must_use]
    pub fn rst_modem_ecb(&mut self) -> RST_MODEM_ECB_W<MODEM_RST_CONF_SPEC> {
        RST_MODEM_ECB_W::new(self, 25)
    }
    #[doc = "Bit 26"]
    #[inline(always)]
    #[must_use]
    pub fn rst_modem_ccm(&mut self) -> RST_MODEM_CCM_W<MODEM_RST_CONF_SPEC> {
        RST_MODEM_CCM_W::new(self, 26)
    }
    #[doc = "Bit 27"]
    #[inline(always)]
    #[must_use]
    pub fn rst_modem_bah(&mut self) -> RST_MODEM_BAH_W<MODEM_RST_CONF_SPEC> {
        RST_MODEM_BAH_W::new(self, 27)
    }
    #[doc = "Bit 29"]
    #[inline(always)]
    #[must_use]
    pub fn rst_modem_sec(&mut self) -> RST_MODEM_SEC_W<MODEM_RST_CONF_SPEC> {
        RST_MODEM_SEC_W::new(self, 29)
    }
    #[doc = "Bit 30"]
    #[inline(always)]
    #[must_use]
    pub fn rst_ble_timer(&mut self) -> RST_BLE_TIMER_W<MODEM_RST_CONF_SPEC> {
        RST_BLE_TIMER_W::new(self, 30)
    }
    #[doc = "Bit 31"]
    #[inline(always)]
    #[must_use]
    pub fn rst_data_dump(&mut self) -> RST_DATA_DUMP_W<MODEM_RST_CONF_SPEC> {
        RST_DATA_DUMP_W::new(self, 31)
    }
}
#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`modem_rst_conf::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`modem_rst_conf::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MODEM_RST_CONF_SPEC;
impl crate::RegisterSpec for MODEM_RST_CONF_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`modem_rst_conf::R`](R) reader structure"]
impl crate::Readable for MODEM_RST_CONF_SPEC {}
#[doc = "`write(|w| ..)` method takes [`modem_rst_conf::W`](W) writer structure"]
impl crate::Writable for MODEM_RST_CONF_SPEC {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets MODEM_RST_CONF to value 0"]
impl crate::Resettable for MODEM_RST_CONF_SPEC {
    const RESET_VALUE: u32 = 0;
}