pub type R = crate::R<IENrs>;
pub type W = crate::W<IENrs>;
pub type PeriodR = crate::BitReader;
pub type PeriodW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn period(&self) -> PeriodR {
PeriodR::new((self.bits & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IEN")
.field("period", &self.period())
.finish()
}
}
impl W {
#[inline(always)]
pub fn period(&mut self) -> PeriodW<'_, IENrs> {
PeriodW::new(self, 0)
}
}
pub struct IENrs;
impl crate::RegisterSpec for IENrs {
type Ux = u32;
}
impl crate::Readable for IENrs {}
impl crate::Writable for IENrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IENrs {}