pub type R = crate::R<C9ESRrs>;
pub type TEA_R = crate::FieldReader;
pub type TED_R = crate::BitReader;
pub type TELD_R = crate::BitReader;
pub type TEMD_R = crate::BitReader;
pub type ASE_R = crate::BitReader;
pub type BSE_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn tea(&self) -> TEA_R {
TEA_R::new((self.bits & 0x7f) as u8)
}
#[inline(always)]
pub fn ted(&self) -> TED_R {
TED_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn teld(&self) -> TELD_R {
TELD_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn temd(&self) -> TEMD_R {
TEMD_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn ase(&self) -> ASE_R {
ASE_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn bse(&self) -> BSE_R {
BSE_R::new(((self.bits >> 11) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("C9ESR")
.field("tea", &self.tea())
.field("ted", &self.ted())
.field("teld", &self.teld())
.field("temd", &self.temd())
.field("ase", &self.ase())
.field("bse", &self.bse())
.finish()
}
}
pub struct C9ESRrs;
impl crate::RegisterSpec for C9ESRrs {
type Ux = u32;
}
impl crate::Readable for C9ESRrs {}
impl crate::Resettable for C9ESRrs {}