pub type R = crate::R<IENrs>;
pub type W = crate::W<IENrs>;
pub type OfR = crate::BitReader;
pub type OfW<'a, REG> = crate::BitWriter<'a, REG>;
pub type UfR = crate::BitReader;
pub type UfW<'a, REG> = crate::BitWriter<'a, REG>;
pub type DirchgR = crate::BitReader;
pub type DirchgW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Cc0R = crate::BitReader;
pub type Cc0W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Cc1R = crate::BitReader;
pub type Cc1W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Cc2R = crate::BitReader;
pub type Cc2W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Cc3R = crate::BitReader;
pub type Cc3W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Icbof0R = crate::BitReader;
pub type Icbof0W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Icbof1R = crate::BitReader;
pub type Icbof1W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Icbof2R = crate::BitReader;
pub type Icbof2W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Icbof3R = crate::BitReader;
pub type Icbof3W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn of(&self) -> OfR {
OfR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn uf(&self) -> UfR {
UfR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dirchg(&self) -> DirchgR {
DirchgR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn cc0(&self) -> Cc0R {
Cc0R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn cc1(&self) -> Cc1R {
Cc1R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn cc2(&self) -> Cc2R {
Cc2R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn cc3(&self) -> Cc3R {
Cc3R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn icbof0(&self) -> Icbof0R {
Icbof0R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn icbof1(&self) -> Icbof1R {
Icbof1R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn icbof2(&self) -> Icbof2R {
Icbof2R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn icbof3(&self) -> Icbof3R {
Icbof3R::new(((self.bits >> 11) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IEN")
.field("of", &self.of())
.field("uf", &self.uf())
.field("dirchg", &self.dirchg())
.field("cc0", &self.cc0())
.field("cc1", &self.cc1())
.field("cc2", &self.cc2())
.field("cc3", &self.cc3())
.field("icbof0", &self.icbof0())
.field("icbof1", &self.icbof1())
.field("icbof2", &self.icbof2())
.field("icbof3", &self.icbof3())
.finish()
}
}
impl W {
#[inline(always)]
pub fn of(&mut self) -> OfW<'_, IENrs> {
OfW::new(self, 0)
}
#[inline(always)]
pub fn uf(&mut self) -> UfW<'_, IENrs> {
UfW::new(self, 1)
}
#[inline(always)]
pub fn dirchg(&mut self) -> DirchgW<'_, IENrs> {
DirchgW::new(self, 2)
}
#[inline(always)]
pub fn cc0(&mut self) -> Cc0W<'_, IENrs> {
Cc0W::new(self, 4)
}
#[inline(always)]
pub fn cc1(&mut self) -> Cc1W<'_, IENrs> {
Cc1W::new(self, 5)
}
#[inline(always)]
pub fn cc2(&mut self) -> Cc2W<'_, IENrs> {
Cc2W::new(self, 6)
}
#[inline(always)]
pub fn cc3(&mut self) -> Cc3W<'_, IENrs> {
Cc3W::new(self, 7)
}
#[inline(always)]
pub fn icbof0(&mut self) -> Icbof0W<'_, IENrs> {
Icbof0W::new(self, 8)
}
#[inline(always)]
pub fn icbof1(&mut self) -> Icbof1W<'_, IENrs> {
Icbof1W::new(self, 9)
}
#[inline(always)]
pub fn icbof2(&mut self) -> Icbof2W<'_, IENrs> {
Icbof2W::new(self, 10)
}
#[inline(always)]
pub fn icbof3(&mut self) -> Icbof3W<'_, IENrs> {
Icbof3W::new(self, 11)
}
}
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 {}