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
#[doc = "Reader of register CICR"] pub type R = crate::R<u32, super::CICR>; #[doc = "Clock Security System Interrupt clear\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum CSSHSEC_A { #[doc = "1: Clear interrupt flag"] CLEAR, } impl From<CSSHSEC_A> for bool { #[inline(always)] fn from(variant: CSSHSEC_A) -> Self { match variant { CSSHSEC_A::CLEAR => true, } } } #[doc = "Reader of field `CSSHSEC`"] pub type CSSHSEC_R = crate::R<bool, CSSHSEC_A>; impl CSSHSEC_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> crate::Variant<bool, CSSHSEC_A> { use crate::Variant::*; match self.bits { true => Val(CSSHSEC_A::CLEAR), i => Res(i), } } #[doc = "Checks if the value of the field is `CLEAR`"] #[inline(always)] pub fn is_clear(&self) -> bool { *self == CSSHSEC_A::CLEAR } } #[doc = "LSE Clock Security System Interrupt clear"] pub type CSSLSEC_A = CSSHSEC_A; #[doc = "Reader of field `CSSLSEC`"] pub type CSSLSEC_R = crate::R<bool, CSSHSEC_A>; #[doc = "HSI48 ready Interrupt clear"] pub type HSI48RDYC_A = CSSHSEC_A; #[doc = "Reader of field `HSI48RDYC`"] pub type HSI48RDYC_R = crate::R<bool, CSSHSEC_A>; #[doc = "MSI ready Interrupt clear"] pub type MSIRDYC_A = CSSHSEC_A; #[doc = "Reader of field `MSIRDYC`"] pub type MSIRDYC_R = crate::R<bool, CSSHSEC_A>; #[doc = "PLL ready Interrupt clear"] pub type PLLRDYC_A = CSSHSEC_A; #[doc = "Reader of field `PLLRDYC`"] pub type PLLRDYC_R = crate::R<bool, CSSHSEC_A>; #[doc = "HSE ready Interrupt clear"] pub type HSERDYC_A = CSSHSEC_A; #[doc = "Reader of field `HSERDYC`"] pub type HSERDYC_R = crate::R<bool, CSSHSEC_A>; #[doc = "HSI16 ready Interrupt clear"] pub type HSI16RDYC_A = CSSHSEC_A; #[doc = "Reader of field `HSI16RDYC`"] pub type HSI16RDYC_R = crate::R<bool, CSSHSEC_A>; #[doc = "LSE ready Interrupt clear"] pub type LSERDYC_A = CSSHSEC_A; #[doc = "Reader of field `LSERDYC`"] pub type LSERDYC_R = crate::R<bool, CSSHSEC_A>; #[doc = "LSI ready Interrupt clear"] pub type LSIRDYC_A = CSSHSEC_A; #[doc = "Reader of field `LSIRDYC`"] pub type LSIRDYC_R = crate::R<bool, CSSHSEC_A>; impl R { #[doc = "Bit 8 - Clock Security System Interrupt clear"] #[inline(always)] pub fn csshsec(&self) -> CSSHSEC_R { CSSHSEC_R::new(((self.bits >> 8) & 0x01) != 0) } #[doc = "Bit 7 - LSE Clock Security System Interrupt clear"] #[inline(always)] pub fn csslsec(&self) -> CSSLSEC_R { CSSLSEC_R::new(((self.bits >> 7) & 0x01) != 0) } #[doc = "Bit 6 - HSI48 ready Interrupt clear"] #[inline(always)] pub fn hsi48rdyc(&self) -> HSI48RDYC_R { HSI48RDYC_R::new(((self.bits >> 6) & 0x01) != 0) } #[doc = "Bit 5 - MSI ready Interrupt clear"] #[inline(always)] pub fn msirdyc(&self) -> MSIRDYC_R { MSIRDYC_R::new(((self.bits >> 5) & 0x01) != 0) } #[doc = "Bit 4 - PLL ready Interrupt clear"] #[inline(always)] pub fn pllrdyc(&self) -> PLLRDYC_R { PLLRDYC_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bit 3 - HSE ready Interrupt clear"] #[inline(always)] pub fn hserdyc(&self) -> HSERDYC_R { HSERDYC_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 2 - HSI16 ready Interrupt clear"] #[inline(always)] pub fn hsi16rdyc(&self) -> HSI16RDYC_R { HSI16RDYC_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 1 - LSE ready Interrupt clear"] #[inline(always)] pub fn lserdyc(&self) -> LSERDYC_R { LSERDYC_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 0 - LSI ready Interrupt clear"] #[inline(always)] pub fn lsirdyc(&self) -> LSIRDYC_R { LSIRDYC_R::new((self.bits & 0x01) != 0) } }