s32k118.rs/src/mscm/cpx_count.rs
Sean Cross 96cd7368a2 s32k118: rewrite everything for s32k118
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-07 18:24:29 +08:00

12 lines
327 B
Rust

#[doc = "Reader of register CPxCOUNT"]
pub type R = crate::R<u32, super::CPXCOUNT>;
#[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)
}
}