pub type R = crate::R<IPC1R2rs>;
pub type W = crate::W<IPC1R2rs>;
pub type SVCMAPPING_R = crate::FieldReader;
pub type SVCMAPPING_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
pub type WLRU_R = crate::FieldReader;
pub type WLRU_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
impl R {
#[inline(always)]
pub fn svcmapping(&self) -> SVCMAPPING_R {
SVCMAPPING_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn wlru(&self) -> WLRU_R {
WLRU_R::new(((self.bits >> 16) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IPC1R2")
.field("svcmapping", &self.svcmapping())
.field("wlru", &self.wlru())
.finish()
}
}
impl W {
#[inline(always)]
pub fn svcmapping(&mut self) -> SVCMAPPING_W<IPC1R2rs> {
SVCMAPPING_W::new(self, 8)
}
#[inline(always)]
pub fn wlru(&mut self) -> WLRU_W<IPC1R2rs> {
WLRU_W::new(self, 16)
}
}
pub struct IPC1R2rs;
impl crate::RegisterSpec for IPC1R2rs {
type Ux = u32;
}
impl crate::Readable for IPC1R2rs {}
impl crate::Writable for IPC1R2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IPC1R2rs {
const RESET_VALUE: u32 = 0x0001_0000;
}