pub type R = crate::R<IErs>;
pub type W = crate::W<IErs>;
pub type CWEE_R = crate::BitReader;
pub type CWEE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CSCE_R = crate::BitReader;
pub type CSCE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn cwee(&self) -> CWEE_R {
CWEE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn csce(&self) -> CSCE_R {
CSCE_R::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("IE")
.field("cwee", &self.cwee())
.field("csce", &self.csce())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cwee(&mut self) -> CWEE_W<IErs> {
CWEE_W::new(self, 0)
}
#[inline(always)]
pub fn csce(&mut self) -> CSCE_W<IErs> {
CSCE_W::new(self, 1)
}
}
pub struct IErs;
impl crate::RegisterSpec for IErs {
type Ux = u32;
}
impl crate::Readable for IErs {}
impl crate::Writable for IErs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IErs {}