pub type R = crate::R<IPGR8rs>;
pub type DID_R = crate::FieldReader;
pub type REVID_R = crate::FieldReader;
pub type ARCHIID_R = crate::FieldReader;
pub type IPPID_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn did(&self) -> DID_R {
DID_R::new((self.bits & 0x3f) as u8)
}
#[inline(always)]
pub fn revid(&self) -> REVID_R {
REVID_R::new(((self.bits >> 8) & 0x1f) as u8)
}
#[inline(always)]
pub fn archiid(&self) -> ARCHIID_R {
ARCHIID_R::new(((self.bits >> 16) & 0x1f) as u8)
}
#[inline(always)]
pub fn ippid(&self) -> IPPID_R {
IPPID_R::new(((self.bits >> 24) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IPGR8")
.field("did", &self.did())
.field("revid", &self.revid())
.field("archiid", &self.archiid())
.field("ippid", &self.ippid())
.finish()
}
}
pub struct IPGR8rs;
impl crate::RegisterSpec for IPGR8rs {
type Ux = u32;
}
impl crate::Readable for IPGR8rs {}
impl crate::Resettable for IPGR8rs {
const RESET_VALUE: u32 = 0xaa04_0314;
}