esp32 0.4.0

Peripheral access crate for the ESP32
Documentation
#[doc = "Reader of register APP_DCACHE_DBUG2"]
pub type R = crate::R<u32, super::APP_DCACHE_DBUG2>;
#[doc = "Writer for register APP_DCACHE_DBUG2"]
pub type W = crate::W<u32, super::APP_DCACHE_DBUG2>;
#[doc = "Register APP_DCACHE_DBUG2 `reset()`'s with value 0"]
impl crate::ResetValue for super::APP_DCACHE_DBUG2 {
    type Type = u32;
    #[inline(always)]
    fn reset_value() -> Self::Type {
        0
    }
}
#[doc = "Reader of field `APP_CACHE_VADDR`"]
pub type APP_CACHE_VADDR_R = crate::R<u32, u32>;
#[doc = "Write proxy for field `APP_CACHE_VADDR`"]
pub struct APP_CACHE_VADDR_W<'a> {
    w: &'a mut W,
}
impl<'a> APP_CACHE_VADDR_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 & !0x07ff_ffff) | ((value as u32) & 0x07ff_ffff);
        self.w
    }
}
impl R {
    #[doc = "Bits 0:26"]
    #[inline(always)]
    pub fn app_cache_vaddr(&self) -> APP_CACHE_VADDR_R {
        APP_CACHE_VADDR_R::new((self.bits & 0x07ff_ffff) as u32)
    }
}
impl W {
    #[doc = "Bits 0:26"]
    #[inline(always)]
    pub fn app_cache_vaddr(&mut self) -> APP_CACHE_VADDR_W {
        APP_CACHE_VADDR_W { w: self }
    }
}