pub type R = crate::R<DMASBMRrs>;
pub type W = crate::W<DMASBMRrs>;
pub type FB_R = crate::BitReader;
pub type FB_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AAL_R = crate::BitReader;
pub type AAL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type MB_R = crate::BitReader;
pub type MB_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RB_R = crate::BitReader;
pub type RB_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn fb(&self) -> FB_R {
FB_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn aal(&self) -> AAL_R {
AAL_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn mb(&self) -> MB_R {
MB_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn rb(&self) -> RB_R {
RB_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("DMASBMR")
.field("fb", &self.fb())
.field("aal", &self.aal())
.field("mb", &self.mb())
.field("rb", &self.rb())
.finish()
}
}
impl W {
#[inline(always)]
pub fn fb(&mut self) -> FB_W<DMASBMRrs> {
FB_W::new(self, 0)
}
#[inline(always)]
pub fn aal(&mut self) -> AAL_W<DMASBMRrs> {
AAL_W::new(self, 12)
}
#[inline(always)]
pub fn mb(&mut self) -> MB_W<DMASBMRrs> {
MB_W::new(self, 14)
}
#[inline(always)]
pub fn rb(&mut self) -> RB_W<DMASBMRrs> {
RB_W::new(self, 15)
}
}
pub struct DMASBMRrs;
impl crate::RegisterSpec for DMASBMRrs {
type Ux = u32;
}
impl crate::Readable for DMASBMRrs {}
impl crate::Writable for DMASBMRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DMASBMRrs {
const RESET_VALUE: u32 = 0x0101_0000;
}