pub type R = crate::R<DMACSRrs>;
pub type W = crate::W<DMACSRrs>;
pub type TI_R = crate::BitReader;
pub type TI_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TPS_R = crate::BitReader;
pub type TPS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TBU_R = crate::BitReader;
pub type TBU_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RI_R = crate::BitReader;
pub type RI_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RBU_R = crate::BitReader;
pub type RBU_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RPS_R = crate::BitReader;
pub type RPS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RWT_R = crate::BitReader;
pub type RWT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ET_R = crate::BitReader;
pub type ET_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ER_R = crate::BitReader;
pub type ER_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FBE_R = crate::BitReader;
pub type FBE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CDE_R = crate::BitReader;
pub type CDE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AIS_R = crate::BitReader;
pub type AIS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type NIS_R = crate::BitReader;
pub type NIS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TEB_R = crate::FieldReader;
pub type REB_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn ti(&self) -> TI_R {
TI_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tps(&self) -> TPS_R {
TPS_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn tbu(&self) -> TBU_R {
TBU_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn ri(&self) -> RI_R {
RI_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn rbu(&self) -> RBU_R {
RBU_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn rps(&self) -> RPS_R {
RPS_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn rwt(&self) -> RWT_R {
RWT_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn et(&self) -> ET_R {
ET_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn er(&self) -> ER_R {
ER_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn fbe(&self) -> FBE_R {
FBE_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn cde(&self) -> CDE_R {
CDE_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn ais(&self) -> AIS_R {
AIS_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn nis(&self) -> NIS_R {
NIS_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn teb(&self) -> TEB_R {
TEB_R::new(((self.bits >> 16) & 7) as u8)
}
#[inline(always)]
pub fn reb(&self) -> REB_R {
REB_R::new(((self.bits >> 19) & 7) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DMACSR")
.field("ti", &self.ti())
.field("tps", &self.tps())
.field("tbu", &self.tbu())
.field("ri", &self.ri())
.field("rbu", &self.rbu())
.field("rps", &self.rps())
.field("rwt", &self.rwt())
.field("et", &self.et())
.field("er", &self.er())
.field("fbe", &self.fbe())
.field("cde", &self.cde())
.field("ais", &self.ais())
.field("nis", &self.nis())
.field("teb", &self.teb())
.field("reb", &self.reb())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ti(&mut self) -> TI_W<DMACSRrs> {
TI_W::new(self, 0)
}
#[inline(always)]
pub fn tps(&mut self) -> TPS_W<DMACSRrs> {
TPS_W::new(self, 1)
}
#[inline(always)]
pub fn tbu(&mut self) -> TBU_W<DMACSRrs> {
TBU_W::new(self, 2)
}
#[inline(always)]
pub fn ri(&mut self) -> RI_W<DMACSRrs> {
RI_W::new(self, 6)
}
#[inline(always)]
pub fn rbu(&mut self) -> RBU_W<DMACSRrs> {
RBU_W::new(self, 7)
}
#[inline(always)]
pub fn rps(&mut self) -> RPS_W<DMACSRrs> {
RPS_W::new(self, 8)
}
#[inline(always)]
pub fn rwt(&mut self) -> RWT_W<DMACSRrs> {
RWT_W::new(self, 9)
}
#[inline(always)]
pub fn et(&mut self) -> ET_W<DMACSRrs> {
ET_W::new(self, 10)
}
#[inline(always)]
pub fn er(&mut self) -> ER_W<DMACSRrs> {
ER_W::new(self, 11)
}
#[inline(always)]
pub fn fbe(&mut self) -> FBE_W<DMACSRrs> {
FBE_W::new(self, 12)
}
#[inline(always)]
pub fn cde(&mut self) -> CDE_W<DMACSRrs> {
CDE_W::new(self, 13)
}
#[inline(always)]
pub fn ais(&mut self) -> AIS_W<DMACSRrs> {
AIS_W::new(self, 14)
}
#[inline(always)]
pub fn nis(&mut self) -> NIS_W<DMACSRrs> {
NIS_W::new(self, 15)
}
}
pub struct DMACSRrs;
impl crate::RegisterSpec for DMACSRrs {
type Ux = u32;
}
impl crate::Readable for DMACSRrs {}
impl crate::Writable for DMACSRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DMACSRrs {}