ADuCM302x 0.1.0

A Peripheral Access Crate for the Analog Devices ADuCM302x series of MCUs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[doc = "Reader of register CHIPID"]
pub type R = crate::R<u16, super::CHIPID>;
#[doc = "Reader of field `REV`"]
pub type REV_R = crate::R<u8, u8>;
#[doc = "Reader of field `PARTID`"]
pub type PARTID_R = crate::R<u16, u16>;
impl R {
    #[doc = "Bits 0:3 - Silicon Revision"]
    #[inline(always)]
    pub fn rev(&self) -> REV_R {
        REV_R::new((self.bits & 0x0f) as u8)
    }
    #[doc = "Bits 4:15 - Part Identifier"]
    #[inline(always)]
    pub fn partid(&self) -> PARTID_R {
        PARTID_R::new(((self.bits >> 4) & 0x0fff) as u16)
    }
}