pub type R = crate::R<IDCrs>;
pub type DEV_ID_R = crate::FieldReader<u16>;
pub type REV_ID_R = crate::FieldReader<u16>;
impl R {
#[inline(always)]
pub fn dev_id(&self) -> DEV_ID_R {
DEV_ID_R::new((self.bits & 0x0fff) as u16)
}
#[inline(always)]
pub fn rev_id(&self) -> REV_ID_R {
REV_ID_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("IDC")
.field("dev_id", &self.dev_id())
.field("rev_id", &self.rev_id())
.finish()
}
}
pub struct IDCrs;
impl crate::RegisterSpec for IDCrs {
type Ux = u32;
}
impl crate::Readable for IDCrs {}
impl crate::Resettable for IDCrs {
const RESET_VALUE: u32 = 0x6485;
}