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 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
#[doc = "Reader of register ISR"] pub type R = crate::R<u32, super::ISR>; #[doc = "Register Reload Interrupt Flag\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum RRIF_A { #[doc = "0: No register reload"] NORELOAD = 0, #[doc = "1: Register reload interrupt generated when a vertical blanking reload occurs (and the first line after the active area is reached)"] RELOAD = 1, } impl From<RRIF_A> for bool { #[inline(always)] fn from(variant: RRIF_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `RRIF`"] pub type RRIF_R = crate::R<bool, RRIF_A>; impl RRIF_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> RRIF_A { match self.bits { false => RRIF_A::NORELOAD, true => RRIF_A::RELOAD, } } #[doc = "Checks if the value of the field is `NORELOAD`"] #[inline(always)] pub fn is_no_reload(&self) -> bool { *self == RRIF_A::NORELOAD } #[doc = "Checks if the value of the field is `RELOAD`"] #[inline(always)] pub fn is_reload(&self) -> bool { *self == RRIF_A::RELOAD } } #[doc = "Transfer Error interrupt flag\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum TERRIF_A { #[doc = "0: No transfer error"] NOERROR = 0, #[doc = "1: Transfer error interrupt generated when a bus error occurs"] ERROR = 1, } impl From<TERRIF_A> for bool { #[inline(always)] fn from(variant: TERRIF_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `TERRIF`"] pub type TERRIF_R = crate::R<bool, TERRIF_A>; impl TERRIF_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> TERRIF_A { match self.bits { false => TERRIF_A::NOERROR, true => TERRIF_A::ERROR, } } #[doc = "Checks if the value of the field is `NOERROR`"] #[inline(always)] pub fn is_no_error(&self) -> bool { *self == TERRIF_A::NOERROR } #[doc = "Checks if the value of the field is `ERROR`"] #[inline(always)] pub fn is_error(&self) -> bool { *self == TERRIF_A::ERROR } } #[doc = "FIFO Underrun Interrupt flag\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum FUIF_A { #[doc = "0: No FIFO underrun"] NOUNDERRUN = 0, #[doc = "1: FIFO underrun interrupt generated, if one of the layer FIFOs is empty and pixel data is read from the FIFO"] UNDERRUN = 1, } impl From<FUIF_A> for bool { #[inline(always)] fn from(variant: FUIF_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `FUIF`"] pub type FUIF_R = crate::R<bool, FUIF_A>; impl FUIF_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> FUIF_A { match self.bits { false => FUIF_A::NOUNDERRUN, true => FUIF_A::UNDERRUN, } } #[doc = "Checks if the value of the field is `NOUNDERRUN`"] #[inline(always)] pub fn is_no_underrun(&self) -> bool { *self == FUIF_A::NOUNDERRUN } #[doc = "Checks if the value of the field is `UNDERRUN`"] #[inline(always)] pub fn is_underrun(&self) -> bool { *self == FUIF_A::UNDERRUN } } #[doc = "Line Interrupt flag\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum LIF_A { #[doc = "0: Programmed line not reached"] NOTREACHED = 0, #[doc = "1: Line interrupt generated when a programmed line is reached"] REACHED = 1, } impl From<LIF_A> for bool { #[inline(always)] fn from(variant: LIF_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `LIF`"] pub type LIF_R = crate::R<bool, LIF_A>; impl LIF_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> LIF_A { match self.bits { false => LIF_A::NOTREACHED, true => LIF_A::REACHED, } } #[doc = "Checks if the value of the field is `NOTREACHED`"] #[inline(always)] pub fn is_not_reached(&self) -> bool { *self == LIF_A::NOTREACHED } #[doc = "Checks if the value of the field is `REACHED`"] #[inline(always)] pub fn is_reached(&self) -> bool { *self == LIF_A::REACHED } } impl R { #[doc = "Bit 3 - Register Reload Interrupt Flag"] #[inline(always)] pub fn rrif(&self) -> RRIF_R { RRIF_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 2 - Transfer Error interrupt flag"] #[inline(always)] pub fn terrif(&self) -> TERRIF_R { TERRIF_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 1 - FIFO Underrun Interrupt flag"] #[inline(always)] pub fn fuif(&self) -> FUIF_R { FUIF_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 0 - Line Interrupt flag"] #[inline(always)] pub fn lif(&self) -> LIF_R { LIF_R::new((self.bits & 0x01) != 0) } }