s32k118.rs/src/mscm/cp0count.rs

12 lines
327 B
Rust

#[doc = "Reader of register CP0COUNT"]
pub type R = crate::R<u32, super::CP0COUNT>;
#[doc = "Reader of field `PCNT`"]
pub type PCNT_R = crate::R<u8, u8>;
impl R {
#[doc = "Bits 0:1 - Processor Count"]
#[inline(always)]
pub fn pcnt(&self) -> PCNT_R {
PCNT_R::new((self.bits & 0x03) as u8)
}
}