pub type R = crate::R<L2WVPCRrs>;
pub type W = crate::W<L2WVPCRrs>;
pub type WVSTPOS_R = crate::FieldReader<u16>;
pub type WVSTPOS_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16>;
pub type WVSPPOS_R = crate::FieldReader<u16>;
pub type WVSPPOS_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16>;
impl R {
#[inline(always)]
pub fn wvstpos(&self) -> WVSTPOS_R {
WVSTPOS_R::new((self.bits & 0x0fff) as u16)
}
#[inline(always)]
pub fn wvsppos(&self) -> WVSPPOS_R {
WVSPPOS_R::new(((self.bits >> 16) & 0x0fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("L2WVPCR")
.field("wvstpos", &self.wvstpos())
.field("wvsppos", &self.wvsppos())
.finish()
}
}
impl W {
#[inline(always)]
pub fn wvstpos(&mut self) -> WVSTPOS_W<L2WVPCRrs> {
WVSTPOS_W::new(self, 0)
}
#[inline(always)]
pub fn wvsppos(&mut self) -> WVSPPOS_W<L2WVPCRrs> {
WVSPPOS_W::new(self, 16)
}
}
pub struct L2WVPCRrs;
impl crate::RegisterSpec for L2WVPCRrs {
type Ux = u32;
}
impl crate::Readable for L2WVPCRrs {}
impl crate::Writable for L2WVPCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for L2WVPCRrs {}