esp32 0.2.1

Peripheral access crate for the ESP32
Documentation
#[doc = "Reader of register RTC_GPIO_IN"]
pub type R = crate::R<u32, super::RTC_GPIO_IN>;
#[doc = "Writer for register RTC_GPIO_IN"]
pub type W = crate::W<u32, super::RTC_GPIO_IN>;
#[doc = "Register RTC_GPIO_IN `reset()`'s with value 0"]
impl crate::ResetValue for super::RTC_GPIO_IN {
    type Type = u32;
    #[inline(always)]
    fn reset_value() -> Self::Type {
        0
    }
}
#[doc = "Reader of field `RTC_GPIO_IN_NEXT`"]
pub type RTC_GPIO_IN_NEXT_R = crate::R<u32, u32>;
#[doc = "Write proxy for field `RTC_GPIO_IN_NEXT`"]
pub struct RTC_GPIO_IN_NEXT_W<'a> {
    w: &'a mut W,
}
impl<'a> RTC_GPIO_IN_NEXT_W<'a> {
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub unsafe fn bits(self, value: u32) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x0003_ffff << 14)) | (((value as u32) & 0x0003_ffff) << 14);
        self.w
    }
}
impl R {
    #[doc = "Bits 14:31"]
    #[inline(always)]
    pub fn rtc_gpio_in_next(&self) -> RTC_GPIO_IN_NEXT_R {
        RTC_GPIO_IN_NEXT_R::new(((self.bits >> 14) & 0x0003_ffff) as u32)
    }
}
impl W {
    #[doc = "Bits 14:31"]
    #[inline(always)]
    pub fn rtc_gpio_in_next(&mut self) -> RTC_GPIO_IN_NEXT_W {
        RTC_GPIO_IN_NEXT_W { w: self }
    }
}