pub type R = crate::R<PERRrs>;
pub type W = crate::W<PERRrs>;
pub type PER_R = crate::FieldReader<u16>;
pub type PER_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn per(&self) -> PER_R {
PER_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PERR").field("per", &self.per()).finish()
}
}
impl W {
#[inline(always)]
pub fn per(&mut self) -> PER_W<PERRrs> {
PER_W::new(self, 0)
}
}
pub struct PERRrs;
impl crate::RegisterSpec for PERRrs {
type Ux = u32;
}
impl crate::Readable for PERRrs {}
impl crate::Writable for PERRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PERRrs {
const RESET_VALUE: u32 = 0xffff;
}