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