pub type R = crate::R<IENrs>;
pub type W = crate::W<IENrs>;
pub type SingleR = crate::BitReader;
pub type SingleW<'a, REG> = crate::BitWriter<'a, REG>;
pub type ScanR = crate::BitReader;
pub type ScanW<'a, REG> = crate::BitWriter<'a, REG>;
pub type SingleofR = crate::BitReader;
pub type SingleofW<'a, REG> = crate::BitWriter<'a, REG>;
pub type ScanofR = crate::BitReader;
pub type ScanofW<'a, REG> = crate::BitWriter<'a, REG>;
pub type SingleufR = crate::BitReader;
pub type SingleufW<'a, REG> = crate::BitWriter<'a, REG>;
pub type ScanufR = crate::BitReader;
pub type ScanufW<'a, REG> = crate::BitWriter<'a, REG>;
pub type SinglecmpR = crate::BitReader;
pub type SinglecmpW<'a, REG> = crate::BitWriter<'a, REG>;
pub type ScancmpR = crate::BitReader;
pub type ScancmpW<'a, REG> = crate::BitWriter<'a, REG>;
pub type VrefovR = crate::BitReader;
pub type VrefovW<'a, REG> = crate::BitWriter<'a, REG>;
pub type ProgerrR = crate::BitReader;
pub type ProgerrW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn single(&self) -> SingleR {
SingleR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn scan(&self) -> ScanR {
ScanR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn singleof(&self) -> SingleofR {
SingleofR::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn scanof(&self) -> ScanofR {
ScanofR::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn singleuf(&self) -> SingleufR {
SingleufR::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn scanuf(&self) -> ScanufR {
ScanufR::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn singlecmp(&self) -> SinglecmpR {
SinglecmpR::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn scancmp(&self) -> ScancmpR {
ScancmpR::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn vrefov(&self) -> VrefovR {
VrefovR::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn progerr(&self) -> ProgerrR {
ProgerrR::new(((self.bits >> 25) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IEN")
.field("single", &self.single())
.field("scan", &self.scan())
.field("singleof", &self.singleof())
.field("scanof", &self.scanof())
.field("singleuf", &self.singleuf())
.field("scanuf", &self.scanuf())
.field("singlecmp", &self.singlecmp())
.field("scancmp", &self.scancmp())
.field("vrefov", &self.vrefov())
.field("progerr", &self.progerr())
.finish()
}
}
impl W {
#[inline(always)]
pub fn single(&mut self) -> SingleW<'_, IENrs> {
SingleW::new(self, 0)
}
#[inline(always)]
pub fn scan(&mut self) -> ScanW<'_, IENrs> {
ScanW::new(self, 1)
}
#[inline(always)]
pub fn singleof(&mut self) -> SingleofW<'_, IENrs> {
SingleofW::new(self, 8)
}
#[inline(always)]
pub fn scanof(&mut self) -> ScanofW<'_, IENrs> {
ScanofW::new(self, 9)
}
#[inline(always)]
pub fn singleuf(&mut self) -> SingleufW<'_, IENrs> {
SingleufW::new(self, 10)
}
#[inline(always)]
pub fn scanuf(&mut self) -> ScanufW<'_, IENrs> {
ScanufW::new(self, 11)
}
#[inline(always)]
pub fn singlecmp(&mut self) -> SinglecmpW<'_, IENrs> {
SinglecmpW::new(self, 16)
}
#[inline(always)]
pub fn scancmp(&mut self) -> ScancmpW<'_, IENrs> {
ScancmpW::new(self, 17)
}
#[inline(always)]
pub fn vrefov(&mut self) -> VrefovW<'_, IENrs> {
VrefovW::new(self, 24)
}
#[inline(always)]
pub fn progerr(&mut self) -> ProgerrW<'_, IENrs> {
ProgerrW::new(self, 25)
}
}
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 {}