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