pub type R = crate::R<HPMSrs>;
pub type BIDX_R = crate::FieldReader;
pub type MSI_R = crate::FieldReader;
pub type FIDX_R = crate::FieldReader;
pub type FLST_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn bidx(&self) -> BIDX_R {
BIDX_R::new((self.bits & 0x3f) as u8)
}
#[inline(always)]
pub fn msi(&self) -> MSI_R {
MSI_R::new(((self.bits >> 6) & 3) as u8)
}
#[inline(always)]
pub fn fidx(&self) -> FIDX_R {
FIDX_R::new(((self.bits >> 8) & 0x7f) as u8)
}
#[inline(always)]
pub fn flst(&self) -> FLST_R {
FLST_R::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HPMS")
.field("bidx", &self.bidx())
.field("msi", &self.msi())
.field("fidx", &self.fidx())
.field("flst", &self.flst())
.finish()
}
}
pub struct HPMSrs;
impl crate::RegisterSpec for HPMSrs {
type Ux = u32;
}
impl crate::Readable for HPMSrs {}
impl crate::Resettable for HPMSrs {}