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