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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#[doc = "Register `PRODTEST[%s]` reader"]
pub struct R(crate::R<PRODTEST_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<PRODTEST_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<PRODTEST_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<PRODTEST_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `PRODTEST` reader - Production test signature n"]
pub type PRODTEST_R = crate::FieldReader<u32, PRODTEST_A>;
#[doc = "Production test signature n\n\nValue on reset: 4294967295"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u32)]
pub enum PRODTEST_A {
    #[doc = "3141677471: Production tests done"]
    DONE = 3141677471,
    #[doc = "4294967295: Production tests not done"]
    NOT_DONE = 4294967295,
}
impl From<PRODTEST_A> for u32 {
    #[inline(always)]
    fn from(variant: PRODTEST_A) -> Self {
        variant as _
    }
}
impl PRODTEST_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<PRODTEST_A> {
        match self.bits {
            3141677471 => Some(PRODTEST_A::DONE),
            4294967295 => Some(PRODTEST_A::NOT_DONE),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `DONE`"]
    #[inline(always)]
    pub fn is_done(&self) -> bool {
        *self == PRODTEST_A::DONE
    }
    #[doc = "Checks if the value of the field is `NOT_DONE`"]
    #[inline(always)]
    pub fn is_not_done(&self) -> bool {
        *self == PRODTEST_A::NOT_DONE
    }
}
impl R {
    #[doc = "Bits 0:31 - Production test signature n"]
    #[inline(always)]
    pub fn prodtest(&self) -> PRODTEST_R {
        PRODTEST_R::new(self.bits)
    }
}
#[doc = "Description collection\\[n\\]: Production test signature n\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 [prodtest](index.html) module"]
pub struct PRODTEST_SPEC;
impl crate::RegisterSpec for PRODTEST_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [prodtest::R](R) reader structure"]
impl crate::Readable for PRODTEST_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets PRODTEST[%s]
to value 0xffff_ffff"]
impl crate::Resettable for PRODTEST_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0xffff_ffff
    }
}