pub type R = crate::R<VMCCRrs>;
pub type VMT_R = crate::FieldReader;
pub type LPVSAE_R = crate::BitReader;
pub type LPVBPE_R = crate::BitReader;
pub type LPVFPE_R = crate::BitReader;
pub type LPVAE_R = crate::BitReader;
pub type LPHBPE_R = crate::BitReader;
pub type LPHFE_R = crate::BitReader;
pub type FBTAAE_R = crate::BitReader;
pub type LPCE_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn vmt(&self) -> VMT_R {
VMT_R::new((self.bits & 3) as u8)
}
#[inline(always)]
pub fn lpvsae(&self) -> LPVSAE_R {
LPVSAE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn lpvbpe(&self) -> LPVBPE_R {
LPVBPE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn lpvfpe(&self) -> LPVFPE_R {
LPVFPE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn lpvae(&self) -> LPVAE_R {
LPVAE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn lphbpe(&self) -> LPHBPE_R {
LPHBPE_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn lphfe(&self) -> LPHFE_R {
LPHFE_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn fbtaae(&self) -> FBTAAE_R {
FBTAAE_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn lpce(&self) -> LPCE_R {
LPCE_R::new(((self.bits >> 9) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("VMCCR")
.field("vmt", &self.vmt())
.field("lpvsae", &self.lpvsae())
.field("lpvbpe", &self.lpvbpe())
.field("lpvfpe", &self.lpvfpe())
.field("lpvae", &self.lpvae())
.field("lphbpe", &self.lphbpe())
.field("lphfe", &self.lphfe())
.field("fbtaae", &self.fbtaae())
.field("lpce", &self.lpce())
.finish()
}
}
pub struct VMCCRrs;
impl crate::RegisterSpec for VMCCRrs {
type Ux = u32;
}
impl crate::Readable for VMCCRrs {}
impl crate::Resettable for VMCCRrs {}