pub type R = crate::R<DMABMRrs>;
pub type W = crate::W<DMABMRrs>;
pub type SR_R = crate::BitReader;
pub type SR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DA_R = crate::BitReader;
pub type DA_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DSL_R = crate::FieldReader;
pub type DSL_W<'a, REG> = crate::FieldWriter<'a, REG, 5>;
pub type EDFE_R = crate::BitReader;
pub type EDFE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PBL_R = crate::FieldReader;
pub type PBL_W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
pub type PM_R = crate::FieldReader;
pub type PM_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type FB_R = crate::BitReader;
pub type FB_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RDP_R = crate::FieldReader;
pub type RDP_W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
pub type USP_R = crate::BitReader;
pub type USP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FPM_R = crate::BitReader;
pub type FPM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AAB_R = crate::BitReader;
pub type AAB_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type MB_R = crate::BitReader;
pub type MB_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn sr(&self) -> SR_R {
SR_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn da(&self) -> DA_R {
DA_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dsl(&self) -> DSL_R {
DSL_R::new(((self.bits >> 2) & 0x1f) as u8)
}
#[inline(always)]
pub fn edfe(&self) -> EDFE_R {
EDFE_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn pbl(&self) -> PBL_R {
PBL_R::new(((self.bits >> 8) & 0x3f) as u8)
}
#[inline(always)]
pub fn pm(&self) -> PM_R {
PM_R::new(((self.bits >> 14) & 3) as u8)
}
#[inline(always)]
pub fn fb(&self) -> FB_R {
FB_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn rdp(&self) -> RDP_R {
RDP_R::new(((self.bits >> 17) & 0x3f) as u8)
}
#[inline(always)]
pub fn usp(&self) -> USP_R {
USP_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn fpm(&self) -> FPM_R {
FPM_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn aab(&self) -> AAB_R {
AAB_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn mb(&self) -> MB_R {
MB_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("DMABMR")
.field("sr", &self.sr())
.field("da", &self.da())
.field("dsl", &self.dsl())
.field("edfe", &self.edfe())
.field("pbl", &self.pbl())
.field("pm", &self.pm())
.field("fb", &self.fb())
.field("rdp", &self.rdp())
.field("usp", &self.usp())
.field("fpm", &self.fpm())
.field("aab", &self.aab())
.field("mb", &self.mb())
.finish()
}
}
impl W {
#[inline(always)]
pub fn sr(&mut self) -> SR_W<DMABMRrs> {
SR_W::new(self, 0)
}
#[inline(always)]
pub fn da(&mut self) -> DA_W<DMABMRrs> {
DA_W::new(self, 1)
}
#[inline(always)]
pub fn dsl(&mut self) -> DSL_W<DMABMRrs> {
DSL_W::new(self, 2)
}
#[inline(always)]
pub fn edfe(&mut self) -> EDFE_W<DMABMRrs> {
EDFE_W::new(self, 7)
}
#[inline(always)]
pub fn pbl(&mut self) -> PBL_W<DMABMRrs> {
PBL_W::new(self, 8)
}
#[inline(always)]
pub fn pm(&mut self) -> PM_W<DMABMRrs> {
PM_W::new(self, 14)
}
#[inline(always)]
pub fn fb(&mut self) -> FB_W<DMABMRrs> {
FB_W::new(self, 16)
}
#[inline(always)]
pub fn rdp(&mut self) -> RDP_W<DMABMRrs> {
RDP_W::new(self, 17)
}
#[inline(always)]
pub fn usp(&mut self) -> USP_W<DMABMRrs> {
USP_W::new(self, 23)
}
#[inline(always)]
pub fn fpm(&mut self) -> FPM_W<DMABMRrs> {
FPM_W::new(self, 24)
}
#[inline(always)]
pub fn aab(&mut self) -> AAB_W<DMABMRrs> {
AAB_W::new(self, 25)
}
#[inline(always)]
pub fn mb(&mut self) -> MB_W<DMABMRrs> {
MB_W::new(self, 26)
}
}
pub struct DMABMRrs;
impl crate::RegisterSpec for DMABMRrs {
type Ux = u32;
}
impl crate::Readable for DMABMRrs {}
impl crate::Writable for DMABMRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DMABMRrs {
const RESET_VALUE: u32 = 0x0002_0101;
}