pub type R = crate::R<WPCR3rs>;
pub type W = crate::W<WPCR3rs>;
pub type THSZERO_R = crate::FieldReader;
pub type THSZERO_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type TLPXD_R = crate::FieldReader;
pub type TLPXD_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type THSEXIT_R = crate::FieldReader;
pub type THSEXIT_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type TLPXC_R = crate::FieldReader;
pub type TLPXC_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn thszero(&self) -> THSZERO_R {
THSZERO_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn tlpxd(&self) -> TLPXD_R {
TLPXD_R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn thsexit(&self) -> THSEXIT_R {
THSEXIT_R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn tlpxc(&self) -> TLPXC_R {
TLPXC_R::new(((self.bits >> 24) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WPCR3")
.field("thszero", &self.thszero())
.field("tlpxd", &self.tlpxd())
.field("thsexit", &self.thsexit())
.field("tlpxc", &self.tlpxc())
.finish()
}
}
impl W {
#[inline(always)]
pub fn thszero(&mut self) -> THSZERO_W<WPCR3rs> {
THSZERO_W::new(self, 0)
}
#[inline(always)]
pub fn tlpxd(&mut self) -> TLPXD_W<WPCR3rs> {
TLPXD_W::new(self, 8)
}
#[inline(always)]
pub fn thsexit(&mut self) -> THSEXIT_W<WPCR3rs> {
THSEXIT_W::new(self, 16)
}
#[inline(always)]
pub fn tlpxc(&mut self) -> TLPXC_W<WPCR3rs> {
TLPXC_W::new(self, 24)
}
}
pub struct WPCR3rs;
impl crate::RegisterSpec for WPCR3rs {
type Ux = u32;
}
impl crate::Readable for WPCR3rs {}
impl crate::Writable for WPCR3rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for WPCR3rs {}