esp32c3/rtc_cntl/
usb_conf.rs1#[doc = "Register `USB_CONF` reader"]
2pub type R = crate::R<USB_CONF_SPEC>;
3#[doc = "Register `USB_CONF` writer"]
4pub type W = crate::W<USB_CONF_SPEC>;
5#[doc = "Field `IO_MUX_RESET_DISABLE` reader - disable io_mux reset"]
6pub type IO_MUX_RESET_DISABLE_R = crate::BitReader;
7#[doc = "Field `IO_MUX_RESET_DISABLE` writer - disable io_mux reset"]
8pub type IO_MUX_RESET_DISABLE_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10 #[doc = "Bit 18 - disable io_mux reset"]
11 #[inline(always)]
12 pub fn io_mux_reset_disable(&self) -> IO_MUX_RESET_DISABLE_R {
13 IO_MUX_RESET_DISABLE_R::new(((self.bits >> 18) & 1) != 0)
14 }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("USB_CONF")
20 .field("io_mux_reset_disable", &self.io_mux_reset_disable())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bit 18 - disable io_mux reset"]
26 #[inline(always)]
27 pub fn io_mux_reset_disable(&mut self) -> IO_MUX_RESET_DISABLE_W<USB_CONF_SPEC> {
28 IO_MUX_RESET_DISABLE_W::new(self, 18)
29 }
30}
31#[doc = "rtc configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`usb_conf::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`usb_conf::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct USB_CONF_SPEC;
33impl crate::RegisterSpec for USB_CONF_SPEC {
34 type Ux = u32;
35}
36#[doc = "`read()` method returns [`usb_conf::R`](R) reader structure"]
37impl crate::Readable for USB_CONF_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`usb_conf::W`](W) writer structure"]
39impl crate::Writable for USB_CONF_SPEC {
40 type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets USB_CONF to value 0"]
43impl crate::Resettable for USB_CONF_SPEC {}