pub type R = crate::R<IENrs>;
pub type W = crate::W<IENrs>;
pub type TxcR = crate::BitReader;
pub type TxcW<'a, REG> = crate::BitWriter<'a, REG>;
pub type TxblR = crate::BitReader;
pub type TxblW<'a, REG> = crate::BitWriter<'a, REG>;
pub type RxdatavR = crate::BitReader;
pub type RxdatavW<'a, REG> = crate::BitWriter<'a, REG>;
pub type RxfullR = crate::BitReader;
pub type RxfullW<'a, REG> = crate::BitWriter<'a, REG>;
pub type RxofR = crate::BitReader;
pub type RxofW<'a, REG> = crate::BitWriter<'a, REG>;
pub type RxufR = crate::BitReader;
pub type RxufW<'a, REG> = crate::BitWriter<'a, REG>;
pub type TxofR = crate::BitReader;
pub type TxofW<'a, REG> = crate::BitWriter<'a, REG>;
pub type TxufR = crate::BitReader;
pub type TxufW<'a, REG> = crate::BitWriter<'a, REG>;
pub type PerrR = crate::BitReader;
pub type PerrW<'a, REG> = crate::BitWriter<'a, REG>;
pub type FerrR = crate::BitReader;
pub type FerrW<'a, REG> = crate::BitWriter<'a, REG>;
pub type MpafR = crate::BitReader;
pub type MpafW<'a, REG> = crate::BitWriter<'a, REG>;
pub type SsmR = crate::BitReader;
pub type SsmW<'a, REG> = crate::BitWriter<'a, REG>;
pub type CcfR = crate::BitReader;
pub type CcfW<'a, REG> = crate::BitWriter<'a, REG>;
pub type TxidleR = crate::BitReader;
pub type TxidleW<'a, REG> = crate::BitWriter<'a, REG>;
pub type Tcmp0R = crate::BitReader;
pub type Tcmp0W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Tcmp1R = crate::BitReader;
pub type Tcmp1W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Tcmp2R = crate::BitReader;
pub type Tcmp2W<'a, REG> = crate::BitWriter<'a, REG>;
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 rxfull(&self) -> RxfullR {
RxfullR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn rxof(&self) -> RxofR {
RxofR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn rxuf(&self) -> RxufR {
RxufR::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn txof(&self) -> TxofR {
TxofR::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn txuf(&self) -> TxufR {
TxufR::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn perr(&self) -> PerrR {
PerrR::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn ferr(&self) -> FerrR {
FerrR::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn mpaf(&self) -> MpafR {
MpafR::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn ssm(&self) -> SsmR {
SsmR::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn ccf(&self) -> CcfR {
CcfR::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn txidle(&self) -> TxidleR {
TxidleR::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn tcmp0(&self) -> Tcmp0R {
Tcmp0R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn tcmp1(&self) -> Tcmp1R {
Tcmp1R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn tcmp2(&self) -> Tcmp2R {
Tcmp2R::new(((self.bits >> 16) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IEN")
.field("txc", &self.txc())
.field("txbl", &self.txbl())
.field("rxdatav", &self.rxdatav())
.field("rxfull", &self.rxfull())
.field("rxof", &self.rxof())
.field("rxuf", &self.rxuf())
.field("txof", &self.txof())
.field("txuf", &self.txuf())
.field("perr", &self.perr())
.field("ferr", &self.ferr())
.field("mpaf", &self.mpaf())
.field("ssm", &self.ssm())
.field("ccf", &self.ccf())
.field("txidle", &self.txidle())
.field("tcmp0", &self.tcmp0())
.field("tcmp1", &self.tcmp1())
.field("tcmp2", &self.tcmp2())
.finish()
}
}
impl W {
#[inline(always)]
pub fn txc(&mut self) -> TxcW<'_, IENrs> {
TxcW::new(self, 0)
}
#[inline(always)]
pub fn txbl(&mut self) -> TxblW<'_, IENrs> {
TxblW::new(self, 1)
}
#[inline(always)]
pub fn rxdatav(&mut self) -> RxdatavW<'_, IENrs> {
RxdatavW::new(self, 2)
}
#[inline(always)]
pub fn rxfull(&mut self) -> RxfullW<'_, IENrs> {
RxfullW::new(self, 3)
}
#[inline(always)]
pub fn rxof(&mut self) -> RxofW<'_, IENrs> {
RxofW::new(self, 4)
}
#[inline(always)]
pub fn rxuf(&mut self) -> RxufW<'_, IENrs> {
RxufW::new(self, 5)
}
#[inline(always)]
pub fn txof(&mut self) -> TxofW<'_, IENrs> {
TxofW::new(self, 6)
}
#[inline(always)]
pub fn txuf(&mut self) -> TxufW<'_, IENrs> {
TxufW::new(self, 7)
}
#[inline(always)]
pub fn perr(&mut self) -> PerrW<'_, IENrs> {
PerrW::new(self, 8)
}
#[inline(always)]
pub fn ferr(&mut self) -> FerrW<'_, IENrs> {
FerrW::new(self, 9)
}
#[inline(always)]
pub fn mpaf(&mut self) -> MpafW<'_, IENrs> {
MpafW::new(self, 10)
}
#[inline(always)]
pub fn ssm(&mut self) -> SsmW<'_, IENrs> {
SsmW::new(self, 11)
}
#[inline(always)]
pub fn ccf(&mut self) -> CcfW<'_, IENrs> {
CcfW::new(self, 12)
}
#[inline(always)]
pub fn txidle(&mut self) -> TxidleW<'_, IENrs> {
TxidleW::new(self, 13)
}
#[inline(always)]
pub fn tcmp0(&mut self) -> Tcmp0W<'_, IENrs> {
Tcmp0W::new(self, 14)
}
#[inline(always)]
pub fn tcmp1(&mut self) -> Tcmp1W<'_, IENrs> {
Tcmp1W::new(self, 15)
}
#[inline(always)]
pub fn tcmp2(&mut self) -> Tcmp2W<'_, IENrs> {
Tcmp2W::new(self, 16)
}
}
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 {}