esp32s2/rtc_io/
rtc_gpio_out_w1tc.rs

1#[doc = "Register `RTC_GPIO_OUT_W1TC` writer"]
2pub type W = crate::W<RTC_GPIO_OUT_W1TC_SPEC>;
3#[doc = "Field `RTC_GPIO_OUT_DATA_W1TC` writer - GPIO0 ~ 21 output clear register. If the value 1 is written to a bit here, the corresponding bit in RTCIO_RTC_GPIO_OUT_REG will be cleared. Recommended operation: use this register to clear RTCIO_RTC_GPIO_OUT_REG."]
4pub type RTC_GPIO_OUT_DATA_W1TC_W<'a, REG> = crate::FieldWriter<'a, REG, 22, u32>;
5#[cfg(feature = "impl-register-debug")]
6impl core::fmt::Debug for crate::generic::Reg<RTC_GPIO_OUT_W1TC_SPEC> {
7    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
8        write!(f, "(not readable)")
9    }
10}
11impl W {
12    #[doc = "Bits 10:31 - GPIO0 ~ 21 output clear register. If the value 1 is written to a bit here, the corresponding bit in RTCIO_RTC_GPIO_OUT_REG will be cleared. Recommended operation: use this register to clear RTCIO_RTC_GPIO_OUT_REG."]
13    #[inline(always)]
14    pub fn rtc_gpio_out_data_w1tc(&mut self) -> RTC_GPIO_OUT_DATA_W1TC_W<RTC_GPIO_OUT_W1TC_SPEC> {
15        RTC_GPIO_OUT_DATA_W1TC_W::new(self, 10)
16    }
17}
18#[doc = "RTC GPIO output bit clear register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtc_gpio_out_w1tc::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct RTC_GPIO_OUT_W1TC_SPEC;
20impl crate::RegisterSpec for RTC_GPIO_OUT_W1TC_SPEC {
21    type Ux = u32;
22}
23#[doc = "`write(|w| ..)` method takes [`rtc_gpio_out_w1tc::W`](W) writer structure"]
24impl crate::Writable for RTC_GPIO_OUT_W1TC_SPEC {
25    type Safety = crate::Unsafe;
26}
27#[doc = "`reset()` method sets RTC_GPIO_OUT_W1TC to value 0"]
28impl crate::Resettable for RTC_GPIO_OUT_W1TC_SPEC {}