pub type R = crate::R<DLENrs>;
pub type W = crate::W<DLENrs>;
pub type DATALENGTH_R = crate::FieldReader<u32>;
pub type DATALENGTH_W<'a, REG> = crate::FieldWriter<'a, REG, 25, u32, crate::Safe>;
impl R {
#[inline(always)]
pub fn datalength(&self) -> DATALENGTH_R {
DATALENGTH_R::new(self.bits & 0x01ff_ffff)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DLEN")
.field("datalength", &self.datalength())
.finish()
}
}
impl W {
#[inline(always)]
pub fn datalength(&mut self) -> DATALENGTH_W<DLENrs> {
DATALENGTH_W::new(self, 0)
}
}
pub struct DLENrs;
impl crate::RegisterSpec for DLENrs {
type Ux = u32;
}
impl crate::Readable for DLENrs {}
impl crate::Writable for DLENrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DLENrs {}