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