pub type R = crate::R<DMACTX_DTPRrs>;
pub type W = crate::W<DMACTX_DTPRrs>;
pub type TDT_R = crate::FieldReader<u32>;
pub type TDT_W<'a, REG> = crate::FieldWriter<'a, REG, 30, u32>;
impl R {
#[inline(always)]
pub fn tdt(&self) -> TDT_R {
TDT_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("DMACTxDTPR").field("tdt", &self.tdt()).finish()
}
}
impl W {
#[inline(always)]
pub fn tdt(&mut self) -> TDT_W<DMACTX_DTPRrs> {
TDT_W::new(self, 2)
}
}
pub struct DMACTX_DTPRrs;
impl crate::RegisterSpec for DMACTX_DTPRrs {
type Ux = u32;
}
impl crate::Readable for DMACTX_DTPRrs {}
impl crate::Writable for DMACTX_DTPRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DMACTX_DTPRrs {}