pub type R = crate::R<WCFGRrs>;
pub type W = crate::W<WCFGRrs>;
pub type DSIM_R = crate::BitReader;
pub type DSIM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type COLMUX_R = crate::FieldReader;
pub type COLMUX_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type TESRC_R = crate::BitReader;
pub type TESRC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TEPOL_R = crate::BitReader;
pub type TEPOL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AR_R = crate::BitReader;
pub type AR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type VSPOL_R = crate::BitReader;
pub type VSPOL_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn dsim(&self) -> DSIM_R {
DSIM_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn colmux(&self) -> COLMUX_R {
COLMUX_R::new(((self.bits >> 1) & 7) as u8)
}
#[inline(always)]
pub fn tesrc(&self) -> TESRC_R {
TESRC_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn tepol(&self) -> TEPOL_R {
TEPOL_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn ar(&self) -> AR_R {
AR_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn vspol(&self) -> VSPOL_R {
VSPOL_R::new(((self.bits >> 7) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WCFGR")
.field("dsim", &self.dsim())
.field("colmux", &self.colmux())
.field("tesrc", &self.tesrc())
.field("tepol", &self.tepol())
.field("ar", &self.ar())
.field("vspol", &self.vspol())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dsim(&mut self) -> DSIM_W<WCFGRrs> {
DSIM_W::new(self, 0)
}
#[inline(always)]
pub fn colmux(&mut self) -> COLMUX_W<WCFGRrs> {
COLMUX_W::new(self, 1)
}
#[inline(always)]
pub fn tesrc(&mut self) -> TESRC_W<WCFGRrs> {
TESRC_W::new(self, 4)
}
#[inline(always)]
pub fn tepol(&mut self) -> TEPOL_W<WCFGRrs> {
TEPOL_W::new(self, 5)
}
#[inline(always)]
pub fn ar(&mut self) -> AR_W<WCFGRrs> {
AR_W::new(self, 6)
}
#[inline(always)]
pub fn vspol(&mut self) -> VSPOL_W<WCFGRrs> {
VSPOL_W::new(self, 7)
}
}
pub struct WCFGRrs;
impl crate::RegisterSpec for WCFGRrs {
type Ux = u32;
}
impl crate::Readable for WCFGRrs {}
impl crate::Writable for WCFGRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for WCFGRrs {}