pub type R = crate::R<CMCRrs>;
pub type W = crate::W<CMCRrs>;
pub type TEARE_R = crate::BitReader;
pub type TEARE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ARE_R = crate::BitReader;
pub type ARE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GSW0TX_R = crate::BitReader;
pub type GSW0TX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GSW1TX_R = crate::BitReader;
pub type GSW1TX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GSW2TX_R = crate::BitReader;
pub type GSW2TX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GSR0TX_R = crate::BitReader;
pub type GSR0TX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GSR1TX_R = crate::BitReader;
pub type GSR1TX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GSR2TX_R = crate::BitReader;
pub type GSR2TX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GLWTX_R = crate::BitReader;
pub type GLWTX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DSW0TX_R = crate::BitReader;
pub type DSW0TX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DSW1TX_R = crate::BitReader;
pub type DSW1TX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DSR0TX_R = crate::BitReader;
pub type DSR0TX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DLWTX_R = crate::BitReader;
pub type DLWTX_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type MRDPS_R = crate::BitReader;
pub type MRDPS_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn teare(&self) -> TEARE_R {
TEARE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn are(&self) -> ARE_R {
ARE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn gsw0tx(&self) -> GSW0TX_R {
GSW0TX_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn gsw1tx(&self) -> GSW1TX_R {
GSW1TX_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn gsw2tx(&self) -> GSW2TX_R {
GSW2TX_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn gsr0tx(&self) -> GSR0TX_R {
GSR0TX_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn gsr1tx(&self) -> GSR1TX_R {
GSR1TX_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn gsr2tx(&self) -> GSR2TX_R {
GSR2TX_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn glwtx(&self) -> GLWTX_R {
GLWTX_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn dsw0tx(&self) -> DSW0TX_R {
DSW0TX_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn dsw1tx(&self) -> DSW1TX_R {
DSW1TX_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn dsr0tx(&self) -> DSR0TX_R {
DSR0TX_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn dlwtx(&self) -> DLWTX_R {
DLWTX_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn mrdps(&self) -> MRDPS_R {
MRDPS_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("CMCR")
.field("teare", &self.teare())
.field("are", &self.are())
.field("gsw0tx", &self.gsw0tx())
.field("gsw1tx", &self.gsw1tx())
.field("gsw2tx", &self.gsw2tx())
.field("gsr0tx", &self.gsr0tx())
.field("gsr1tx", &self.gsr1tx())
.field("gsr2tx", &self.gsr2tx())
.field("glwtx", &self.glwtx())
.field("dsw0tx", &self.dsw0tx())
.field("dsw1tx", &self.dsw1tx())
.field("dsr0tx", &self.dsr0tx())
.field("dlwtx", &self.dlwtx())
.field("mrdps", &self.mrdps())
.finish()
}
}
impl W {
#[inline(always)]
pub fn teare(&mut self) -> TEARE_W<CMCRrs> {
TEARE_W::new(self, 0)
}
#[inline(always)]
pub fn are(&mut self) -> ARE_W<CMCRrs> {
ARE_W::new(self, 1)
}
#[inline(always)]
pub fn gsw0tx(&mut self) -> GSW0TX_W<CMCRrs> {
GSW0TX_W::new(self, 8)
}
#[inline(always)]
pub fn gsw1tx(&mut self) -> GSW1TX_W<CMCRrs> {
GSW1TX_W::new(self, 9)
}
#[inline(always)]
pub fn gsw2tx(&mut self) -> GSW2TX_W<CMCRrs> {
GSW2TX_W::new(self, 10)
}
#[inline(always)]
pub fn gsr0tx(&mut self) -> GSR0TX_W<CMCRrs> {
GSR0TX_W::new(self, 11)
}
#[inline(always)]
pub fn gsr1tx(&mut self) -> GSR1TX_W<CMCRrs> {
GSR1TX_W::new(self, 12)
}
#[inline(always)]
pub fn gsr2tx(&mut self) -> GSR2TX_W<CMCRrs> {
GSR2TX_W::new(self, 13)
}
#[inline(always)]
pub fn glwtx(&mut self) -> GLWTX_W<CMCRrs> {
GLWTX_W::new(self, 14)
}
#[inline(always)]
pub fn dsw0tx(&mut self) -> DSW0TX_W<CMCRrs> {
DSW0TX_W::new(self, 16)
}
#[inline(always)]
pub fn dsw1tx(&mut self) -> DSW1TX_W<CMCRrs> {
DSW1TX_W::new(self, 17)
}
#[inline(always)]
pub fn dsr0tx(&mut self) -> DSR0TX_W<CMCRrs> {
DSR0TX_W::new(self, 18)
}
#[inline(always)]
pub fn dlwtx(&mut self) -> DLWTX_W<CMCRrs> {
DLWTX_W::new(self, 19)
}
#[inline(always)]
pub fn mrdps(&mut self) -> MRDPS_W<CMCRrs> {
MRDPS_W::new(self, 24)
}
}
pub struct CMCRrs;
impl crate::RegisterSpec for CMCRrs {
type Ux = u32;
}
impl crate::Readable for CMCRrs {}
impl crate::Writable for CMCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CMCRrs {}