pub type R = crate::R<RXDOUBLEXrs>;
pub type Rxdata0R = crate::FieldReader<u16>;
pub type Perr0R = crate::BitReader;
pub type Ferr0R = crate::BitReader;
pub type Rxdata1R = crate::FieldReader<u16>;
pub type Perr1R = crate::BitReader;
pub type Ferr1R = crate::BitReader;
impl R {
#[inline(always)]
pub fn rxdata0(&self) -> Rxdata0R {
Rxdata0R::new((self.bits & 0x01ff) as u16)
}
#[inline(always)]
pub fn perr0(&self) -> Perr0R {
Perr0R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn ferr0(&self) -> Ferr0R {
Ferr0R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn rxdata1(&self) -> Rxdata1R {
Rxdata1R::new(((self.bits >> 16) & 0x01ff) as u16)
}
#[inline(always)]
pub fn perr1(&self) -> Perr1R {
Perr1R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn ferr1(&self) -> Ferr1R {
Ferr1R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for crate::generic::Reg<RXDOUBLEXrs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
pub struct RXDOUBLEXrs;
impl crate::RegisterSpec for RXDOUBLEXrs {
type Ux = u32;
}
impl crate::Readable for RXDOUBLEXrs {}
impl crate::Resettable for RXDOUBLEXrs {}