pub type R = crate::R<PIRrs>;
pub type W = crate::W<PIRrs>;
pub type INTERVAL_R = crate::FieldReader<u16>;
pub type INTERVAL_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn interval(&self) -> INTERVAL_R {
INTERVAL_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("PIR").field("interval", &self.interval()).finish()
}
}
impl W {
#[inline(always)]
pub fn interval(&mut self) -> INTERVAL_W<PIRrs> {
INTERVAL_W::new(self, 0)
}
}
pub struct PIRrs;
impl crate::RegisterSpec for PIRrs {
type Ux = u32;
}
impl crate::Readable for PIRrs {}
impl crate::Writable for PIRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PIRrs {}