pub type R = crate::R<IENrs>;
pub type W = crate::W<IENrs>;
pub type ExtR = crate::FieldReader<u16>;
pub type ExtW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
pub type Em4wuR = crate::FieldReader<u16>;
pub type Em4wuW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn ext(&self) -> ExtR {
ExtR::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn em4wu(&self) -> Em4wuR {
Em4wuR::new(((self.bits >> 16) & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IEN")
.field("ext", &self.ext())
.field("em4wu", &self.em4wu())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ext(&mut self) -> ExtW<'_, IENrs> {
ExtW::new(self, 0)
}
#[inline(always)]
pub fn em4wu(&mut self) -> Em4wuW<'_, IENrs> {
Em4wuW::new(self, 16)
}
}
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 {}