pub type R = crate::R<DMACRX_DTPRrs>;
pub type W = crate::W<DMACRX_DTPRrs>;
pub type RDT_R = crate::FieldReader<u32>;
pub type RDT_W<'a, REG> = crate::FieldWriter<'a, REG, 30, u32>;
impl R {
#[inline(always)]
pub fn rdt(&self) -> RDT_R {
RDT_R::new((self.bits >> 2) & 0x3fff_ffff)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DMACRxDTPR").field("rdt", &self.rdt()).finish()
}
}
impl W {
#[inline(always)]
pub fn rdt(&mut self) -> RDT_W<DMACRX_DTPRrs> {
RDT_W::new(self, 2)
}
}
pub struct DMACRX_DTPRrs;
impl crate::RegisterSpec for DMACRX_DTPRrs {
type Ux = u32;
}
impl crate::Readable for DMACRX_DTPRrs {}
impl crate::Writable for DMACRX_DTPRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DMACRX_DTPRrs {}