pub type R = crate::R<IENrs>;
pub type W = crate::W<IENrs>;
pub type Comp0R = crate::BitReader;
pub type Comp0W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Comp1R = crate::BitReader;
pub type Comp1W<'a, REG> = crate::BitWriter<'a, REG>;
pub type UfR = crate::BitReader;
pub type UfW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Rep0R = crate::BitReader;
pub type Rep0W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Rep1R = crate::BitReader;
pub type Rep1W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn comp0(&self) -> Comp0R {
Comp0R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn comp1(&self) -> Comp1R {
Comp1R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn uf(&self) -> UfR {
UfR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn rep0(&self) -> Rep0R {
Rep0R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn rep1(&self) -> Rep1R {
Rep1R::new(((self.bits >> 4) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IEN")
.field("comp0", &self.comp0())
.field("comp1", &self.comp1())
.field("uf", &self.uf())
.field("rep0", &self.rep0())
.field("rep1", &self.rep1())
.finish()
}
}
impl W {
#[inline(always)]
pub fn comp0(&mut self) -> Comp0W<'_, IENrs> {
Comp0W::new(self, 0)
}
#[inline(always)]
pub fn comp1(&mut self) -> Comp1W<'_, IENrs> {
Comp1W::new(self, 1)
}
#[inline(always)]
pub fn uf(&mut self) -> UfW<'_, IENrs> {
UfW::new(self, 2)
}
#[inline(always)]
pub fn rep0(&mut self) -> Rep0W<'_, IENrs> {
Rep0W::new(self, 3)
}
#[inline(always)]
pub fn rep1(&mut self) -> Rep1W<'_, IENrs> {
Rep1W::new(self, 4)
}
}
pub struct IENrs;
impl crate::RegisterSpec for IENrs {
type Ux = u32;
}
impl crate::Readable for IENrs {}
impl crate::Writable for IENrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IENrs {}