pub type R = crate::R<DMAOMRrs>;
pub type W = crate::W<DMAOMRrs>;
pub type SR_R = crate::BitReader;
pub type SR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OSF_R = crate::BitReader;
pub type OSF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RTC_R = crate::FieldReader;
pub type RTC_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type FUGF_R = crate::BitReader;
pub type FUGF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FEF_R = crate::BitReader;
pub type FEF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ST_R = crate::BitReader;
pub type ST_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TTC_R = crate::FieldReader;
pub type TTC_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type FTF_R = crate::BitReader;
pub type FTF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSF_R = crate::BitReader;
pub type TSF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DFRF_R = crate::BitReader;
pub type DFRF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RSF_R = crate::BitReader;
pub type RSF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DTCEFD_R = crate::BitReader;
pub type DTCEFD_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn sr(&self) -> SR_R {
SR_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn osf(&self) -> OSF_R {
OSF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn rtc(&self) -> RTC_R {
RTC_R::new(((self.bits >> 3) & 3) as u8)
}
#[inline(always)]
pub fn fugf(&self) -> FUGF_R {
FUGF_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn fef(&self) -> FEF_R {
FEF_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn st(&self) -> ST_R {
ST_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn ttc(&self) -> TTC_R {
TTC_R::new(((self.bits >> 14) & 7) as u8)
}
#[inline(always)]
pub fn ftf(&self) -> FTF_R {
FTF_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn tsf(&self) -> TSF_R {
TSF_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn dfrf(&self) -> DFRF_R {
DFRF_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn rsf(&self) -> RSF_R {
RSF_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn dtcefd(&self) -> DTCEFD_R {
DTCEFD_R::new(((self.bits >> 26) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DMAOMR")
.field("sr", &self.sr())
.field("osf", &self.osf())
.field("rtc", &self.rtc())
.field("fugf", &self.fugf())
.field("fef", &self.fef())
.field("st", &self.st())
.field("ttc", &self.ttc())
.field("ftf", &self.ftf())
.field("tsf", &self.tsf())
.field("dfrf", &self.dfrf())
.field("rsf", &self.rsf())
.field("dtcefd", &self.dtcefd())
.finish()
}
}
impl W {
#[inline(always)]
pub fn sr(&mut self) -> SR_W<DMAOMRrs> {
SR_W::new(self, 1)
}
#[inline(always)]
pub fn osf(&mut self) -> OSF_W<DMAOMRrs> {
OSF_W::new(self, 2)
}
#[inline(always)]
pub fn rtc(&mut self) -> RTC_W<DMAOMRrs> {
RTC_W::new(self, 3)
}
#[inline(always)]
pub fn fugf(&mut self) -> FUGF_W<DMAOMRrs> {
FUGF_W::new(self, 6)
}
#[inline(always)]
pub fn fef(&mut self) -> FEF_W<DMAOMRrs> {
FEF_W::new(self, 7)
}
#[inline(always)]
pub fn st(&mut self) -> ST_W<DMAOMRrs> {
ST_W::new(self, 13)
}
#[inline(always)]
pub fn ttc(&mut self) -> TTC_W<DMAOMRrs> {
TTC_W::new(self, 14)
}
#[inline(always)]
pub fn ftf(&mut self) -> FTF_W<DMAOMRrs> {
FTF_W::new(self, 20)
}
#[inline(always)]
pub fn tsf(&mut self) -> TSF_W<DMAOMRrs> {
TSF_W::new(self, 21)
}
#[inline(always)]
pub fn dfrf(&mut self) -> DFRF_W<DMAOMRrs> {
DFRF_W::new(self, 24)
}
#[inline(always)]
pub fn rsf(&mut self) -> RSF_W<DMAOMRrs> {
RSF_W::new(self, 25)
}
#[inline(always)]
pub fn dtcefd(&mut self) -> DTCEFD_W<DMAOMRrs> {
DTCEFD_W::new(self, 26)
}
}
pub struct DMAOMRrs;
impl crate::RegisterSpec for DMAOMRrs {
type Ux = u32;
}
impl crate::Readable for DMAOMRrs {}
impl crate::Writable for DMAOMRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DMAOMRrs {}