stm32mp1/stm32mp157/ddrctrl/
stat.rs1pub type R = crate::R<STATrs>;
3pub type OPERATING_MODE_R = crate::FieldReader;
5pub type SELFREF_TYPE_R = crate::FieldReader;
7pub type SELFREF_CAM_NOT_EMPTY_R = crate::BitReader;
9impl R {
10 #[inline(always)]
12 pub fn operating_mode(&self) -> OPERATING_MODE_R {
13 OPERATING_MODE_R::new((self.bits & 7) as u8)
14 }
15 #[inline(always)]
17 pub fn selfref_type(&self) -> SELFREF_TYPE_R {
18 SELFREF_TYPE_R::new(((self.bits >> 4) & 3) as u8)
19 }
20 #[inline(always)]
22 pub fn selfref_cam_not_empty(&self) -> SELFREF_CAM_NOT_EMPTY_R {
23 SELFREF_CAM_NOT_EMPTY_R::new(((self.bits >> 12) & 1) != 0)
24 }
25}
26impl core::fmt::Debug for R {
27 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
28 f.debug_struct("STAT")
29 .field("operating_mode", &self.operating_mode())
30 .field("selfref_type", &self.selfref_type())
31 .field("selfref_cam_not_empty", &self.selfref_cam_not_empty())
32 .finish()
33 }
34}
35pub struct STATrs;
41impl crate::RegisterSpec for STATrs {
42 type Ux = u32;
43}
44impl crate::Readable for STATrs {}
46impl crate::Resettable for STATrs {}