pub type R = crate::R<DMACIERrs>;
pub type W = crate::W<DMACIERrs>;
pub type TIE_R = crate::BitReader;
pub type TIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXSE_R = crate::BitReader;
pub type TXSE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TBUE_R = crate::BitReader;
pub type TBUE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RIE_R = crate::BitReader;
pub type RIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RBUE_R = crate::BitReader;
pub type RBUE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RSE_R = crate::BitReader;
pub type RSE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RWTE_R = crate::BitReader;
pub type RWTE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ETIE_R = crate::BitReader;
pub type ETIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ERIE_R = crate::BitReader;
pub type ERIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FBEE_R = crate::BitReader;
pub type FBEE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CDEE_R = crate::BitReader;
pub type CDEE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AIE_R = crate::BitReader;
pub type AIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type NIE_R = crate::BitReader;
pub type NIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tie(&self) -> TIE_R {
TIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn txse(&self) -> TXSE_R {
TXSE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn tbue(&self) -> TBUE_R {
TBUE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn rie(&self) -> RIE_R {
RIE_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn rbue(&self) -> RBUE_R {
RBUE_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn rse(&self) -> RSE_R {
RSE_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn rwte(&self) -> RWTE_R {
RWTE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn etie(&self) -> ETIE_R {
ETIE_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn erie(&self) -> ERIE_R {
ERIE_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn fbee(&self) -> FBEE_R {
FBEE_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn cdee(&self) -> CDEE_R {
CDEE_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn aie(&self) -> AIE_R {
AIE_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn nie(&self) -> NIE_R {
NIE_R::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DMACIER")
.field("nie", &self.nie())
.field("aie", &self.aie())
.field("cdee", &self.cdee())
.field("fbee", &self.fbee())
.field("erie", &self.erie())
.field("etie", &self.etie())
.field("rwte", &self.rwte())
.field("rse", &self.rse())
.field("rbue", &self.rbue())
.field("rie", &self.rie())
.field("tbue", &self.tbue())
.field("txse", &self.txse())
.field("tie", &self.tie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tie(&mut self) -> TIE_W<DMACIERrs> {
TIE_W::new(self, 0)
}
#[inline(always)]
pub fn txse(&mut self) -> TXSE_W<DMACIERrs> {
TXSE_W::new(self, 1)
}
#[inline(always)]
pub fn tbue(&mut self) -> TBUE_W<DMACIERrs> {
TBUE_W::new(self, 2)
}
#[inline(always)]
pub fn rie(&mut self) -> RIE_W<DMACIERrs> {
RIE_W::new(self, 6)
}
#[inline(always)]
pub fn rbue(&mut self) -> RBUE_W<DMACIERrs> {
RBUE_W::new(self, 7)
}
#[inline(always)]
pub fn rse(&mut self) -> RSE_W<DMACIERrs> {
RSE_W::new(self, 8)
}
#[inline(always)]
pub fn rwte(&mut self) -> RWTE_W<DMACIERrs> {
RWTE_W::new(self, 9)
}
#[inline(always)]
pub fn etie(&mut self) -> ETIE_W<DMACIERrs> {
ETIE_W::new(self, 10)
}
#[inline(always)]
pub fn erie(&mut self) -> ERIE_W<DMACIERrs> {
ERIE_W::new(self, 11)
}
#[inline(always)]
pub fn fbee(&mut self) -> FBEE_W<DMACIERrs> {
FBEE_W::new(self, 12)
}
#[inline(always)]
pub fn cdee(&mut self) -> CDEE_W<DMACIERrs> {
CDEE_W::new(self, 13)
}
#[inline(always)]
pub fn aie(&mut self) -> AIE_W<DMACIERrs> {
AIE_W::new(self, 14)
}
#[inline(always)]
pub fn nie(&mut self) -> NIE_W<DMACIERrs> {
NIE_W::new(self, 15)
}
}
pub struct DMACIERrs;
impl crate::RegisterSpec for DMACIERrs {
type Ux = u32;
}
impl crate::Readable for DMACIERrs {}
impl crate::Writable for DMACIERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DMACIERrs {}