pub type R = crate::R<IENrs>;
pub type W = crate::W<IENrs>;
pub type HfrcordyR = crate::BitReader;
pub type HfrcordyW<'a, REG> = crate::BitWriter<'a, REG>;
pub type HfxordyR = crate::BitReader;
pub type HfxordyW<'a, REG> = crate::BitWriter<'a, REG>;
pub type LfrcordyR = crate::BitReader;
pub type LfrcordyW<'a, REG> = crate::BitWriter<'a, REG>;
pub type LfxordyR = crate::BitReader;
pub type LfxordyW<'a, REG> = crate::BitWriter<'a, REG>;
pub type AuxhfrcordyR = crate::BitReader;
pub type AuxhfrcordyW<'a, REG> = crate::BitWriter<'a, REG>;
pub type CalrdyR = crate::BitReader;
pub type CalrdyW<'a, REG> = crate::BitWriter<'a, REG>;
pub type CalofR = crate::BitReader;
pub type CalofW<'a, REG> = crate::BitWriter<'a, REG>;
pub type HfxodiserrR = crate::BitReader;
pub type HfxodiserrW<'a, REG> = crate::BitWriter<'a, REG>;
pub type HfxoautoswR = crate::BitReader;
pub type HfxoautoswW<'a, REG> = crate::BitWriter<'a, REG>;
pub type HfxopeakdeterrR = crate::BitReader;
pub type HfxopeakdeterrW<'a, REG> = crate::BitWriter<'a, REG>;
pub type HfxopeakdetrdyR = crate::BitReader;
pub type HfxopeakdetrdyW<'a, REG> = crate::BitWriter<'a, REG>;
pub type HfxoshuntoptrdyR = crate::BitReader;
pub type HfxoshuntoptrdyW<'a, REG> = crate::BitWriter<'a, REG>;
pub type HfrcodisR = crate::BitReader;
pub type HfrcodisW<'a, REG> = crate::BitWriter<'a, REG>;
pub type LftimeouterrR = crate::BitReader;
pub type LftimeouterrW<'a, REG> = crate::BitWriter<'a, REG>;
pub type CmuerrR = crate::BitReader;
pub type CmuerrW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn hfrcordy(&self) -> HfrcordyR {
HfrcordyR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn hfxordy(&self) -> HfxordyR {
HfxordyR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn lfrcordy(&self) -> LfrcordyR {
LfrcordyR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn lfxordy(&self) -> LfxordyR {
LfxordyR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn auxhfrcordy(&self) -> AuxhfrcordyR {
AuxhfrcordyR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn calrdy(&self) -> CalrdyR {
CalrdyR::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn calof(&self) -> CalofR {
CalofR::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn hfxodiserr(&self) -> HfxodiserrR {
HfxodiserrR::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn hfxoautosw(&self) -> HfxoautoswR {
HfxoautoswR::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn hfxopeakdeterr(&self) -> HfxopeakdeterrR {
HfxopeakdeterrR::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn hfxopeakdetrdy(&self) -> HfxopeakdetrdyR {
HfxopeakdetrdyR::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn hfxoshuntoptrdy(&self) -> HfxoshuntoptrdyR {
HfxoshuntoptrdyR::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn hfrcodis(&self) -> HfrcodisR {
HfrcodisR::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn lftimeouterr(&self) -> LftimeouterrR {
LftimeouterrR::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn cmuerr(&self) -> CmuerrR {
CmuerrR::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IEN")
.field("hfrcordy", &self.hfrcordy())
.field("hfxordy", &self.hfxordy())
.field("lfrcordy", &self.lfrcordy())
.field("lfxordy", &self.lfxordy())
.field("auxhfrcordy", &self.auxhfrcordy())
.field("calrdy", &self.calrdy())
.field("calof", &self.calof())
.field("hfxodiserr", &self.hfxodiserr())
.field("hfxoautosw", &self.hfxoautosw())
.field("hfxopeakdeterr", &self.hfxopeakdeterr())
.field("hfxopeakdetrdy", &self.hfxopeakdetrdy())
.field("hfxoshuntoptrdy", &self.hfxoshuntoptrdy())
.field("hfrcodis", &self.hfrcodis())
.field("lftimeouterr", &self.lftimeouterr())
.field("cmuerr", &self.cmuerr())
.finish()
}
}
impl W {
#[inline(always)]
pub fn hfrcordy(&mut self) -> HfrcordyW<'_, IENrs> {
HfrcordyW::new(self, 0)
}
#[inline(always)]
pub fn hfxordy(&mut self) -> HfxordyW<'_, IENrs> {
HfxordyW::new(self, 1)
}
#[inline(always)]
pub fn lfrcordy(&mut self) -> LfrcordyW<'_, IENrs> {
LfrcordyW::new(self, 2)
}
#[inline(always)]
pub fn lfxordy(&mut self) -> LfxordyW<'_, IENrs> {
LfxordyW::new(self, 3)
}
#[inline(always)]
pub fn auxhfrcordy(&mut self) -> AuxhfrcordyW<'_, IENrs> {
AuxhfrcordyW::new(self, 4)
}
#[inline(always)]
pub fn calrdy(&mut self) -> CalrdyW<'_, IENrs> {
CalrdyW::new(self, 5)
}
#[inline(always)]
pub fn calof(&mut self) -> CalofW<'_, IENrs> {
CalofW::new(self, 6)
}
#[inline(always)]
pub fn hfxodiserr(&mut self) -> HfxodiserrW<'_, IENrs> {
HfxodiserrW::new(self, 8)
}
#[inline(always)]
pub fn hfxoautosw(&mut self) -> HfxoautoswW<'_, IENrs> {
HfxoautoswW::new(self, 9)
}
#[inline(always)]
pub fn hfxopeakdeterr(&mut self) -> HfxopeakdeterrW<'_, IENrs> {
HfxopeakdeterrW::new(self, 10)
}
#[inline(always)]
pub fn hfxopeakdetrdy(&mut self) -> HfxopeakdetrdyW<'_, IENrs> {
HfxopeakdetrdyW::new(self, 11)
}
#[inline(always)]
pub fn hfxoshuntoptrdy(&mut self) -> HfxoshuntoptrdyW<'_, IENrs> {
HfxoshuntoptrdyW::new(self, 12)
}
#[inline(always)]
pub fn hfrcodis(&mut self) -> HfrcodisW<'_, IENrs> {
HfrcodisW::new(self, 13)
}
#[inline(always)]
pub fn lftimeouterr(&mut self) -> LftimeouterrW<'_, IENrs> {
LftimeouterrW::new(self, 14)
}
#[inline(always)]
pub fn cmuerr(&mut self) -> CmuerrW<'_, IENrs> {
CmuerrW::new(self, 31)
}
}
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 {}