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
#[doc = "Reader of register TEST"] pub type R = crate::R<u32, super::TEST>; #[doc = "Reader of field `LBCK`"] pub type LBCK_R = crate::R<bool, bool>; #[doc = "Reader of field `TX`"] pub type TX_R = crate::R<u8, u8>; #[doc = "Reader of field `RX`"] pub type RX_R = crate::R<bool, bool>; impl R { #[doc = "Bit 4 - Loop Back mode"] #[inline(always)] pub fn lbck(&self) -> LBCK_R { LBCK_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bits 5:6 - Loop Back mode"] #[inline(always)] pub fn tx(&self) -> TX_R { TX_R::new(((self.bits >> 5) & 0x03) as u8) } #[doc = "Bit 7 - Control of Transmit Pin"] #[inline(always)] pub fn rx(&self) -> RX_R { RX_R::new(((self.bits >> 7) & 0x01) != 0) } }