pub type R = crate::R<MACVTRrs>;
pub type W = crate::W<MACVTRrs>;
pub type VL_R = crate::FieldReader<u16>;
pub type VL_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
pub type ETV_R = crate::BitReader;
pub type ETV_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type VTIM_R = crate::BitReader;
pub type VTIM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ESVL_R = crate::BitReader;
pub type ESVL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ERSVLM_R = crate::BitReader;
pub type ERSVLM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DOVLTC_R = crate::BitReader;
pub type DOVLTC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EVLS_R = crate::FieldReader;
pub type EVLS_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type EVLRXS_R = crate::BitReader;
pub type EVLRXS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type VTHM_R = crate::BitReader;
pub type VTHM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EDVLP_R = crate::BitReader;
pub type EDVLP_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ERIVLT_R = crate::BitReader;
pub type ERIVLT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EIVLS_R = crate::FieldReader;
pub type EIVLS_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type EIVLRXS_R = crate::BitReader;
pub type EIVLRXS_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn vl(&self) -> VL_R {
VL_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn etv(&self) -> ETV_R {
ETV_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn vtim(&self) -> VTIM_R {
VTIM_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn esvl(&self) -> ESVL_R {
ESVL_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn ersvlm(&self) -> ERSVLM_R {
ERSVLM_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn dovltc(&self) -> DOVLTC_R {
DOVLTC_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn evls(&self) -> EVLS_R {
EVLS_R::new(((self.bits >> 21) & 3) as u8)
}
#[inline(always)]
pub fn evlrxs(&self) -> EVLRXS_R {
EVLRXS_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn vthm(&self) -> VTHM_R {
VTHM_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn edvlp(&self) -> EDVLP_R {
EDVLP_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn erivlt(&self) -> ERIVLT_R {
ERIVLT_R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn eivls(&self) -> EIVLS_R {
EIVLS_R::new(((self.bits >> 28) & 3) as u8)
}
#[inline(always)]
pub fn eivlrxs(&self) -> EIVLRXS_R {
EIVLRXS_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACVTR")
.field("vl", &self.vl())
.field("etv", &self.etv())
.field("vtim", &self.vtim())
.field("esvl", &self.esvl())
.field("ersvlm", &self.ersvlm())
.field("dovltc", &self.dovltc())
.field("evls", &self.evls())
.field("evlrxs", &self.evlrxs())
.field("vthm", &self.vthm())
.field("edvlp", &self.edvlp())
.field("erivlt", &self.erivlt())
.field("eivls", &self.eivls())
.field("eivlrxs", &self.eivlrxs())
.finish()
}
}
impl W {
#[inline(always)]
pub fn vl(&mut self) -> VL_W<MACVTRrs> {
VL_W::new(self, 0)
}
#[inline(always)]
pub fn etv(&mut self) -> ETV_W<MACVTRrs> {
ETV_W::new(self, 16)
}
#[inline(always)]
pub fn vtim(&mut self) -> VTIM_W<MACVTRrs> {
VTIM_W::new(self, 17)
}
#[inline(always)]
pub fn esvl(&mut self) -> ESVL_W<MACVTRrs> {
ESVL_W::new(self, 18)
}
#[inline(always)]
pub fn ersvlm(&mut self) -> ERSVLM_W<MACVTRrs> {
ERSVLM_W::new(self, 19)
}
#[inline(always)]
pub fn dovltc(&mut self) -> DOVLTC_W<MACVTRrs> {
DOVLTC_W::new(self, 20)
}
#[inline(always)]
pub fn evls(&mut self) -> EVLS_W<MACVTRrs> {
EVLS_W::new(self, 21)
}
#[inline(always)]
pub fn evlrxs(&mut self) -> EVLRXS_W<MACVTRrs> {
EVLRXS_W::new(self, 24)
}
#[inline(always)]
pub fn vthm(&mut self) -> VTHM_W<MACVTRrs> {
VTHM_W::new(self, 25)
}
#[inline(always)]
pub fn edvlp(&mut self) -> EDVLP_W<MACVTRrs> {
EDVLP_W::new(self, 26)
}
#[inline(always)]
pub fn erivlt(&mut self) -> ERIVLT_W<MACVTRrs> {
ERIVLT_W::new(self, 27)
}
#[inline(always)]
pub fn eivls(&mut self) -> EIVLS_W<MACVTRrs> {
EIVLS_W::new(self, 28)
}
#[inline(always)]
pub fn eivlrxs(&mut self) -> EIVLRXS_W<MACVTRrs> {
EIVLRXS_W::new(self, 31)
}
}
pub struct MACVTRrs;
impl crate::RegisterSpec for MACVTRrs {
type Ux = u32;
}
impl crate::Readable for MACVTRrs {}
impl crate::Writable for MACVTRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACVTRrs {}