pub type R = crate::R<MACTSCRrs>;
pub type W = crate::W<MACTSCRrs>;
pub type TSENA_R = crate::BitReader;
pub type TSENA_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSCFUPDT_R = crate::BitReader;
pub type TSCFUPDT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSINIT_R = crate::BitReader;
pub type TSINIT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSUPDT_R = crate::BitReader;
pub type TSUPDT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSADDREG_R = crate::BitReader;
pub type TSADDREG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSENALL_R = crate::BitReader;
pub type TSENALL_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSCTRLSSR_R = crate::BitReader;
pub type TSCTRLSSR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSVER2ENA_R = crate::BitReader;
pub type TSVER2ENA_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSIPENA_R = crate::BitReader;
pub type TSIPENA_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSIPV6ENA_R = crate::BitReader;
pub type TSIPV6ENA_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSIPV4ENA_R = crate::BitReader;
pub type TSIPV4ENA_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSEVNTENA_R = crate::BitReader;
pub type TSEVNTENA_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSMSTRENA_R = crate::BitReader;
pub type TSMSTRENA_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SNAPTYPSEL_R = crate::FieldReader;
pub type SNAPTYPSEL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type TSENMACADDR_R = crate::BitReader;
pub type TSENMACADDR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CSC_R = crate::BitReader;
pub type TXTSSTSM_R = crate::BitReader;
pub type TXTSSTSM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AV8021ASMEN_R = crate::BitReader;
pub type AV8021ASMEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tsena(&self) -> TSENA_R {
TSENA_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tscfupdt(&self) -> TSCFUPDT_R {
TSCFUPDT_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn tsinit(&self) -> TSINIT_R {
TSINIT_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn tsupdt(&self) -> TSUPDT_R {
TSUPDT_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn tsaddreg(&self) -> TSADDREG_R {
TSADDREG_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn tsenall(&self) -> TSENALL_R {
TSENALL_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn tsctrlssr(&self) -> TSCTRLSSR_R {
TSCTRLSSR_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn tsver2ena(&self) -> TSVER2ENA_R {
TSVER2ENA_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn tsipena(&self) -> TSIPENA_R {
TSIPENA_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn tsipv6ena(&self) -> TSIPV6ENA_R {
TSIPV6ENA_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn tsipv4ena(&self) -> TSIPV4ENA_R {
TSIPV4ENA_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn tsevntena(&self) -> TSEVNTENA_R {
TSEVNTENA_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn tsmstrena(&self) -> TSMSTRENA_R {
TSMSTRENA_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn snaptypsel(&self) -> SNAPTYPSEL_R {
SNAPTYPSEL_R::new(((self.bits >> 16) & 3) as u8)
}
#[inline(always)]
pub fn tsenmacaddr(&self) -> TSENMACADDR_R {
TSENMACADDR_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn csc(&self) -> CSC_R {
CSC_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn txtsstsm(&self) -> TXTSSTSM_R {
TXTSSTSM_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn av8021asmen(&self) -> AV8021ASMEN_R {
AV8021ASMEN_R::new(((self.bits >> 28) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACTSCR")
.field("tsena", &self.tsena())
.field("tscfupdt", &self.tscfupdt())
.field("tsinit", &self.tsinit())
.field("tsupdt", &self.tsupdt())
.field("tsaddreg", &self.tsaddreg())
.field("tsenall", &self.tsenall())
.field("tsctrlssr", &self.tsctrlssr())
.field("tsver2ena", &self.tsver2ena())
.field("tsipena", &self.tsipena())
.field("tsipv6ena", &self.tsipv6ena())
.field("tsipv4ena", &self.tsipv4ena())
.field("tsevntena", &self.tsevntena())
.field("tsmstrena", &self.tsmstrena())
.field("snaptypsel", &self.snaptypsel())
.field("tsenmacaddr", &self.tsenmacaddr())
.field("csc", &self.csc())
.field("txtsstsm", &self.txtsstsm())
.field("av8021asmen", &self.av8021asmen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tsena(&mut self) -> TSENA_W<MACTSCRrs> {
TSENA_W::new(self, 0)
}
#[inline(always)]
pub fn tscfupdt(&mut self) -> TSCFUPDT_W<MACTSCRrs> {
TSCFUPDT_W::new(self, 1)
}
#[inline(always)]
pub fn tsinit(&mut self) -> TSINIT_W<MACTSCRrs> {
TSINIT_W::new(self, 2)
}
#[inline(always)]
pub fn tsupdt(&mut self) -> TSUPDT_W<MACTSCRrs> {
TSUPDT_W::new(self, 3)
}
#[inline(always)]
pub fn tsaddreg(&mut self) -> TSADDREG_W<MACTSCRrs> {
TSADDREG_W::new(self, 5)
}
#[inline(always)]
pub fn tsenall(&mut self) -> TSENALL_W<MACTSCRrs> {
TSENALL_W::new(self, 8)
}
#[inline(always)]
pub fn tsctrlssr(&mut self) -> TSCTRLSSR_W<MACTSCRrs> {
TSCTRLSSR_W::new(self, 9)
}
#[inline(always)]
pub fn tsver2ena(&mut self) -> TSVER2ENA_W<MACTSCRrs> {
TSVER2ENA_W::new(self, 10)
}
#[inline(always)]
pub fn tsipena(&mut self) -> TSIPENA_W<MACTSCRrs> {
TSIPENA_W::new(self, 11)
}
#[inline(always)]
pub fn tsipv6ena(&mut self) -> TSIPV6ENA_W<MACTSCRrs> {
TSIPV6ENA_W::new(self, 12)
}
#[inline(always)]
pub fn tsipv4ena(&mut self) -> TSIPV4ENA_W<MACTSCRrs> {
TSIPV4ENA_W::new(self, 13)
}
#[inline(always)]
pub fn tsevntena(&mut self) -> TSEVNTENA_W<MACTSCRrs> {
TSEVNTENA_W::new(self, 14)
}
#[inline(always)]
pub fn tsmstrena(&mut self) -> TSMSTRENA_W<MACTSCRrs> {
TSMSTRENA_W::new(self, 15)
}
#[inline(always)]
pub fn snaptypsel(&mut self) -> SNAPTYPSEL_W<MACTSCRrs> {
SNAPTYPSEL_W::new(self, 16)
}
#[inline(always)]
pub fn tsenmacaddr(&mut self) -> TSENMACADDR_W<MACTSCRrs> {
TSENMACADDR_W::new(self, 18)
}
#[inline(always)]
pub fn txtsstsm(&mut self) -> TXTSSTSM_W<MACTSCRrs> {
TXTSSTSM_W::new(self, 24)
}
#[inline(always)]
pub fn av8021asmen(&mut self) -> AV8021ASMEN_W<MACTSCRrs> {
AV8021ASMEN_W::new(self, 28)
}
}
pub struct MACTSCRrs;
impl crate::RegisterSpec for MACTSCRrs {
type Ux = u32;
}
impl crate::Readable for MACTSCRrs {}
impl crate::Writable for MACTSCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACTSCRrs {
const RESET_VALUE: u32 = 0x2000;
}