efm32pg12_pac/etm/
etmpidr2.rs1#[doc = "Reader of register ETMPIDR2"]
2pub type R = crate::R<u32, super::ETMPIDR2>;
3#[doc = "Reader of field `IDCODE`"]
4pub type IDCODE_R = crate::R<u8, u8>;
5#[doc = "Reader of field `ALWAYS1`"]
6pub type ALWAYS1_R = crate::R<bool, bool>;
7#[doc = "Reader of field `REV`"]
8pub type REV_R = crate::R<u8, u8>;
9impl R {
10 #[doc = "Bits 0:2 - JEP106 Identity Code"]
11 #[inline(always)]
12 pub fn idcode(&self) -> IDCODE_R {
13 IDCODE_R::new((self.bits & 0x07) as u8)
14 }
15 #[doc = "Bit 3 - Always 1"]
16 #[inline(always)]
17 pub fn always1(&self) -> ALWAYS1_R {
18 ALWAYS1_R::new(((self.bits >> 3) & 0x01) != 0)
19 }
20 #[doc = "Bits 4:7 - Revision"]
21 #[inline(always)]
22 pub fn rev(&self) -> REV_R {
23 REV_R::new(((self.bits >> 4) & 0x0f) as u8)
24 }
25}