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 123 124 125 126 127
#[doc = "Reader of register CSR"] pub type R = crate::R<u32, super::CSR>; #[doc = "Status of the value of CCM_REF_EN_B output of ccm\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum REF_EN_B_A { #[doc = "0: value of CCM_REF_EN_B is '0'"] REF_EN_B_0 = 0, #[doc = "1: value of CCM_REF_EN_B is '1'"] REF_EN_B_1 = 1, } impl From<REF_EN_B_A> for bool { #[inline(always)] fn from(variant: REF_EN_B_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `REF_EN_B`"] pub type REF_EN_B_R = crate::R<bool, REF_EN_B_A>; impl REF_EN_B_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> REF_EN_B_A { match self.bits { false => REF_EN_B_A::REF_EN_B_0, true => REF_EN_B_A::REF_EN_B_1, } } #[doc = "Checks if the value of the field is `REF_EN_B_0`"] #[inline(always)] pub fn is_ref_en_b_0(&self) -> bool { *self == REF_EN_B_A::REF_EN_B_0 } #[doc = "Checks if the value of the field is `REF_EN_B_1`"] #[inline(always)] pub fn is_ref_en_b_1(&self) -> bool { *self == REF_EN_B_A::REF_EN_B_1 } } #[doc = "Status indication of CAMP2.\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum CAMP2_READY_A { #[doc = "0: CAMP2 is not ready."] CAMP2_READY_0 = 0, #[doc = "1: CAMP2 is ready."] CAMP2_READY_1 = 1, } impl From<CAMP2_READY_A> for bool { #[inline(always)] fn from(variant: CAMP2_READY_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `CAMP2_READY`"] pub type CAMP2_READY_R = crate::R<bool, CAMP2_READY_A>; impl CAMP2_READY_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> CAMP2_READY_A { match self.bits { false => CAMP2_READY_A::CAMP2_READY_0, true => CAMP2_READY_A::CAMP2_READY_1, } } #[doc = "Checks if the value of the field is `CAMP2_READY_0`"] #[inline(always)] pub fn is_camp2_ready_0(&self) -> bool { *self == CAMP2_READY_A::CAMP2_READY_0 } #[doc = "Checks if the value of the field is `CAMP2_READY_1`"] #[inline(always)] pub fn is_camp2_ready_1(&self) -> bool { *self == CAMP2_READY_A::CAMP2_READY_1 } } #[doc = "Status indication of on board oscillator\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum COSC_READY_A { #[doc = "0: on board oscillator is not ready."] COSC_READY_0 = 0, #[doc = "1: on board oscillator is ready."] COSC_READY_1 = 1, } impl From<COSC_READY_A> for bool { #[inline(always)] fn from(variant: COSC_READY_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `COSC_READY`"] pub type COSC_READY_R = crate::R<bool, COSC_READY_A>; impl COSC_READY_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> COSC_READY_A { match self.bits { false => COSC_READY_A::COSC_READY_0, true => COSC_READY_A::COSC_READY_1, } } #[doc = "Checks if the value of the field is `COSC_READY_0`"] #[inline(always)] pub fn is_cosc_ready_0(&self) -> bool { *self == COSC_READY_A::COSC_READY_0 } #[doc = "Checks if the value of the field is `COSC_READY_1`"] #[inline(always)] pub fn is_cosc_ready_1(&self) -> bool { *self == COSC_READY_A::COSC_READY_1 } } impl R { #[doc = "Bit 0 - Status of the value of CCM_REF_EN_B output of ccm"] #[inline(always)] pub fn ref_en_b(&self) -> REF_EN_B_R { REF_EN_B_R::new((self.bits & 0x01) != 0) } #[doc = "Bit 3 - Status indication of CAMP2."] #[inline(always)] pub fn camp2_ready(&self) -> CAMP2_READY_R { CAMP2_READY_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 5 - Status indication of on board oscillator"] #[inline(always)] pub fn cosc_ready(&self) -> COSC_READY_R { COSC_READY_R::new(((self.bits >> 5) & 0x01) != 0) } }