pub type R = crate::R<IFrs>;
pub type SingleR = crate::BitReader;
pub type ScanR = crate::BitReader;
pub type SingleofR = crate::BitReader;
pub type ScanofR = crate::BitReader;
pub type SingleufR = crate::BitReader;
pub type ScanufR = crate::BitReader;
pub type SinglecmpR = crate::BitReader;
pub type ScancmpR = crate::BitReader;
pub type VrefovR = crate::BitReader;
pub type ProgerrR = crate::BitReader;
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("IF")
.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()
}
}
pub struct IFrs;
impl crate::RegisterSpec for IFrs {
type Ux = u32;
}
impl crate::Readable for IFrs {}
impl crate::Resettable for IFrs {}