19 lines
619 B
Rust
19 lines
619 B
Rust
#[doc = "Reader of register CP0TYPE"]
|
|
pub type R = crate::R<u32, super::CP0TYPE>;
|
|
#[doc = "Reader of field `RYPZ`"]
|
|
pub type RYPZ_R = crate::R<u8, u8>;
|
|
#[doc = "Reader of field `PERSONALITY`"]
|
|
pub type PERSONALITY_R = crate::R<u32, u32>;
|
|
impl R {
|
|
#[doc = "Bits 0:7 - Processor 0 Revision"]
|
|
#[inline(always)]
|
|
pub fn rypz(&self) -> RYPZ_R {
|
|
RYPZ_R::new((self.bits & 0xff) as u8)
|
|
}
|
|
#[doc = "Bits 8:31 - Processor 0 Personality"]
|
|
#[inline(always)]
|
|
pub fn personality(&self) -> PERSONALITY_R {
|
|
PERSONALITY_R::new(((self.bits >> 8) & 0x00ff_ffff) as u32)
|
|
}
|
|
}
|