pub type R = crate::R<IDMACTRLRrs>;
pub type W = crate::W<IDMACTRLRrs>;
pub type IDMAEN_R = crate::BitReader;
pub type IDMAEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type IDMABMODE_R = crate::BitReader;
pub type IDMABMODE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn idmaen(&self) -> IDMAEN_R {
IDMAEN_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn idmabmode(&self) -> IDMABMODE_R {
IDMABMODE_R::new(((self.bits >> 1) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IDMACTRLR")
.field("idmaen", &self.idmaen())
.field("idmabmode", &self.idmabmode())
.finish()
}
}
impl W {
#[inline(always)]
pub fn idmaen(&mut self) -> IDMAEN_W<IDMACTRLRrs> {
IDMAEN_W::new(self, 0)
}
#[inline(always)]
pub fn idmabmode(&mut self) -> IDMABMODE_W<IDMACTRLRrs> {
IDMABMODE_W::new(self, 1)
}
}
pub struct IDMACTRLRrs;
impl crate::RegisterSpec for IDMACTRLRrs {
type Ux = u32;
}
impl crate::Readable for IDMACTRLRrs {}
impl crate::Writable for IDMACTRLRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IDMACTRLRrs {}