pub type R = crate::R<HDPSRPrs>;
pub type W = crate::W<HDPSRPrs>;
pub type HDP_AREA_START_R = crate::FieldReader<u16>;
pub type HDP_AREA_START_W<'a, REG> = crate::FieldWriter<'a, REG, 9, u16>;
pub type HDP_AREA_END_R = crate::FieldReader<u16>;
pub type HDP_AREA_END_W<'a, REG> = crate::FieldWriter<'a, REG, 9, u16>;
impl R {
#[inline(always)]
pub fn hdp_area_start(&self) -> HDP_AREA_START_R {
HDP_AREA_START_R::new((self.bits & 0x01ff) as u16)
}
#[inline(always)]
pub fn hdp_area_end(&self) -> HDP_AREA_END_R {
HDP_AREA_END_R::new(((self.bits >> 16) & 0x01ff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HDPSRP")
.field("hdp_area_start", &self.hdp_area_start())
.field("hdp_area_end", &self.hdp_area_end())
.finish()
}
}
impl W {
#[inline(always)]
pub fn hdp_area_start(&mut self) -> HDP_AREA_START_W<HDPSRPrs> {
HDP_AREA_START_W::new(self, 0)
}
#[inline(always)]
pub fn hdp_area_end(&mut self) -> HDP_AREA_END_W<HDPSRPrs> {
HDP_AREA_END_W::new(self, 16)
}
}
pub struct HDPSRPrs;
impl crate::RegisterSpec for HDPSRPrs {
type Ux = u32;
}
impl crate::Readable for HDPSRPrs {}
impl crate::Writable for HDPSRPrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for HDPSRPrs {}