pub type R = crate::R<PTPTSCRrs>;
pub type W = crate::W<PTPTSCRrs>;
pub type TSE_R = crate::BitReader;
pub type TSE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSFCU_R = crate::BitReader;
pub type TSFCU_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSSTI_R = crate::BitReader;
pub type TSSTI_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSSTU_R = crate::BitReader;
pub type TSSTU_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSITE_R = crate::BitReader;
pub type TSITE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TTSARU_R = crate::BitReader;
pub type TTSARU_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSSARFE_R = crate::BitReader;
pub type TSSARFE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSSSR_R = crate::BitReader;
pub type TSSSR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSPTPPSV2E_R = crate::BitReader;
pub type TSPTPPSV2E_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSSPTPOEFE_R = crate::BitReader;
pub type TSSPTPOEFE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSSIPV6FE_R = crate::BitReader;
pub type TSSIPV6FE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSSIPV4FE_R = crate::BitReader;
pub type TSSIPV4FE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSSEME_R = crate::BitReader;
pub type TSSEME_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSSMRME_R = crate::BitReader;
pub type TSSMRME_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TSCNT_R = crate::FieldReader;
pub type TSCNT_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type TSPFFMAE_R = crate::BitReader;
pub type TSPFFMAE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tse(&self) -> TSE_R {
TSE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tsfcu(&self) -> TSFCU_R {
TSFCU_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn tssti(&self) -> TSSTI_R {
TSSTI_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn tsstu(&self) -> TSSTU_R {
TSSTU_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn tsite(&self) -> TSITE_R {
TSITE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn ttsaru(&self) -> TTSARU_R {
TTSARU_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn tssarfe(&self) -> TSSARFE_R {
TSSARFE_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn tsssr(&self) -> TSSSR_R {
TSSSR_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn tsptppsv2e(&self) -> TSPTPPSV2E_R {
TSPTPPSV2E_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn tssptpoefe(&self) -> TSSPTPOEFE_R {
TSSPTPOEFE_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn tssipv6fe(&self) -> TSSIPV6FE_R {
TSSIPV6FE_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn tssipv4fe(&self) -> TSSIPV4FE_R {
TSSIPV4FE_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn tsseme(&self) -> TSSEME_R {
TSSEME_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn tssmrme(&self) -> TSSMRME_R {
TSSMRME_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn tscnt(&self) -> TSCNT_R {
TSCNT_R::new(((self.bits >> 16) & 3) as u8)
}
#[inline(always)]
pub fn tspffmae(&self) -> TSPFFMAE_R {
TSPFFMAE_R::new(((self.bits >> 18) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PTPTSCR")
.field("tse", &self.tse())
.field("tsfcu", &self.tsfcu())
.field("tssti", &self.tssti())
.field("tsstu", &self.tsstu())
.field("tsite", &self.tsite())
.field("ttsaru", &self.ttsaru())
.field("tssarfe", &self.tssarfe())
.field("tsssr", &self.tsssr())
.field("tsptppsv2e", &self.tsptppsv2e())
.field("tssptpoefe", &self.tssptpoefe())
.field("tssipv6fe", &self.tssipv6fe())
.field("tssipv4fe", &self.tssipv4fe())
.field("tsseme", &self.tsseme())
.field("tssmrme", &self.tssmrme())
.field("tscnt", &self.tscnt())
.field("tspffmae", &self.tspffmae())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tse(&mut self) -> TSE_W<PTPTSCRrs> {
TSE_W::new(self, 0)
}
#[inline(always)]
pub fn tsfcu(&mut self) -> TSFCU_W<PTPTSCRrs> {
TSFCU_W::new(self, 1)
}
#[inline(always)]
pub fn tssti(&mut self) -> TSSTI_W<PTPTSCRrs> {
TSSTI_W::new(self, 2)
}
#[inline(always)]
pub fn tsstu(&mut self) -> TSSTU_W<PTPTSCRrs> {
TSSTU_W::new(self, 3)
}
#[inline(always)]
pub fn tsite(&mut self) -> TSITE_W<PTPTSCRrs> {
TSITE_W::new(self, 4)
}
#[inline(always)]
pub fn ttsaru(&mut self) -> TTSARU_W<PTPTSCRrs> {
TTSARU_W::new(self, 5)
}
#[inline(always)]
pub fn tssarfe(&mut self) -> TSSARFE_W<PTPTSCRrs> {
TSSARFE_W::new(self, 8)
}
#[inline(always)]
pub fn tsssr(&mut self) -> TSSSR_W<PTPTSCRrs> {
TSSSR_W::new(self, 9)
}
#[inline(always)]
pub fn tsptppsv2e(&mut self) -> TSPTPPSV2E_W<PTPTSCRrs> {
TSPTPPSV2E_W::new(self, 10)
}
#[inline(always)]
pub fn tssptpoefe(&mut self) -> TSSPTPOEFE_W<PTPTSCRrs> {
TSSPTPOEFE_W::new(self, 11)
}
#[inline(always)]
pub fn tssipv6fe(&mut self) -> TSSIPV6FE_W<PTPTSCRrs> {
TSSIPV6FE_W::new(self, 12)
}
#[inline(always)]
pub fn tssipv4fe(&mut self) -> TSSIPV4FE_W<PTPTSCRrs> {
TSSIPV4FE_W::new(self, 13)
}
#[inline(always)]
pub fn tsseme(&mut self) -> TSSEME_W<PTPTSCRrs> {
TSSEME_W::new(self, 14)
}
#[inline(always)]
pub fn tssmrme(&mut self) -> TSSMRME_W<PTPTSCRrs> {
TSSMRME_W::new(self, 15)
}
#[inline(always)]
pub fn tscnt(&mut self) -> TSCNT_W<PTPTSCRrs> {
TSCNT_W::new(self, 16)
}
#[inline(always)]
pub fn tspffmae(&mut self) -> TSPFFMAE_W<PTPTSCRrs> {
TSPFFMAE_W::new(self, 18)
}
}
pub struct PTPTSCRrs;
impl crate::RegisterSpec for PTPTSCRrs {
type Ux = u32;
}
impl crate::Readable for PTPTSCRrs {}
impl crate::Writable for PTPTSCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PTPTSCRrs {
const RESET_VALUE: u32 = 0x2000;
}