pub type R = crate::R<WPSN_PRGrs>;
pub type W = crate::W<WPSN_PRGrs>;
pub type WRPSN_R = crate::FieldReader;
pub type WRPSN_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn wrpsn(&self) -> WRPSN_R {
WRPSN_R::new((self.bits & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WPSN_PRG").field("wrpsn", &self.wrpsn()).finish()
}
}
impl W {
#[inline(always)]
pub fn wrpsn(&mut self) -> WRPSN_W<WPSN_PRGrs> {
WRPSN_W::new(self, 0)
}
}
pub struct WPSN_PRGrs;
impl crate::RegisterSpec for WPSN_PRGrs {
type Ux = u32;
}
impl crate::Readable for WPSN_PRGrs {}
impl crate::Writable for WPSN_PRGrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for WPSN_PRGrs {}