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