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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
#[doc = r"Value read from the register"] pub struct R { bits: u32, } impl super::CREL { #[doc = r"Reads the contents of the register"] #[inline(always)] pub fn read(&self) -> R { R { bits: self.register.get(), } } } #[doc = r"Value of the field"] pub struct RELR { bits: u8, } impl RELR { #[doc = r"Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u8 { self.bits } } #[doc = r"Value of the field"] pub struct STEPR { bits: u8, } impl STEPR { #[doc = r"Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u8 { self.bits } } #[doc = r"Value of the field"] pub struct SUBSTEPR { bits: u8, } impl SUBSTEPR { #[doc = r"Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u8 { self.bits } } #[doc = r"Value of the field"] pub struct YEARR { bits: u8, } impl YEARR { #[doc = r"Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u8 { self.bits } } #[doc = r"Value of the field"] pub struct MONR { bits: u8, } impl MONR { #[doc = r"Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u8 { self.bits } } #[doc = r"Value of the field"] pub struct DAYR { bits: u8, } impl DAYR { #[doc = r"Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u8 { self.bits } } impl R { #[doc = r"Value of the register as raw bits"] #[inline(always)] pub fn bits(&self) -> u32 { self.bits } #[doc = "Bits 28:31 - Core release"] #[inline(always)] pub fn rel(&self) -> RELR { let bits = ((self.bits >> 28) & 0x0f) as u8; RELR { bits } } #[doc = "Bits 24:27 - Step of Core release"] #[inline(always)] pub fn step(&self) -> STEPR { let bits = ((self.bits >> 24) & 0x0f) as u8; STEPR { bits } } #[doc = "Bits 20:23 - Sub-step of Core release"] #[inline(always)] pub fn substep(&self) -> SUBSTEPR { let bits = ((self.bits >> 20) & 0x0f) as u8; SUBSTEPR { bits } } #[doc = "Bits 16:19 - Timestamp Year"] #[inline(always)] pub fn year(&self) -> YEARR { let bits = ((self.bits >> 16) & 0x0f) as u8; YEARR { bits } } #[doc = "Bits 8:15 - Timestamp Month"] #[inline(always)] pub fn mon(&self) -> MONR { let bits = ((self.bits >> 8) & 0xff) as u8; MONR { bits } } #[doc = "Bits 0:7 - Timestamp Day"] #[inline(always)] pub fn day(&self) -> DAYR { let bits = ((self.bits >> 0) & 0xff) as u8; DAYR { bits } } }