#[doc = "Register `CTITRIGINSTATUS` reader"] pub struct R(crate::R); impl core::ops::Deref for R { type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } impl From> for R { #[inline(always)] fn from(reader: crate::R) -> Self { R(reader) } } #[doc = "Field `CPUHALTED` reader - Processor Halted"] pub type CPUHALTED_R = crate::BitReader; #[doc = "Processor Halted\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum CPUHALTED_A { #[doc = "1: Ctitrigin 0 is active."] ACTIVE = 1, #[doc = "0: Ctitrigin 0 is inactive."] INACTIVE = 0, } impl From for bool { #[inline(always)] fn from(variant: CPUHALTED_A) -> Self { variant as u8 != 0 } } impl CPUHALTED_R { #[doc = "Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> CPUHALTED_A { match self.bits { true => CPUHALTED_A::ACTIVE, false => CPUHALTED_A::INACTIVE, } } #[doc = "Checks if the value of the field is `ACTIVE`"] #[inline(always)] pub fn is_active(&self) -> bool { *self == CPUHALTED_A::ACTIVE } #[doc = "Checks if the value of the field is `INACTIVE`"] #[inline(always)] pub fn is_inactive(&self) -> bool { *self == CPUHALTED_A::INACTIVE } } #[doc = "Field `DWTCOMPOUT0` reader - DWT Comparator Output 0"] pub type DWTCOMPOUT0_R = crate::BitReader; #[doc = "DWT Comparator Output 0\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum DWTCOMPOUT0_A { #[doc = "1: Ctitrigin 1 is active."] ACTIVE = 1, #[doc = "0: Ctitrigin 1 is inactive."] INACTIVE = 0, } impl From for bool { #[inline(always)] fn from(variant: DWTCOMPOUT0_A) -> Self { variant as u8 != 0 } } impl DWTCOMPOUT0_R { #[doc = "Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> DWTCOMPOUT0_A { match self.bits { true => DWTCOMPOUT0_A::ACTIVE, false => DWTCOMPOUT0_A::INACTIVE, } } #[doc = "Checks if the value of the field is `ACTIVE`"] #[inline(always)] pub fn is_active(&self) -> bool { *self == DWTCOMPOUT0_A::ACTIVE } #[doc = "Checks if the value of the field is `INACTIVE`"] #[inline(always)] pub fn is_inactive(&self) -> bool { *self == DWTCOMPOUT0_A::INACTIVE } } #[doc = "Field `DWTCOMPOUT1` reader - DWT Comparator Output 1"] pub type DWTCOMPOUT1_R = crate::BitReader; #[doc = "DWT Comparator Output 1\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum DWTCOMPOUT1_A { #[doc = "1: Ctitrigin 2 is active."] ACTIVE = 1, #[doc = "0: Ctitrigin 2 is inactive."] INACTIVE = 0, } impl From for bool { #[inline(always)] fn from(variant: DWTCOMPOUT1_A) -> Self { variant as u8 != 0 } } impl DWTCOMPOUT1_R { #[doc = "Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> DWTCOMPOUT1_A { match self.bits { true => DWTCOMPOUT1_A::ACTIVE, false => DWTCOMPOUT1_A::INACTIVE, } } #[doc = "Checks if the value of the field is `ACTIVE`"] #[inline(always)] pub fn is_active(&self) -> bool { *self == DWTCOMPOUT1_A::ACTIVE } #[doc = "Checks if the value of the field is `INACTIVE`"] #[inline(always)] pub fn is_inactive(&self) -> bool { *self == DWTCOMPOUT1_A::INACTIVE } } #[doc = "Field `DWTCOMPOUT2` reader - DWT Comparator Output 2"] pub type DWTCOMPOUT2_R = crate::BitReader; #[doc = "DWT Comparator Output 2\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum DWTCOMPOUT2_A { #[doc = "1: Ctitrigin 3 is active."] ACTIVE = 1, #[doc = "0: Ctitrigin 3 is inactive."] INACTIVE = 0, } impl From for bool { #[inline(always)] fn from(variant: DWTCOMPOUT2_A) -> Self { variant as u8 != 0 } } impl DWTCOMPOUT2_R { #[doc = "Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> DWTCOMPOUT2_A { match self.bits { true => DWTCOMPOUT2_A::ACTIVE, false => DWTCOMPOUT2_A::INACTIVE, } } #[doc = "Checks if the value of the field is `ACTIVE`"] #[inline(always)] pub fn is_active(&self) -> bool { *self == DWTCOMPOUT2_A::ACTIVE } #[doc = "Checks if the value of the field is `INACTIVE`"] #[inline(always)] pub fn is_inactive(&self) -> bool { *self == DWTCOMPOUT2_A::INACTIVE } } #[doc = "Field `ETMEVTOUT0` reader - ETM Event Output 0"] pub type ETMEVTOUT0_R = crate::BitReader; #[doc = "ETM Event Output 0\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ETMEVTOUT0_A { #[doc = "1: Ctitrigin 4 is active."] ACTIVE = 1, #[doc = "0: Ctitrigin 4 is inactive."] INACTIVE = 0, } impl From for bool { #[inline(always)] fn from(variant: ETMEVTOUT0_A) -> Self { variant as u8 != 0 } } impl ETMEVTOUT0_R { #[doc = "Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ETMEVTOUT0_A { match self.bits { true => ETMEVTOUT0_A::ACTIVE, false => ETMEVTOUT0_A::INACTIVE, } } #[doc = "Checks if the value of the field is `ACTIVE`"] #[inline(always)] pub fn is_active(&self) -> bool { *self == ETMEVTOUT0_A::ACTIVE } #[doc = "Checks if the value of the field is `INACTIVE`"] #[inline(always)] pub fn is_inactive(&self) -> bool { *self == ETMEVTOUT0_A::INACTIVE } } #[doc = "Field `ETMEVTOUT1` reader - ETM Event Output 1"] pub type ETMEVTOUT1_R = crate::BitReader; #[doc = "ETM Event Output 1\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ETMEVTOUT1_A { #[doc = "1: Ctitrigin 5 is active."] ACTIVE = 1, #[doc = "0: Ctitrigin 5 is inactive."] INACTIVE = 0, } impl From for bool { #[inline(always)] fn from(variant: ETMEVTOUT1_A) -> Self { variant as u8 != 0 } } impl ETMEVTOUT1_R { #[doc = "Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ETMEVTOUT1_A { match self.bits { true => ETMEVTOUT1_A::ACTIVE, false => ETMEVTOUT1_A::INACTIVE, } } #[doc = "Checks if the value of the field is `ACTIVE`"] #[inline(always)] pub fn is_active(&self) -> bool { *self == ETMEVTOUT1_A::ACTIVE } #[doc = "Checks if the value of the field is `INACTIVE`"] #[inline(always)] pub fn is_inactive(&self) -> bool { *self == ETMEVTOUT1_A::INACTIVE } } #[doc = "Field `UNUSED0` reader - N/A"] pub type UNUSED0_R = crate::BitReader; #[doc = "N/A\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum UNUSED0_A { #[doc = "1: Ctitrigin 6 is active."] ACTIVE = 1, #[doc = "0: Ctitrigin 6 is inactive."] INACTIVE = 0, } impl From for bool { #[inline(always)] fn from(variant: UNUSED0_A) -> Self { variant as u8 != 0 } } impl UNUSED0_R { #[doc = "Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> UNUSED0_A { match self.bits { true => UNUSED0_A::ACTIVE, false => UNUSED0_A::INACTIVE, } } #[doc = "Checks if the value of the field is `ACTIVE`"] #[inline(always)] pub fn is_active(&self) -> bool { *self == UNUSED0_A::ACTIVE } #[doc = "Checks if the value of the field is `INACTIVE`"] #[inline(always)] pub fn is_inactive(&self) -> bool { *self == UNUSED0_A::INACTIVE } } #[doc = "Field `UNUSED1` reader - N/A"] pub type UNUSED1_R = crate::BitReader; #[doc = "N/A\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum UNUSED1_A { #[doc = "1: Ctitrigin 7 is active."] ACTIVE = 1, #[doc = "0: Ctitrigin 7 is inactive."] INACTIVE = 0, } impl From for bool { #[inline(always)] fn from(variant: UNUSED1_A) -> Self { variant as u8 != 0 } } impl UNUSED1_R { #[doc = "Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> UNUSED1_A { match self.bits { true => UNUSED1_A::ACTIVE, false => UNUSED1_A::INACTIVE, } } #[doc = "Checks if the value of the field is `ACTIVE`"] #[inline(always)] pub fn is_active(&self) -> bool { *self == UNUSED1_A::ACTIVE } #[doc = "Checks if the value of the field is `INACTIVE`"] #[inline(always)] pub fn is_inactive(&self) -> bool { *self == UNUSED1_A::INACTIVE } } impl R { #[doc = "Bit 0 - Processor Halted"] #[inline(always)] pub fn cpuhalted(&self) -> CPUHALTED_R { CPUHALTED_R::new((self.bits & 1) != 0) } #[doc = "Bit 1 - DWT Comparator Output 0"] #[inline(always)] pub fn dwtcompout0(&self) -> DWTCOMPOUT0_R { DWTCOMPOUT0_R::new(((self.bits >> 1) & 1) != 0) } #[doc = "Bit 2 - DWT Comparator Output 1"] #[inline(always)] pub fn dwtcompout1(&self) -> DWTCOMPOUT1_R { DWTCOMPOUT1_R::new(((self.bits >> 2) & 1) != 0) } #[doc = "Bit 3 - DWT Comparator Output 2"] #[inline(always)] pub fn dwtcompout2(&self) -> DWTCOMPOUT2_R { DWTCOMPOUT2_R::new(((self.bits >> 3) & 1) != 0) } #[doc = "Bit 4 - ETM Event Output 0"] #[inline(always)] pub fn etmevtout0(&self) -> ETMEVTOUT0_R { ETMEVTOUT0_R::new(((self.bits >> 4) & 1) != 0) } #[doc = "Bit 5 - ETM Event Output 1"] #[inline(always)] pub fn etmevtout1(&self) -> ETMEVTOUT1_R { ETMEVTOUT1_R::new(((self.bits >> 5) & 1) != 0) } #[doc = "Bit 6 - N/A"] #[inline(always)] pub fn unused0(&self) -> UNUSED0_R { UNUSED0_R::new(((self.bits >> 6) & 1) != 0) } #[doc = "Bit 7 - N/A"] #[inline(always)] pub fn unused1(&self) -> UNUSED1_R { UNUSED1_R::new(((self.bits >> 7) & 1) != 0) } } #[doc = "CTI Trigger In Status register\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 [ctitriginstatus](index.html) module"] pub struct CTITRIGINSTATUS_SPEC; impl crate::RegisterSpec for CTITRIGINSTATUS_SPEC { type Ux = u32; } #[doc = "`read()` method returns [ctitriginstatus::R](R) reader structure"] impl crate::Readable for CTITRIGINSTATUS_SPEC { type Reader = R; } #[doc = "`reset()` method sets CTITRIGINSTATUS to value 0"] impl crate::Resettable for CTITRIGINSTATUS_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 } }