pub type R = crate::R<ERCFGRrs>;
pub type W = crate::W<ERCFGRrs>;
pub type ERCFG0_R = crate::BitReader;
pub type ERCFG0_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn ercfg0(&self) -> ERCFG0_R {
ERCFG0_R::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("ERCFGR")
.field("ercfg0", &self.ercfg0())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ercfg0(&mut self) -> ERCFG0_W<ERCFGRrs> {
ERCFG0_W::new(self, 0)
}
}
pub struct ERCFGRrs;
impl crate::RegisterSpec for ERCFGRrs {
type Ux = u32;
}
impl crate::Readable for ERCFGRrs {}
impl crate::Writable for ERCFGRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ERCFGRrs {}