stm32mp1/stm32mp157/ddrctrl/
perfhpr1.rs1pub type R = crate::R<PERFHPR1rs>;
3pub type W = crate::W<PERFHPR1rs>;
5pub type HPR_MAX_STARVE_R = crate::FieldReader<u16>;
7pub type HPR_MAX_STARVE_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
9pub type HPR_XACT_RUN_LENGTH_R = crate::FieldReader;
11pub type HPR_XACT_RUN_LENGTH_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13impl R {
14 #[inline(always)]
16 pub fn hpr_max_starve(&self) -> HPR_MAX_STARVE_R {
17 HPR_MAX_STARVE_R::new((self.bits & 0xffff) as u16)
18 }
19 #[inline(always)]
21 pub fn hpr_xact_run_length(&self) -> HPR_XACT_RUN_LENGTH_R {
22 HPR_XACT_RUN_LENGTH_R::new(((self.bits >> 24) & 0xff) as u8)
23 }
24}
25impl core::fmt::Debug for R {
26 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
27 f.debug_struct("PERFHPR1")
28 .field("hpr_max_starve", &self.hpr_max_starve())
29 .field("hpr_xact_run_length", &self.hpr_xact_run_length())
30 .finish()
31 }
32}
33impl W {
34 #[inline(always)]
36 pub fn hpr_max_starve(&mut self) -> HPR_MAX_STARVE_W<PERFHPR1rs> {
37 HPR_MAX_STARVE_W::new(self, 0)
38 }
39 #[inline(always)]
41 pub fn hpr_xact_run_length(&mut self) -> HPR_XACT_RUN_LENGTH_W<PERFHPR1rs> {
42 HPR_XACT_RUN_LENGTH_W::new(self, 24)
43 }
44}
45pub struct PERFHPR1rs;
51impl crate::RegisterSpec for PERFHPR1rs {
52 type Ux = u32;
53}
54impl crate::Readable for PERFHPR1rs {}
56impl crate::Writable for PERFHPR1rs {
58 type Safety = crate::Unsafe;
59}
60impl crate::Resettable for PERFHPR1rs {
62 const RESET_VALUE: u32 = 0x0f00_0001;
63}