esp32/dport/
access_check.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#[doc = "Register `ACCESS_CHECK` reader"]
pub type R = crate::R<ACCESS_CHECK_SPEC>;
#[doc = "Field `PRO` reader - "]
pub type PRO_R = crate::BitReader;
#[doc = "Field `APP` reader - "]
pub type APP_R = crate::BitReader;
impl R {
    #[doc = "Bit 0"]
    #[inline(always)]
    pub fn pro(&self) -> PRO_R {
        PRO_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 8"]
    #[inline(always)]
    pub fn app(&self) -> APP_R {
        APP_R::new(((self.bits >> 8) & 1) != 0)
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("ACCESS_CHECK")
            .field("pro", &self.pro())
            .field("app", &self.app())
            .finish()
    }
}
#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`access_check::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ACCESS_CHECK_SPEC;
impl crate::RegisterSpec for ACCESS_CHECK_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`access_check::R`](R) reader structure"]
impl crate::Readable for ACCESS_CHECK_SPEC {}
#[doc = "`reset()` method sets ACCESS_CHECK to value 0"]
impl crate::Resettable for ACCESS_CHECK_SPEC {
    const RESET_VALUE: u32 = 0;
}