pub type R = crate::R<MACDRrs>;
pub type RPESTS_R = crate::BitReader;
pub type RFCFCSTS_R = crate::FieldReader;
pub type TPESTS_R = crate::BitReader;
pub type TFCSTS_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn rpests(&self) -> RPESTS_R {
RPESTS_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn rfcfcsts(&self) -> RFCFCSTS_R {
RFCFCSTS_R::new(((self.bits >> 1) & 3) as u8)
}
#[inline(always)]
pub fn tpests(&self) -> TPESTS_R {
TPESTS_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn tfcsts(&self) -> TFCSTS_R {
TFCSTS_R::new(((self.bits >> 17) & 3) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACDR")
.field("rpests", &self.rpests())
.field("rfcfcsts", &self.rfcfcsts())
.field("tpests", &self.tpests())
.field("tfcsts", &self.tfcsts())
.finish()
}
}
pub struct MACDRrs;
impl crate::RegisterSpec for MACDRrs {
type Ux = u32;
}
impl crate::Readable for MACDRrs {}
impl crate::Resettable for MACDRrs {}