pub type R = crate::R<CPSRrs>;
pub type CYPOS_R = crate::FieldReader<u16>;
pub type CXPOS_R = crate::FieldReader<u16>;
impl R {
#[inline(always)]
pub fn cypos(&self) -> CYPOS_R {
CYPOS_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn cxpos(&self) -> CXPOS_R {
CXPOS_R::new(((self.bits >> 16) & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CPSR")
.field("cxpos", &self.cxpos())
.field("cypos", &self.cypos())
.finish()
}
}
pub struct CPSRrs;
impl crate::RegisterSpec for CPSRrs {
type Ux = u32;
}
impl crate::Readable for CPSRrs {}
impl crate::Resettable for CPSRrs {}