pub type R = crate::R<HWCFGR8rs>;
pub type AF_PRIO8_R = crate::FieldReader;
pub type AF_PRIO9_R = crate::FieldReader;
pub type AF_PRIO10_R = crate::FieldReader;
pub type AF_PRIO11_R = crate::FieldReader;
pub type AF_PRIO12_R = crate::FieldReader;
pub type AF_PRIO13_R = crate::FieldReader;
pub type AF_PRIO14_R = crate::FieldReader;
pub type AF_PRIO15_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn af_prio8(&self) -> AF_PRIO8_R {
AF_PRIO8_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio9(&self) -> AF_PRIO9_R {
AF_PRIO9_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio10(&self) -> AF_PRIO10_R {
AF_PRIO10_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio11(&self) -> AF_PRIO11_R {
AF_PRIO11_R::new(((self.bits >> 12) & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio12(&self) -> AF_PRIO12_R {
AF_PRIO12_R::new(((self.bits >> 16) & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio13(&self) -> AF_PRIO13_R {
AF_PRIO13_R::new(((self.bits >> 20) & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio14(&self) -> AF_PRIO14_R {
AF_PRIO14_R::new(((self.bits >> 24) & 0x0f) as u8)
}
#[inline(always)]
pub fn af_prio15(&self) -> AF_PRIO15_R {
AF_PRIO15_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("HWCFGR8")
.field("af_prio8", &self.af_prio8())
.field("af_prio9", &self.af_prio9())
.field("af_prio10", &self.af_prio10())
.field("af_prio11", &self.af_prio11())
.field("af_prio12", &self.af_prio12())
.field("af_prio13", &self.af_prio13())
.field("af_prio14", &self.af_prio14())
.field("af_prio15", &self.af_prio15())
.finish()
}
}
pub struct HWCFGR8rs;
impl crate::RegisterSpec for HWCFGR8rs {
type Ux = u32;
}
impl crate::Readable for HWCFGR8rs {}
impl crate::Resettable for HWCFGR8rs {}