#[doc = "Register `CACHE_L2_UNALLOCATE_BUFFER_CLEAR` reader"]
pub type R = crate::R<CACHE_L2_UNALLOCATE_BUFFER_CLEAR_SPEC>;
#[doc = "Field `CACHE_L2_CACHE_UNALLOC_CLR` reader - The bit is used to clear the unallocate request buffer of l2 icache where the unallocate request is responsed but not completed."]
pub type CACHE_L2_CACHE_UNALLOC_CLR_R = crate::BitReader;
impl R {
#[doc = "Bit 5 - The bit is used to clear the unallocate request buffer of l2 icache where the unallocate request is responsed but not completed."]
#[inline(always)]
pub fn cache_l2_cache_unalloc_clr(&self) -> CACHE_L2_CACHE_UNALLOC_CLR_R {
CACHE_L2_CACHE_UNALLOC_CLR_R::new(((self.bits >> 5) & 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("CACHE_L2_UNALLOCATE_BUFFER_CLEAR")
.field(
"cache_l2_cache_unalloc_clr",
&self.cache_l2_cache_unalloc_clr(),
)
.finish()
}
}
#[doc = "Unallocate request buffer clear registers\n\nYou can [`read`](crate::Reg::read) this register and get [`cache_l2_unallocate_buffer_clear::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CACHE_L2_UNALLOCATE_BUFFER_CLEAR_SPEC;
impl crate::RegisterSpec for CACHE_L2_UNALLOCATE_BUFFER_CLEAR_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`cache_l2_unallocate_buffer_clear::R`](R) reader structure"]
impl crate::Readable for CACHE_L2_UNALLOCATE_BUFFER_CLEAR_SPEC {}
#[doc = "`reset()` method sets CACHE_L2_UNALLOCATE_BUFFER_CLEAR to value 0"]
impl crate::Resettable for CACHE_L2_UNALLOCATE_BUFFER_CLEAR_SPEC {}