pub type R = crate::R<SRrs>;
pub type AP_PRESENT_R = crate::FieldReader<u16>;
pub type AP_ENABLED_R = crate::FieldReader<u16>;
impl R {
#[inline(always)]
pub fn ap_present(&self) -> AP_PRESENT_R {
AP_PRESENT_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn ap_enabled(&self) -> AP_ENABLED_R {
AP_ENABLED_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("SR")
.field("ap_present", &self.ap_present())
.field("ap_enabled", &self.ap_enabled())
.finish()
}
}
pub struct SRrs;
impl crate::RegisterSpec for SRrs {
type Ux = u32;
}
impl crate::Readable for SRrs {}
impl crate::Resettable for SRrs {
const RESET_VALUE: u32 = 0x0001_0003;
}