pub type R = crate::R<CDRrs>;
pub type DATA1_R = crate::FieldReader<u16>;
pub type DATA2_R = crate::FieldReader<u16>;
impl R {
#[inline(always)]
pub fn data1(&self) -> DATA1_R {
DATA1_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn data2(&self) -> DATA2_R {
DATA2_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("CDR")
.field("data2", &self.data2())
.field("data1", &self.data1())
.finish()
}
}
pub struct CDRrs;
impl crate::RegisterSpec for CDRrs {
type Ux = u32;
}
impl crate::Readable for CDRrs {}
impl crate::Resettable for CDRrs {}