pub type R = crate::R<WPSN_PRGRrs>;
pub type W = crate::W<WPSN_PRGRrs>;
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_PRGR").field("wrpsn", &self.wrpsn()).finish()
}
}
impl W {
#[inline(always)]
pub fn wrpsn(&mut self) -> WRPSN_W<WPSN_PRGRrs> {
WRPSN_W::new(self, 0)
}
}
pub struct WPSN_PRGRrs;
impl crate::RegisterSpec for WPSN_PRGRrs {
type Ux = u32;
}
impl crate::Readable for WPSN_PRGRrs {}
impl crate::Writable for WPSN_PRGRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for WPSN_PRGRrs {}