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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#[doc = "Register `BLK0_RDATA6` reader"]
pub struct R(crate::R<BLK0_RDATA6_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<BLK0_RDATA6_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<BLK0_RDATA6_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<BLK0_RDATA6_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `RD_CODING_SCHEME` reader - read for coding_scheme"]
pub type RD_CODING_SCHEME_R = crate::FieldReader<u8, u8>;
#[doc = "Field `RD_CONSOLE_DEBUG_DISABLE` reader - read for console_debug_disable"]
pub type RD_CONSOLE_DEBUG_DISABLE_R = crate::BitReader<bool>;
#[doc = "Field `RD_DISABLE_SDIO_HOST` reader - "]
pub type RD_DISABLE_SDIO_HOST_R = crate::BitReader<bool>;
#[doc = "Field `RD_ABS_DONE_0` reader - read for abstract_done_0"]
pub type RD_ABS_DONE_0_R = crate::BitReader<bool>;
#[doc = "Field `RD_ABS_DONE_1` reader - read for abstract_done_1"]
pub type RD_ABS_DONE_1_R = crate::BitReader<bool>;
#[doc = "Field `RD_DISABLE_JTAG` reader - read for JTAG_disable"]
pub type RD_DISABLE_JTAG_R = crate::BitReader<bool>;
#[doc = "Field `RD_DISABLE_DL_ENCRYPT` reader - read for download_dis_encrypt"]
pub type RD_DISABLE_DL_ENCRYPT_R = crate::BitReader<bool>;
#[doc = "Field `RD_DISABLE_DL_DECRYPT` reader - read for download_dis_decrypt"]
pub type RD_DISABLE_DL_DECRYPT_R = crate::BitReader<bool>;
#[doc = "Field `RD_DISABLE_DL_CACHE` reader - read for download_dis_cache"]
pub type RD_DISABLE_DL_CACHE_R = crate::BitReader<bool>;
#[doc = "Field `RD_KEY_STATUS` reader - read for key_status"]
pub type RD_KEY_STATUS_R = crate::BitReader<bool>;
impl R {
#[doc = "Bits 0:1 - read for coding_scheme"]
#[inline(always)]
pub fn rd_coding_scheme(&self) -> RD_CODING_SCHEME_R {
RD_CODING_SCHEME_R::new((self.bits & 3) as u8)
}
#[doc = "Bit 2 - read for console_debug_disable"]
#[inline(always)]
pub fn rd_console_debug_disable(&self) -> RD_CONSOLE_DEBUG_DISABLE_R {
RD_CONSOLE_DEBUG_DISABLE_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3"]
#[inline(always)]
pub fn rd_disable_sdio_host(&self) -> RD_DISABLE_SDIO_HOST_R {
RD_DISABLE_SDIO_HOST_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - read for abstract_done_0"]
#[inline(always)]
pub fn rd_abs_done_0(&self) -> RD_ABS_DONE_0_R {
RD_ABS_DONE_0_R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - read for abstract_done_1"]
#[inline(always)]
pub fn rd_abs_done_1(&self) -> RD_ABS_DONE_1_R {
RD_ABS_DONE_1_R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - read for JTAG_disable"]
#[inline(always)]
pub fn rd_disable_jtag(&self) -> RD_DISABLE_JTAG_R {
RD_DISABLE_JTAG_R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - read for download_dis_encrypt"]
#[inline(always)]
pub fn rd_disable_dl_encrypt(&self) -> RD_DISABLE_DL_ENCRYPT_R {
RD_DISABLE_DL_ENCRYPT_R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8 - read for download_dis_decrypt"]
#[inline(always)]
pub fn rd_disable_dl_decrypt(&self) -> RD_DISABLE_DL_DECRYPT_R {
RD_DISABLE_DL_DECRYPT_R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - read for download_dis_cache"]
#[inline(always)]
pub fn rd_disable_dl_cache(&self) -> RD_DISABLE_DL_CACHE_R {
RD_DISABLE_DL_CACHE_R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10 - read for key_status"]
#[inline(always)]
pub fn rd_key_status(&self) -> RD_KEY_STATUS_R {
RD_KEY_STATUS_R::new(((self.bits >> 10) & 1) != 0)
}
}
#[doc = "\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 [blk0_rdata6](index.html) module"]
pub struct BLK0_RDATA6_SPEC;
impl crate::RegisterSpec for BLK0_RDATA6_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [blk0_rdata6::R](R) reader structure"]
impl crate::Readable for BLK0_RDATA6_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets BLK0_RDATA6 to value 0"]
impl crate::Resettable for BLK0_RDATA6_SPEC {
const RESET_VALUE: Self::Ux = 0;
}