pub type R = crate::R<DMARrs>;
pub type W = crate::W<DMARrs>;
pub type DMAB_R = crate::FieldReader<u16>;
pub type DMAB_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn dmab(&self) -> DMAB_R {
DMAB_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DMAR").field("dmab", &self.dmab()).finish()
}
}
impl W {
#[inline(always)]
pub fn dmab(&mut self) -> DMAB_W<DMARrs> {
DMAB_W::new(self, 0)
}
}
pub struct DMARrs;
impl crate::RegisterSpec for DMARrs {
type Ux = u32;
}
impl crate::Readable for DMARrs {}
impl crate::Writable for DMARrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DMARrs {}