s32k118.rs/src/mscm/cp0num.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
321 B
Rust

#[doc = "Reader of register CP0NUM"]
pub type R = crate::R<u32, super::CP0NUM>;
#[doc = "Reader of field `CPN`"]
pub type CPN_R = crate::R<bool, bool>;
impl R {
#[doc = "Bit 0 - Processor 0 Number"]
#[inline(always)]
pub fn cpn(&self) -> CPN_R {
CPN_R::new((self.bits & 0x01) != 0)
}
}