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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
#[doc = r"Value read from the register"] pub struct R { bits: u32, } impl super::PWM_ISR2 { #[doc = r"Reads the contents of the register"] #[inline(always)] pub fn read(&self) -> R { R { bits: self.register.get(), } } } #[doc = r"Reader of the field"] pub type WRDY_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type UNRE_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPM0_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPM1_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPM2_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPM3_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPM4_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPM5_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPM6_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPM7_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPU0_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPU1_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPU2_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPU3_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPU4_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPU5_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPU6_R = crate::FR<bool, bool>; #[doc = r"Reader of the field"] pub type CMPU7_R = crate::FR<bool, bool>; impl R { #[doc = r"Value of the register as raw bits"] #[inline(always)] pub fn bits(&self) -> u32 { self.bits } #[doc = "Bit 0 - Write Ready for Synchronous Channels Update"] #[inline(always)] pub fn wrdy(&self) -> WRDY_R { WRDY_R::new((self.bits() & 0x01) != 0) } #[doc = "Bit 3 - Synchronous Channels Update Underrun Error"] #[inline(always)] pub fn unre(&self) -> UNRE_R { UNRE_R::new(((self.bits() >> 3) & 0x01) != 0) } #[doc = "Bit 8 - Comparison 0 Match"] #[inline(always)] pub fn cmpm0(&self) -> CMPM0_R { CMPM0_R::new(((self.bits() >> 8) & 0x01) != 0) } #[doc = "Bit 9 - Comparison 1 Match"] #[inline(always)] pub fn cmpm1(&self) -> CMPM1_R { CMPM1_R::new(((self.bits() >> 9) & 0x01) != 0) } #[doc = "Bit 10 - Comparison 2 Match"] #[inline(always)] pub fn cmpm2(&self) -> CMPM2_R { CMPM2_R::new(((self.bits() >> 10) & 0x01) != 0) } #[doc = "Bit 11 - Comparison 3 Match"] #[inline(always)] pub fn cmpm3(&self) -> CMPM3_R { CMPM3_R::new(((self.bits() >> 11) & 0x01) != 0) } #[doc = "Bit 12 - Comparison 4 Match"] #[inline(always)] pub fn cmpm4(&self) -> CMPM4_R { CMPM4_R::new(((self.bits() >> 12) & 0x01) != 0) } #[doc = "Bit 13 - Comparison 5 Match"] #[inline(always)] pub fn cmpm5(&self) -> CMPM5_R { CMPM5_R::new(((self.bits() >> 13) & 0x01) != 0) } #[doc = "Bit 14 - Comparison 6 Match"] #[inline(always)] pub fn cmpm6(&self) -> CMPM6_R { CMPM6_R::new(((self.bits() >> 14) & 0x01) != 0) } #[doc = "Bit 15 - Comparison 7 Match"] #[inline(always)] pub fn cmpm7(&self) -> CMPM7_R { CMPM7_R::new(((self.bits() >> 15) & 0x01) != 0) } #[doc = "Bit 16 - Comparison 0 Update"] #[inline(always)] pub fn cmpu0(&self) -> CMPU0_R { CMPU0_R::new(((self.bits() >> 16) & 0x01) != 0) } #[doc = "Bit 17 - Comparison 1 Update"] #[inline(always)] pub fn cmpu1(&self) -> CMPU1_R { CMPU1_R::new(((self.bits() >> 17) & 0x01) != 0) } #[doc = "Bit 18 - Comparison 2 Update"] #[inline(always)] pub fn cmpu2(&self) -> CMPU2_R { CMPU2_R::new(((self.bits() >> 18) & 0x01) != 0) } #[doc = "Bit 19 - Comparison 3 Update"] #[inline(always)] pub fn cmpu3(&self) -> CMPU3_R { CMPU3_R::new(((self.bits() >> 19) & 0x01) != 0) } #[doc = "Bit 20 - Comparison 4 Update"] #[inline(always)] pub fn cmpu4(&self) -> CMPU4_R { CMPU4_R::new(((self.bits() >> 20) & 0x01) != 0) } #[doc = "Bit 21 - Comparison 5 Update"] #[inline(always)] pub fn cmpu5(&self) -> CMPU5_R { CMPU5_R::new(((self.bits() >> 21) & 0x01) != 0) } #[doc = "Bit 22 - Comparison 6 Update"] #[inline(always)] pub fn cmpu6(&self) -> CMPU6_R { CMPU6_R::new(((self.bits() >> 22) & 0x01) != 0) } #[doc = "Bit 23 - Comparison 7 Update"] #[inline(always)] pub fn cmpu7(&self) -> CMPU7_R { CMPU7_R::new(((self.bits() >> 23) & 0x01) != 0) } }