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
39
40
41
42
43
44
45
46
47
#[doc = "Register `SYS_SYSTEM_STAT` reader"]
pub struct R(crate::R<SYS_SYSTEM_STAT_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<SYS_SYSTEM_STAT_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<SYS_SYSTEM_STAT_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<SYS_SYSTEM_STAT_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `DBG_SEC_ACT` reader - Debug Security active"]
pub type DBG_SEC_ACT_R = crate::BitReader<bool>;
#[doc = "Field `JTAG_SWD_LOCK_ACT` reader - Indicates if JTAG and SWD Lock is active"]
pub type JTAG_SWD_LOCK_ACT_R = crate::BitReader<bool>;
#[doc = "Field `IP_PROT_ACT` reader - Indicates if IP protection is active"]
pub type IP_PROT_ACT_R = crate::BitReader<bool>;
impl R {
    #[doc = "Bit 3 - Debug Security active"]
    #[inline(always)]
    pub fn dbg_sec_act(&self) -> DBG_SEC_ACT_R {
        DBG_SEC_ACT_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Indicates if JTAG and SWD Lock is active"]
    #[inline(always)]
    pub fn jtag_swd_lock_act(&self) -> JTAG_SWD_LOCK_ACT_R {
        JTAG_SWD_LOCK_ACT_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Indicates if IP protection is active"]
    #[inline(always)]
    pub fn ip_prot_act(&self) -> IP_PROT_ACT_R {
        IP_PROT_ACT_R::new(((self.bits >> 5) & 1) != 0)
    }
}
#[doc = "System Status Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [sys_system_stat](index.html) module"]
pub struct SYS_SYSTEM_STAT_SPEC;
impl crate::RegisterSpec for SYS_SYSTEM_STAT_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [sys_system_stat::R](R) reader structure"]
impl crate::Readable for SYS_SYSTEM_STAT_SPEC {
    type Reader = R;
}