pub type R = crate::R<MACDBGRrs>;
pub type MMRPEA_R = crate::BitReader;
pub type MSFRWCS_R = crate::BitReader;
pub type RFWRA_R = crate::BitReader;
pub type RFRCS_R = crate::BitReader;
pub type RFFL_R = crate::BitReader;
pub type MMTEA_R = crate::BitReader;
pub type MTFCS_R = crate::FieldReader;
pub type MTP_R = crate::BitReader;
pub type TFRS_R = crate::FieldReader;
pub type TFWA_R = crate::BitReader;
pub type TFNE_R = crate::BitReader;
pub type TFF_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn mmrpea(&self) -> MMRPEA_R {
MMRPEA_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn msfrwcs(&self) -> MSFRWCS_R {
MSFRWCS_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn rfwra(&self) -> RFWRA_R {
RFWRA_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn rfrcs(&self) -> RFRCS_R {
RFRCS_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn rffl(&self) -> RFFL_R {
RFFL_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn mmtea(&self) -> MMTEA_R {
MMTEA_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn mtfcs(&self) -> MTFCS_R {
MTFCS_R::new(((self.bits >> 17) & 3) as u8)
}
#[inline(always)]
pub fn mtp(&self) -> MTP_R {
MTP_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn tfrs(&self) -> TFRS_R {
TFRS_R::new(((self.bits >> 20) & 3) as u8)
}
#[inline(always)]
pub fn tfwa(&self) -> TFWA_R {
TFWA_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn tfne(&self) -> TFNE_R {
TFNE_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn tff(&self) -> TFF_R {
TFF_R::new(((self.bits >> 25) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACDBGR")
.field("mmrpea", &self.mmrpea())
.field("msfrwcs", &self.msfrwcs())
.field("rfwra", &self.rfwra())
.field("rfrcs", &self.rfrcs())
.field("rffl", &self.rffl())
.field("mmtea", &self.mmtea())
.field("mtfcs", &self.mtfcs())
.field("mtp", &self.mtp())
.field("tfrs", &self.tfrs())
.field("tfwa", &self.tfwa())
.field("tfne", &self.tfne())
.field("tff", &self.tff())
.finish()
}
}
pub struct MACDBGRrs;
impl crate::RegisterSpec for MACDBGRrs {
type Ux = u32;
}
impl crate::Readable for MACDBGRrs {}
impl crate::Resettable for MACDBGRrs {}