pub type R = crate::R<IFrs>;
pub type TxcR = crate::BitReader;
pub type TxblR = crate::BitReader;
pub type RxdatavR = crate::BitReader;
pub type RxofR = crate::BitReader;
pub type RxufR = crate::BitReader;
pub type TxofR = crate::BitReader;
pub type PerrR = crate::BitReader;
pub type FerrR = crate::BitReader;
pub type MpafR = crate::BitReader;
pub type StartfR = crate::BitReader;
pub type SigfR = crate::BitReader;
impl R {
#[inline(always)]
pub fn txc(&self) -> TxcR {
TxcR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn txbl(&self) -> TxblR {
TxblR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn rxdatav(&self) -> RxdatavR {
RxdatavR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn rxof(&self) -> RxofR {
RxofR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn rxuf(&self) -> RxufR {
RxufR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn txof(&self) -> TxofR {
TxofR::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn perr(&self) -> PerrR {
PerrR::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn ferr(&self) -> FerrR {
FerrR::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn mpaf(&self) -> MpafR {
MpafR::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn startf(&self) -> StartfR {
StartfR::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn sigf(&self) -> SigfR {
SigfR::new(((self.bits >> 10) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IF")
.field("txc", &self.txc())
.field("txbl", &self.txbl())
.field("rxdatav", &self.rxdatav())
.field("rxof", &self.rxof())
.field("rxuf", &self.rxuf())
.field("txof", &self.txof())
.field("perr", &self.perr())
.field("ferr", &self.ferr())
.field("mpaf", &self.mpaf())
.field("startf", &self.startf())
.field("sigf", &self.sigf())
.finish()
}
}
pub struct IFrs;
impl crate::RegisterSpec for IFrs {
type Ux = u32;
}
impl crate::Readable for IFrs {}
impl crate::Resettable for IFrs {
const RESET_VALUE: u32 = 0x02;
}