pub type R = crate::R<TTOSTrs>;
pub type EL_R = crate::FieldReader;
pub type MS_R = crate::FieldReader;
pub type SYS_R = crate::FieldReader;
pub type QGTP_R = crate::BitReader;
pub type QCS_R = crate::BitReader;
pub type RTO_R = crate::FieldReader;
pub type WGTD_R = crate::BitReader;
pub type GFI_R = crate::BitReader;
pub type TMP_R = crate::FieldReader;
pub type GSI_R = crate::BitReader;
pub type WFE_R = crate::BitReader;
pub type AWE_R = crate::BitReader;
pub type WECS_R = crate::BitReader;
pub type SPL_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn el(&self) -> EL_R {
EL_R::new((self.bits & 3) as u8)
}
#[inline(always)]
pub fn ms(&self) -> MS_R {
MS_R::new(((self.bits >> 2) & 3) as u8)
}
#[inline(always)]
pub fn sys(&self) -> SYS_R {
SYS_R::new(((self.bits >> 4) & 3) as u8)
}
#[inline(always)]
pub fn qgtp(&self) -> QGTP_R {
QGTP_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn qcs(&self) -> QCS_R {
QCS_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn rto(&self) -> RTO_R {
RTO_R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn wgtd(&self) -> WGTD_R {
WGTD_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn gfi(&self) -> GFI_R {
GFI_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn tmp(&self) -> TMP_R {
TMP_R::new(((self.bits >> 24) & 7) as u8)
}
#[inline(always)]
pub fn gsi(&self) -> GSI_R {
GSI_R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn wfe(&self) -> WFE_R {
WFE_R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn awe(&self) -> AWE_R {
AWE_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn wecs(&self) -> WECS_R {
WECS_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn spl(&self) -> SPL_R {
SPL_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TTOST")
.field("el", &self.el())
.field("ms", &self.ms())
.field("sys", &self.sys())
.field("qgtp", &self.qgtp())
.field("qcs", &self.qcs())
.field("rto", &self.rto())
.field("wgtd", &self.wgtd())
.field("gfi", &self.gfi())
.field("tmp", &self.tmp())
.field("gsi", &self.gsi())
.field("wfe", &self.wfe())
.field("awe", &self.awe())
.field("wecs", &self.wecs())
.field("spl", &self.spl())
.finish()
}
}
pub struct TTOSTrs;
impl crate::RegisterSpec for TTOSTrs {
type Ux = u32;
}
impl crate::Readable for TTOSTrs {}
impl crate::Resettable for TTOSTrs {}