pub type R = crate::R<IERrs>;
pub type W = crate::W<IERrs>;
pub type RXBRIE_R = crate::BitReader;
pub type RXBRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RXENDIE_R = crate::BitReader;
pub type RXENDIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RXOVRIE_R = crate::BitReader;
pub type RXOVRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BREIE_R = crate::BitReader;
pub type BREIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SBPEIE_R = crate::BitReader;
pub type SBPEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LBPEIE_R = crate::BitReader;
pub type LBPEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RXACKIE_R = crate::BitReader;
pub type RXACKIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ARBLSTIE_R = crate::BitReader;
pub type ARBLSTIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXBRIE_R = crate::BitReader;
pub type TXBRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXENDIE_R = crate::BitReader;
pub type TXENDIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXUDRIE_R = crate::BitReader;
pub type TXUDRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXERRIE_R = crate::BitReader;
pub type TXERRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXACKIE_R = crate::BitReader;
pub type TXACKIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn rxbrie(&self) -> RXBRIE_R {
RXBRIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn rxendie(&self) -> RXENDIE_R {
RXENDIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn rxovrie(&self) -> RXOVRIE_R {
RXOVRIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn breie(&self) -> BREIE_R {
BREIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn sbpeie(&self) -> SBPEIE_R {
SBPEIE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn lbpeie(&self) -> LBPEIE_R {
LBPEIE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn rxackie(&self) -> RXACKIE_R {
RXACKIE_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn arblstie(&self) -> ARBLSTIE_R {
ARBLSTIE_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn txbrie(&self) -> TXBRIE_R {
TXBRIE_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn txendie(&self) -> TXENDIE_R {
TXENDIE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn txudrie(&self) -> TXUDRIE_R {
TXUDRIE_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn txerrie(&self) -> TXERRIE_R {
TXERRIE_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn txackie(&self) -> TXACKIE_R {
TXACKIE_R::new(((self.bits >> 12) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IER")
.field("rxbrie", &self.rxbrie())
.field("rxendie", &self.rxendie())
.field("rxovrie", &self.rxovrie())
.field("breie", &self.breie())
.field("sbpeie", &self.sbpeie())
.field("lbpeie", &self.lbpeie())
.field("rxackie", &self.rxackie())
.field("arblstie", &self.arblstie())
.field("txbrie", &self.txbrie())
.field("txendie", &self.txendie())
.field("txudrie", &self.txudrie())
.field("txerrie", &self.txerrie())
.field("txackie", &self.txackie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn rxbrie(&mut self) -> RXBRIE_W<IERrs> {
RXBRIE_W::new(self, 0)
}
#[inline(always)]
pub fn rxendie(&mut self) -> RXENDIE_W<IERrs> {
RXENDIE_W::new(self, 1)
}
#[inline(always)]
pub fn rxovrie(&mut self) -> RXOVRIE_W<IERrs> {
RXOVRIE_W::new(self, 2)
}
#[inline(always)]
pub fn breie(&mut self) -> BREIE_W<IERrs> {
BREIE_W::new(self, 3)
}
#[inline(always)]
pub fn sbpeie(&mut self) -> SBPEIE_W<IERrs> {
SBPEIE_W::new(self, 4)
}
#[inline(always)]
pub fn lbpeie(&mut self) -> LBPEIE_W<IERrs> {
LBPEIE_W::new(self, 5)
}
#[inline(always)]
pub fn rxackie(&mut self) -> RXACKIE_W<IERrs> {
RXACKIE_W::new(self, 6)
}
#[inline(always)]
pub fn arblstie(&mut self) -> ARBLSTIE_W<IERrs> {
ARBLSTIE_W::new(self, 7)
}
#[inline(always)]
pub fn txbrie(&mut self) -> TXBRIE_W<IERrs> {
TXBRIE_W::new(self, 8)
}
#[inline(always)]
pub fn txendie(&mut self) -> TXENDIE_W<IERrs> {
TXENDIE_W::new(self, 9)
}
#[inline(always)]
pub fn txudrie(&mut self) -> TXUDRIE_W<IERrs> {
TXUDRIE_W::new(self, 10)
}
#[inline(always)]
pub fn txerrie(&mut self) -> TXERRIE_W<IERrs> {
TXERRIE_W::new(self, 11)
}
#[inline(always)]
pub fn txackie(&mut self) -> TXACKIE_W<IERrs> {
TXACKIE_W::new(self, 12)
}
}
pub struct IERrs;
impl crate::RegisterSpec for IERrs {
type Ux = u32;
}
impl crate::Readable for IERrs {}
impl crate::Writable for IERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IERrs {}