cc2650/flash/
efusestat.rs1#[doc = r" Value read from the register"]
2pub struct R {
3 bits: u32,
4}
5impl super::EFUSESTAT {
6 #[doc = r" Reads the contents of the register"]
7 #[inline]
8 pub fn read(&self) -> R {
9 R { bits: self.register.get() }
10 }
11}
12#[doc = r" Value of the field"]
13pub struct RESERVED1R {
14 bits: u32,
15}
16impl RESERVED1R {
17 #[doc = r" Value of the field as raw bits"]
18 #[inline]
19 pub fn bits(&self) -> u32 {
20 self.bits
21 }
22}
23#[doc = r" Value of the field"]
24pub struct RESETDONER {
25 bits: bool,
26}
27impl RESETDONER {
28 #[doc = r" Value of the field as raw bits"]
29 #[inline]
30 pub fn bit(&self) -> bool {
31 self.bits
32 }
33 #[doc = r" Returns `true` if the bit is clear (0)"]
34 #[inline]
35 pub fn bit_is_clear(&self) -> bool {
36 !self.bit()
37 }
38 #[doc = r" Returns `true` if the bit is set (1)"]
39 #[inline]
40 pub fn bit_is_set(&self) -> bool {
41 self.bit()
42 }
43}
44impl R {
45 #[doc = r" Value of the register as raw bits"]
46 #[inline]
47 pub fn bits(&self) -> u32 {
48 self.bits
49 }
50 #[doc = "Bits 1:31 - Internal. Only to be used through TI provided API."]
51 #[inline]
52 pub fn reserved1(&self) -> RESERVED1R {
53 let bits = {
54 const MASK: u32 = 2147483647;
55 const OFFSET: u8 = 1;
56 ((self.bits >> OFFSET) & MASK as u32) as u32
57 };
58 RESERVED1R { bits }
59 }
60 #[doc = "Bit 0 - Internal. Only to be used through TI provided API."]
61 #[inline]
62 pub fn resetdone(&self) -> RESETDONER {
63 let bits = {
64 const MASK: bool = true;
65 const OFFSET: u8 = 0;
66 ((self.bits >> OFFSET) & MASK as u32) != 0
67 };
68 RESETDONER { bits }
69 }
70}