pub type R = crate::R<IENrs>;
pub type W = crate::W<IENrs>;
pub type UfR = crate::BitReader;
pub type UfW<'a, REG> = crate::BitWriter<'a, REG>;
pub type OfR = crate::BitReader;
pub type OfW<'a, REG> = crate::BitWriter<'a, REG>;
pub type DircngR = crate::BitReader;
pub type DircngW<'a, REG> = crate::BitWriter<'a, REG>;
pub type AuxofR = crate::BitReader;
pub type AuxofW<'a, REG> = crate::BitWriter<'a, REG>;
pub type TccR = crate::BitReader;
pub type TccW<'a, REG> = crate::BitWriter<'a, REG>;
pub type OqsterrR = crate::BitReader;
pub type OqsterrW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn uf(&self) -> UfR {
UfR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn of(&self) -> OfR {
OfR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dircng(&self) -> DircngR {
DircngR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn auxof(&self) -> AuxofR {
AuxofR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn tcc(&self) -> TccR {
TccR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn oqsterr(&self) -> OqsterrR {
OqsterrR::new(((self.bits >> 5) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IEN")
.field("uf", &self.uf())
.field("of", &self.of())
.field("dircng", &self.dircng())
.field("auxof", &self.auxof())
.field("tcc", &self.tcc())
.field("oqsterr", &self.oqsterr())
.finish()
}
}
impl W {
#[inline(always)]
pub fn uf(&mut self) -> UfW<'_, IENrs> {
UfW::new(self, 0)
}
#[inline(always)]
pub fn of(&mut self) -> OfW<'_, IENrs> {
OfW::new(self, 1)
}
#[inline(always)]
pub fn dircng(&mut self) -> DircngW<'_, IENrs> {
DircngW::new(self, 2)
}
#[inline(always)]
pub fn auxof(&mut self) -> AuxofW<'_, IENrs> {
AuxofW::new(self, 3)
}
#[inline(always)]
pub fn tcc(&mut self) -> TccW<'_, IENrs> {
TccW::new(self, 4)
}
#[inline(always)]
pub fn oqsterr(&mut self) -> OqsterrW<'_, IENrs> {
OqsterrW::new(self, 5)
}
}
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 {}