pub type R = crate::R<RXDOUBLEXPrs>;
pub type Rxdatap0R = crate::FieldReader<u16>;
pub type Perrp0R = crate::BitReader;
pub type Ferrp0R = crate::BitReader;
pub type Rxdatap1R = crate::FieldReader<u16>;
pub type Perrp1R = crate::BitReader;
pub type Ferrp1R = crate::BitReader;
impl R {
#[inline(always)]
pub fn rxdatap0(&self) -> Rxdatap0R {
Rxdatap0R::new((self.bits & 0x01ff) as u16)
}
#[inline(always)]
pub fn perrp0(&self) -> Perrp0R {
Perrp0R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn ferrp0(&self) -> Ferrp0R {
Ferrp0R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn rxdatap1(&self) -> Rxdatap1R {
Rxdatap1R::new(((self.bits >> 16) & 0x01ff) as u16)
}
#[inline(always)]
pub fn perrp1(&self) -> Perrp1R {
Perrp1R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn ferrp1(&self) -> Ferrp1R {
Ferrp1R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RXDOUBLEXP")
.field("rxdatap0", &self.rxdatap0())
.field("perrp0", &self.perrp0())
.field("ferrp0", &self.ferrp0())
.field("rxdatap1", &self.rxdatap1())
.field("perrp1", &self.perrp1())
.field("ferrp1", &self.ferrp1())
.finish()
}
}
pub struct RXDOUBLEXPrs;
impl crate::RegisterSpec for RXDOUBLEXPrs {
type Ux = u32;
}
impl crate::Readable for RXDOUBLEXPrs {}
impl crate::Resettable for RXDOUBLEXPrs {}