pub type R = crate::R<HPTXSTSrs>;
pub type W = crate::W<HPTXSTSrs>;
pub type PTXFSAVL_R = crate::FieldReader<u16>;
pub type PTXFSAVL_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
pub type PTXQSAV_R = crate::FieldReader;
pub type PTXQTOP_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn ptxfsavl(&self) -> PTXFSAVL_R {
PTXFSAVL_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn ptxqsav(&self) -> PTXQSAV_R {
PTXQSAV_R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn ptxqtop(&self) -> PTXQTOP_R {
PTXQTOP_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("HPTXSTS")
.field("ptxfsavl", &self.ptxfsavl())
.field("ptxqsav", &self.ptxqsav())
.field("ptxqtop", &self.ptxqtop())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ptxfsavl(&mut self) -> PTXFSAVL_W<HPTXSTSrs> {
PTXFSAVL_W::new(self, 0)
}
}
pub struct HPTXSTSrs;
impl crate::RegisterSpec for HPTXSTSrs {
type Ux = u32;
}
impl crate::Readable for HPTXSTSrs {}
impl crate::Writable for HPTXSTSrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for HPTXSTSrs {
const RESET_VALUE: u32 = 0x0008_0100;
}