efm32gg12b810/leuart0/
rxdataxp.rs1#[doc = "Reader of register RXDATAXP"]
2pub type R = crate::R<u32, super::RXDATAXP>;
3#[doc = "Reader of field `RXDATAP`"]
4pub type RXDATAP_R = crate::R<u16, u16>;
5#[doc = "Reader of field `PERRP`"]
6pub type PERRP_R = crate::R<bool, bool>;
7#[doc = "Reader of field `FERRP`"]
8pub type FERRP_R = crate::R<bool, bool>;
9impl R {
10 #[doc = "Bits 0:8 - RX Data Peek"]
11 #[inline(always)]
12 pub fn rxdatap(&self) -> RXDATAP_R {
13 RXDATAP_R::new((self.bits & 0x01ff) as u16)
14 }
15 #[doc = "Bit 14 - Receive Data Parity Error Peek"]
16 #[inline(always)]
17 pub fn perrp(&self) -> PERRP_R {
18 PERRP_R::new(((self.bits >> 14) & 0x01) != 0)
19 }
20 #[doc = "Bit 15 - Receive Data Framing Error Peek"]
21 #[inline(always)]
22 pub fn ferrp(&self) -> FERRP_R {
23 FERRP_R::new(((self.bits >> 15) & 0x01) != 0)
24 }
25}