pub type R = crate::R<RXDATAXPrs>;
pub type RxdatapR = crate::FieldReader<u16>;
pub type PerrpR = crate::BitReader;
pub type FerrpR = crate::BitReader;
impl R {
#[inline(always)]
pub fn rxdatap(&self) -> RxdatapR {
RxdatapR::new((self.bits & 0x01ff) as u16)
}
#[inline(always)]
pub fn perrp(&self) -> PerrpR {
PerrpR::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn ferrp(&self) -> FerrpR {
FerrpR::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RXDATAXP")
.field("rxdatap", &self.rxdatap())
.field("perrp", &self.perrp())
.field("ferrp", &self.ferrp())
.finish()
}
}
pub struct RXDATAXPrs;
impl crate::RegisterSpec for RXDATAXPrs {
type Ux = u32;
}
impl crate::Readable for RXDATAXPrs {}
impl crate::Resettable for RXDATAXPrs {}