pub type R = crate::R<IENrs>;
pub type W = crate::W<IENrs>;
pub type StartR = crate::BitReader;
pub type StartW<'a, REG> = crate::BitWriter<'a, REG>;
pub type RstartR = crate::BitReader;
pub type RstartW<'a, REG> = crate::BitWriter<'a, REG>;
pub type AddrR = crate::BitReader;
pub type AddrW<'a, REG> = crate::BitWriter<'a, REG>;
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 AckR = crate::BitReader;
pub type AckW<'a, REG> = crate::BitWriter<'a, REG>;
pub type NackR = crate::BitReader;
pub type NackW<'a, REG> = crate::BitWriter<'a, REG>;
pub type MstopR = crate::BitReader;
pub type MstopW<'a, REG> = crate::BitWriter<'a, REG>;
pub type ArblostR = crate::BitReader;
pub type ArblostW<'a, REG> = crate::BitWriter<'a, REG>;
pub type BuserrR = crate::BitReader;
pub type BuserrW<'a, REG> = crate::BitWriter<'a, REG>;
pub type BusholdR = crate::BitReader;
pub type BusholdW<'a, REG> = crate::BitWriter<'a, REG>;
pub type TxofR = crate::BitReader;
pub type TxofW<'a, REG> = crate::BitWriter<'a, REG>;
pub type RxufR = crate::BitReader;
pub type RxufW<'a, REG> = crate::BitWriter<'a, REG>;
pub type BitoR = crate::BitReader;
pub type BitoW<'a, REG> = crate::BitWriter<'a, REG>;
pub type CltoR = crate::BitReader;
pub type CltoW<'a, REG> = crate::BitWriter<'a, REG>;
pub type SstopR = crate::BitReader;
pub type SstopW<'a, REG> = crate::BitWriter<'a, REG>;
pub type RxfullR = crate::BitReader;
pub type RxfullW<'a, REG> = crate::BitWriter<'a, REG>;
pub type ClerrR = crate::BitReader;
pub type ClerrW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn start(&self) -> StartR {
StartR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn rstart(&self) -> RstartR {
RstartR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn addr(&self) -> AddrR {
AddrR::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn txc(&self) -> TxcR {
TxcR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn txbl(&self) -> TxblR {
TxblR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn rxdatav(&self) -> RxdatavR {
RxdatavR::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn ack(&self) -> AckR {
AckR::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn nack(&self) -> NackR {
NackR::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn mstop(&self) -> MstopR {
MstopR::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn arblost(&self) -> ArblostR {
ArblostR::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn buserr(&self) -> BuserrR {
BuserrR::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn bushold(&self) -> BusholdR {
BusholdR::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn txof(&self) -> TxofR {
TxofR::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn rxuf(&self) -> RxufR {
RxufR::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn bito(&self) -> BitoR {
BitoR::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn clto(&self) -> CltoR {
CltoR::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn sstop(&self) -> SstopR {
SstopR::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn rxfull(&self) -> RxfullR {
RxfullR::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn clerr(&self) -> ClerrR {
ClerrR::new(((self.bits >> 18) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IEN")
.field("start", &self.start())
.field("rstart", &self.rstart())
.field("addr", &self.addr())
.field("txc", &self.txc())
.field("txbl", &self.txbl())
.field("rxdatav", &self.rxdatav())
.field("ack", &self.ack())
.field("nack", &self.nack())
.field("mstop", &self.mstop())
.field("arblost", &self.arblost())
.field("buserr", &self.buserr())
.field("bushold", &self.bushold())
.field("txof", &self.txof())
.field("rxuf", &self.rxuf())
.field("bito", &self.bito())
.field("clto", &self.clto())
.field("sstop", &self.sstop())
.field("rxfull", &self.rxfull())
.field("clerr", &self.clerr())
.finish()
}
}
impl W {
#[inline(always)]
pub fn start(&mut self) -> StartW<'_, IENrs> {
StartW::new(self, 0)
}
#[inline(always)]
pub fn rstart(&mut self) -> RstartW<'_, IENrs> {
RstartW::new(self, 1)
}
#[inline(always)]
pub fn addr(&mut self) -> AddrW<'_, IENrs> {
AddrW::new(self, 2)
}
#[inline(always)]
pub fn txc(&mut self) -> TxcW<'_, IENrs> {
TxcW::new(self, 3)
}
#[inline(always)]
pub fn txbl(&mut self) -> TxblW<'_, IENrs> {
TxblW::new(self, 4)
}
#[inline(always)]
pub fn rxdatav(&mut self) -> RxdatavW<'_, IENrs> {
RxdatavW::new(self, 5)
}
#[inline(always)]
pub fn ack(&mut self) -> AckW<'_, IENrs> {
AckW::new(self, 6)
}
#[inline(always)]
pub fn nack(&mut self) -> NackW<'_, IENrs> {
NackW::new(self, 7)
}
#[inline(always)]
pub fn mstop(&mut self) -> MstopW<'_, IENrs> {
MstopW::new(self, 8)
}
#[inline(always)]
pub fn arblost(&mut self) -> ArblostW<'_, IENrs> {
ArblostW::new(self, 9)
}
#[inline(always)]
pub fn buserr(&mut self) -> BuserrW<'_, IENrs> {
BuserrW::new(self, 10)
}
#[inline(always)]
pub fn bushold(&mut self) -> BusholdW<'_, IENrs> {
BusholdW::new(self, 11)
}
#[inline(always)]
pub fn txof(&mut self) -> TxofW<'_, IENrs> {
TxofW::new(self, 12)
}
#[inline(always)]
pub fn rxuf(&mut self) -> RxufW<'_, IENrs> {
RxufW::new(self, 13)
}
#[inline(always)]
pub fn bito(&mut self) -> BitoW<'_, IENrs> {
BitoW::new(self, 14)
}
#[inline(always)]
pub fn clto(&mut self) -> CltoW<'_, IENrs> {
CltoW::new(self, 15)
}
#[inline(always)]
pub fn sstop(&mut self) -> SstopW<'_, IENrs> {
SstopW::new(self, 16)
}
#[inline(always)]
pub fn rxfull(&mut self) -> RxfullW<'_, IENrs> {
RxfullW::new(self, 17)
}
#[inline(always)]
pub fn clerr(&mut self) -> ClerrW<'_, IENrs> {
ClerrW::new(self, 18)
}
}
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 {}