pub type R = crate::R<MACIERrs>;
pub type W = crate::W<MACIERrs>;
pub type RGSMIIIE_R = crate::BitReader;
pub type RGSMIIIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PHYIE_R = crate::BitReader;
pub type PHYIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PMTIE_R = crate::BitReader;
pub type PMTIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LPIIE_R = crate::BitReader;
pub type LPIIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSIE_R = crate::BitReader;
pub type TSIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXSTSIE_R = crate::BitReader;
pub type TXSTSIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RXSTSIE_R = crate::BitReader;
pub type RXSTSIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn rgsmiiie(&self) -> RGSMIIIE_R {
RGSMIIIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn phyie(&self) -> PHYIE_R {
PHYIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn pmtie(&self) -> PMTIE_R {
PMTIE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn lpiie(&self) -> LPIIE_R {
LPIIE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn tsie(&self) -> TSIE_R {
TSIE_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn txstsie(&self) -> TXSTSIE_R {
TXSTSIE_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn rxstsie(&self) -> RXSTSIE_R {
RXSTSIE_R::new(((self.bits >> 14) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACIER")
.field("rgsmiiie", &self.rgsmiiie())
.field("phyie", &self.phyie())
.field("pmtie", &self.pmtie())
.field("lpiie", &self.lpiie())
.field("tsie", &self.tsie())
.field("txstsie", &self.txstsie())
.field("rxstsie", &self.rxstsie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn rgsmiiie(&mut self) -> RGSMIIIE_W<MACIERrs> {
RGSMIIIE_W::new(self, 0)
}
#[inline(always)]
pub fn phyie(&mut self) -> PHYIE_W<MACIERrs> {
PHYIE_W::new(self, 3)
}
#[inline(always)]
pub fn pmtie(&mut self) -> PMTIE_W<MACIERrs> {
PMTIE_W::new(self, 4)
}
#[inline(always)]
pub fn lpiie(&mut self) -> LPIIE_W<MACIERrs> {
LPIIE_W::new(self, 5)
}
#[inline(always)]
pub fn tsie(&mut self) -> TSIE_W<MACIERrs> {
TSIE_W::new(self, 12)
}
#[inline(always)]
pub fn txstsie(&mut self) -> TXSTSIE_W<MACIERrs> {
TXSTSIE_W::new(self, 13)
}
#[inline(always)]
pub fn rxstsie(&mut self) -> RXSTSIE_W<MACIERrs> {
RXSTSIE_W::new(self, 14)
}
}
pub struct MACIERrs;
impl crate::RegisterSpec for MACIERrs {
type Ux = u32;
}
impl crate::Readable for MACIERrs {}
impl crate::Writable for MACIERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACIERrs {}