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
#[doc = "Reader of register SR"] pub type R = crate::R<u32, super::SR>; #[doc = "Reader of field `BUSY`"] pub type BUSY_R = crate::R<bool, bool>; #[doc = "Reader of field `OFFU`"] pub type OFFU_R = crate::R<bool, bool>; #[doc = "Reader of field `OFNE`"] pub type OFNE_R = crate::R<bool, bool>; #[doc = "Reader of field `IFNF`"] pub type IFNF_R = crate::R<bool, bool>; #[doc = "Reader of field `IFEM`"] pub type IFEM_R = crate::R<bool, bool>; impl R { #[doc = "Bit 4 - Busy bit"] #[inline(always)] pub fn busy(&self) -> BUSY_R { BUSY_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bit 3 - Output FIFO full"] #[inline(always)] pub fn offu(&self) -> OFFU_R { OFFU_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 2 - Output FIFO not empty"] #[inline(always)] pub fn ofne(&self) -> OFNE_R { OFNE_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 1 - Input FIFO not full"] #[inline(always)] pub fn ifnf(&self) -> IFNF_R { IFNF_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 0 - Input FIFO empty"] #[inline(always)] pub fn ifem(&self) -> IFEM_R { IFEM_R::new((self.bits & 0x01) != 0) } }