pub type R = crate::R<RXDATAXrs>;
pub type RxdataR = crate::FieldReader<u16>;
pub type PerrR = crate::BitReader;
pub type FerrR = crate::BitReader;
impl R {
#[inline(always)]
pub fn rxdata(&self) -> RxdataR {
RxdataR::new((self.bits & 0x01ff) as u16)
}
#[inline(always)]
pub fn perr(&self) -> PerrR {
PerrR::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn ferr(&self) -> FerrR {
FerrR::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for crate::generic::Reg<RXDATAXrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
pub struct RXDATAXrs;
impl crate::RegisterSpec for RXDATAXrs {
type Ux = u32;
}
impl crate::Readable for RXDATAXrs {}
impl crate::Resettable for RXDATAXrs {}