pub type R = crate::R<VMCRrs>;
pub type W = crate::W<VMCRrs>;
pub type VMT_R = crate::FieldReader;
pub type VMT_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type LPVSAE_R = crate::BitReader;
pub type LPVSAE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LPVBPE_R = crate::BitReader;
pub type LPVBPE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LPVFPE_R = crate::BitReader;
pub type LPVFPE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LPVAE_R = crate::BitReader;
pub type LPVAE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LPHBPE_R = crate::BitReader;
pub type LPHBPE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LPHFPE_R = crate::BitReader;
pub type LPHFPE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FBTAAE_R = crate::BitReader;
pub type FBTAAE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LPCE_R = crate::BitReader;
pub type LPCE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PGE_R = crate::BitReader;
pub type PGE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PGM_R = crate::BitReader;
pub type PGM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PGO_R = crate::BitReader;
pub type PGO_W<'a, REG> = crate::BitWriter<'a, REG>;
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 >> 8) & 1) != 0)
}
#[inline(always)]
pub fn lpvbpe(&self) -> LPVBPE_R {
LPVBPE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn lpvfpe(&self) -> LPVFPE_R {
LPVFPE_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn lpvae(&self) -> LPVAE_R {
LPVAE_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn lphbpe(&self) -> LPHBPE_R {
LPHBPE_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn lphfpe(&self) -> LPHFPE_R {
LPHFPE_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn fbtaae(&self) -> FBTAAE_R {
FBTAAE_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn lpce(&self) -> LPCE_R {
LPCE_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn pge(&self) -> PGE_R {
PGE_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn pgm(&self) -> PGM_R {
PGM_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn pgo(&self) -> PGO_R {
PGO_R::new(((self.bits >> 24) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("VMCR")
.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("lphfpe", &self.lphfpe())
.field("fbtaae", &self.fbtaae())
.field("lpce", &self.lpce())
.field("pge", &self.pge())
.field("pgm", &self.pgm())
.field("pgo", &self.pgo())
.finish()
}
}
impl W {
#[inline(always)]
pub fn vmt(&mut self) -> VMT_W<VMCRrs> {
VMT_W::new(self, 0)
}
#[inline(always)]
pub fn lpvsae(&mut self) -> LPVSAE_W<VMCRrs> {
LPVSAE_W::new(self, 8)
}
#[inline(always)]
pub fn lpvbpe(&mut self) -> LPVBPE_W<VMCRrs> {
LPVBPE_W::new(self, 9)
}
#[inline(always)]
pub fn lpvfpe(&mut self) -> LPVFPE_W<VMCRrs> {
LPVFPE_W::new(self, 10)
}
#[inline(always)]
pub fn lpvae(&mut self) -> LPVAE_W<VMCRrs> {
LPVAE_W::new(self, 11)
}
#[inline(always)]
pub fn lphbpe(&mut self) -> LPHBPE_W<VMCRrs> {
LPHBPE_W::new(self, 12)
}
#[inline(always)]
pub fn lphfpe(&mut self) -> LPHFPE_W<VMCRrs> {
LPHFPE_W::new(self, 13)
}
#[inline(always)]
pub fn fbtaae(&mut self) -> FBTAAE_W<VMCRrs> {
FBTAAE_W::new(self, 14)
}
#[inline(always)]
pub fn lpce(&mut self) -> LPCE_W<VMCRrs> {
LPCE_W::new(self, 15)
}
#[inline(always)]
pub fn pge(&mut self) -> PGE_W<VMCRrs> {
PGE_W::new(self, 16)
}
#[inline(always)]
pub fn pgm(&mut self) -> PGM_W<VMCRrs> {
PGM_W::new(self, 20)
}
#[inline(always)]
pub fn pgo(&mut self) -> PGO_W<VMCRrs> {
PGO_W::new(self, 24)
}
}
pub struct VMCRrs;
impl crate::RegisterSpec for VMCRrs {
type Ux = u32;
}
impl crate::Readable for VMCRrs {}
impl crate::Writable for VMCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for VMCRrs {}