pub type R = crate::R<INTrs>;
pub type W = crate::W<INTrs>;
pub type XFRC_R = crate::BitReader;
pub type XFRC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CHH_R = crate::BitReader;
pub type CHH_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type STALL_R = crate::BitReader;
pub type STALL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type NAK_R = crate::BitReader;
pub type NAK_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ACK_R = crate::BitReader;
pub type ACK_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXERR_R = crate::BitReader;
pub type TXERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BBERR_R = crate::BitReader;
pub type BBERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FRMOR_R = crate::BitReader;
pub type FRMOR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DTERR_R = crate::BitReader;
pub type DTERR_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn xfrc(&self) -> XFRC_R {
XFRC_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn chh(&self) -> CHH_R {
CHH_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn stall(&self) -> STALL_R {
STALL_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn nak(&self) -> NAK_R {
NAK_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn ack(&self) -> ACK_R {
ACK_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn txerr(&self) -> TXERR_R {
TXERR_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn bberr(&self) -> BBERR_R {
BBERR_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn frmor(&self) -> FRMOR_R {
FRMOR_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn dterr(&self) -> DTERR_R {
DTERR_R::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("INT")
.field("xfrc", &self.xfrc())
.field("chh", &self.chh())
.field("stall", &self.stall())
.field("nak", &self.nak())
.field("ack", &self.ack())
.field("txerr", &self.txerr())
.field("bberr", &self.bberr())
.field("frmor", &self.frmor())
.field("dterr", &self.dterr())
.finish()
}
}
impl W {
#[inline(always)]
pub fn xfrc(&mut self) -> XFRC_W<INTrs> {
XFRC_W::new(self, 0)
}
#[inline(always)]
pub fn chh(&mut self) -> CHH_W<INTrs> {
CHH_W::new(self, 1)
}
#[inline(always)]
pub fn stall(&mut self) -> STALL_W<INTrs> {
STALL_W::new(self, 3)
}
#[inline(always)]
pub fn nak(&mut self) -> NAK_W<INTrs> {
NAK_W::new(self, 4)
}
#[inline(always)]
pub fn ack(&mut self) -> ACK_W<INTrs> {
ACK_W::new(self, 5)
}
#[inline(always)]
pub fn txerr(&mut self) -> TXERR_W<INTrs> {
TXERR_W::new(self, 7)
}
#[inline(always)]
pub fn bberr(&mut self) -> BBERR_W<INTrs> {
BBERR_W::new(self, 8)
}
#[inline(always)]
pub fn frmor(&mut self) -> FRMOR_W<INTrs> {
FRMOR_W::new(self, 9)
}
#[inline(always)]
pub fn dterr(&mut self) -> DTERR_W<INTrs> {
DTERR_W::new(self, 10)
}
}
pub struct INTrs;
impl crate::RegisterSpec for INTrs {
type Ux = u32;
}
impl crate::Readable for INTrs {}
impl crate::Writable for INTrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for INTrs {}