pub type R = crate::R<PRAR_CURrs>;
pub type PROT_AREA_START_R = crate::FieldReader<u16>;
pub type PROT_AREA_END_R = crate::FieldReader<u16>;
pub type DMEP_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn prot_area_start(&self) -> PROT_AREA_START_R {
PROT_AREA_START_R::new((self.bits & 0x0fff) as u16)
}
#[inline(always)]
pub fn prot_area_end(&self) -> PROT_AREA_END_R {
PROT_AREA_END_R::new(((self.bits >> 16) & 0x0fff) as u16)
}
#[inline(always)]
pub fn dmep(&self) -> DMEP_R {
DMEP_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PRAR_CUR")
.field("prot_area_start", &self.prot_area_start())
.field("prot_area_end", &self.prot_area_end())
.field("dmep", &self.dmep())
.finish()
}
}
pub struct PRAR_CURrs;
impl crate::RegisterSpec for PRAR_CURrs {
type Ux = u32;
}
impl crate::Readable for PRAR_CURrs {}
impl crate::Resettable for PRAR_CURrs {}