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
48
49
50
51
52
53
54
55
56
#[doc = "Register `MIRRALLSTAT` reader"]
pub type R = crate::R<MIRRALLSTAT_SPEC>;
#[doc = "Mirror All Execution Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum BUSY_A {
    #[doc = "0: No update is pening"]
    VALUE1 = 0,
    #[doc = "1: Update is pending"]
    VALUE2 = 1,
}
impl From<BUSY_A> for bool {
    #[inline(always)]
    fn from(variant: BUSY_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `BUSY` reader - Mirror All Execution Status"]
pub type BUSY_R = crate::BitReader<BUSY_A>;
impl BUSY_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> BUSY_A {
        match self.bits {
            false => BUSY_A::VALUE1,
            true => BUSY_A::VALUE2,
        }
    }
    #[doc = "No update is pening"]
    #[inline(always)]
    pub fn is_value1(&self) -> bool {
        *self == BUSY_A::VALUE1
    }
    #[doc = "Update is pending"]
    #[inline(always)]
    pub fn is_value2(&self) -> bool {
        *self == BUSY_A::VALUE2
    }
}
impl R {
    #[doc = "Bit 0 - Mirror All Execution Status"]
    #[inline(always)]
    pub fn busy(&self) -> BUSY_R {
        BUSY_R::new((self.bits & 1) != 0)
    }
}
#[doc = "Mirror All Status\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mirrallstat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct MIRRALLSTAT_SPEC;
impl crate::RegisterSpec for MIRRALLSTAT_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`mirrallstat::R`](R) reader structure"]
impl crate::Readable for MIRRALLSTAT_SPEC {}
#[doc = "`reset()` method sets MIRRALLSTAT to value 0"]
impl crate::Resettable for MIRRALLSTAT_SPEC {
    const RESET_VALUE: u32 = 0;
}