pub type R = crate::R<HWCFGR7rs>;
pub type AF_PRIO0_R = crate::FieldReader;
pub type AF_PRIO1_R = crate::FieldReader;
pub type AF_PRIO2_R = crate::FieldReader;
pub type AF_PRIO3_R = crate::FieldReader;
pub type AF_PRIO4_R = crate::FieldReader;
pub type AF_PRIO5_R = crate::FieldReader;
pub type AF_PRIO6_R = crate::FieldReader;
pub type AF_PRIO7_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn af_prio0(&self) -> AF_PRIO0_R {
AF_PRIO0_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio1(&self) -> AF_PRIO1_R {
AF_PRIO1_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio2(&self) -> AF_PRIO2_R {
AF_PRIO2_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio3(&self) -> AF_PRIO3_R {
AF_PRIO3_R::new(((self.bits >> 12) & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio4(&self) -> AF_PRIO4_R {
AF_PRIO4_R::new(((self.bits >> 16) & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio5(&self) -> AF_PRIO5_R {
AF_PRIO5_R::new(((self.bits >> 20) & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio6(&self) -> AF_PRIO6_R {
AF_PRIO6_R::new(((self.bits >> 24) & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio7(&self) -> AF_PRIO7_R {
AF_PRIO7_R::new(((self.bits >> 28) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HWCFGR7")
.field("af_prio0", &self.af_prio0())
.field("af_prio1", &self.af_prio1())
.field("af_prio2", &self.af_prio2())
.field("af_prio3", &self.af_prio3())
.field("af_prio4", &self.af_prio4())
.field("af_prio5", &self.af_prio5())
.field("af_prio6", &self.af_prio6())
.field("af_prio7", &self.af_prio7())
.finish()
}
}
pub struct HWCFGR7rs;
impl crate::RegisterSpec for HWCFGR7rs {
type Ux = u32;
}
impl crate::Readable for HWCFGR7rs {}
impl crate::Resettable for HWCFGR7rs {
const RESET_VALUE: u32 = 0xffff_ffff;
}