pub type R = crate::R<MACFFRrs>;
pub type W = crate::W<MACFFRrs>;
pub type PM_R = crate::BitReader;
pub type PM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HU_R = crate::BitReader;
pub type HU_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HM_R = crate::BitReader;
pub type HM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DAIF_R = crate::BitReader;
pub type DAIF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PAM_R = crate::BitReader;
pub type PAM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BFD_R = crate::BitReader;
pub type BFD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PCF_R = crate::FieldReader;
pub type PCF_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type SAIF_R = crate::BitReader;
pub type SAIF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SAF_R = crate::BitReader;
pub type SAF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type HPF_R = crate::BitReader;
pub type HPF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RA_R = crate::BitReader;
pub type RA_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pm(&self) -> PM_R {
PM_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn hu(&self) -> HU_R {
HU_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn hm(&self) -> HM_R {
HM_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn daif(&self) -> DAIF_R {
DAIF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn pam(&self) -> PAM_R {
PAM_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn bfd(&self) -> BFD_R {
BFD_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn pcf(&self) -> PCF_R {
PCF_R::new(((self.bits >> 6) & 3) as u8)
}
#[inline(always)]
pub fn saif(&self) -> SAIF_R {
SAIF_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn saf(&self) -> SAF_R {
SAF_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn hpf(&self) -> HPF_R {
HPF_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn ra(&self) -> RA_R {
RA_R::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("MACFFR")
.field("pm", &self.pm())
.field("hu", &self.hu())
.field("hm", &self.hm())
.field("daif", &self.daif())
.field("pam", &self.pam())
.field("bfd", &self.bfd())
.field("pcf", &self.pcf())
.field("saif", &self.saif())
.field("saf", &self.saf())
.field("hpf", &self.hpf())
.field("ra", &self.ra())
.finish()
}
}
impl W {
#[inline(always)]
pub fn pm(&mut self) -> PM_W<MACFFRrs> {
PM_W::new(self, 0)
}
#[inline(always)]
pub fn hu(&mut self) -> HU_W<MACFFRrs> {
HU_W::new(self, 1)
}
#[inline(always)]
pub fn hm(&mut self) -> HM_W<MACFFRrs> {
HM_W::new(self, 2)
}
#[inline(always)]
pub fn daif(&mut self) -> DAIF_W<MACFFRrs> {
DAIF_W::new(self, 3)
}
#[inline(always)]
pub fn pam(&mut self) -> PAM_W<MACFFRrs> {
PAM_W::new(self, 4)
}
#[inline(always)]
pub fn bfd(&mut self) -> BFD_W<MACFFRrs> {
BFD_W::new(self, 5)
}
#[inline(always)]
pub fn pcf(&mut self) -> PCF_W<MACFFRrs> {
PCF_W::new(self, 6)
}
#[inline(always)]
pub fn saif(&mut self) -> SAIF_W<MACFFRrs> {
SAIF_W::new(self, 8)
}
#[inline(always)]
pub fn saf(&mut self) -> SAF_W<MACFFRrs> {
SAF_W::new(self, 9)
}
#[inline(always)]
pub fn hpf(&mut self) -> HPF_W<MACFFRrs> {
HPF_W::new(self, 10)
}
#[inline(always)]
pub fn ra(&mut self) -> RA_W<MACFFRrs> {
RA_W::new(self, 31)
}
}
pub struct MACFFRrs;
impl crate::RegisterSpec for MACFFRrs {
type Ux = u32;
}
impl crate::Readable for MACFFRrs {}
impl crate::Writable for MACFFRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACFFRrs {}