pub type R = crate::R<RDTRrs>;
pub type DLC_R = crate::FieldReader;
pub type FMI_R = crate::FieldReader;
pub type TIME_R = crate::FieldReader<u16>;
impl R {
#[inline(always)]
pub fn dlc(&self) -> DLC_R {
DLC_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn fmi(&self) -> FMI_R {
FMI_R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn time(&self) -> TIME_R {
TIME_R::new(((self.bits >> 16) & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RDTR")
.field("time", &self.time())
.field("fmi", &self.fmi())
.field("dlc", &self.dlc())
.finish()
}
}
pub struct RDTRrs;
impl crate::RegisterSpec for RDTRrs {
type Ux = u32;
}
impl crate::Readable for RDTRrs {}
impl crate::Resettable for RDTRrs {}