pub type R = crate::R<ISR1rs>;
pub type TOHSTX_R = crate::BitReader;
pub type TOLPRX_R = crate::BitReader;
pub type ECCSE_R = crate::BitReader;
pub type ECCME_R = crate::BitReader;
pub type CRCE_R = crate::BitReader;
pub type PSE_R = crate::BitReader;
pub type EOTPE_R = crate::BitReader;
pub type LPWRE_R = crate::BitReader;
pub type GCWRE_R = crate::BitReader;
pub type GPWRE_R = crate::BitReader;
pub type GPTXE_R = crate::BitReader;
pub type GPRDE_R = crate::BitReader;
pub type GPRXE_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn tohstx(&self) -> TOHSTX_R {
TOHSTX_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tolprx(&self) -> TOLPRX_R {
TOLPRX_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn eccse(&self) -> ECCSE_R {
ECCSE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn eccme(&self) -> ECCME_R {
ECCME_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn crce(&self) -> CRCE_R {
CRCE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn pse(&self) -> PSE_R {
PSE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn eotpe(&self) -> EOTPE_R {
EOTPE_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn lpwre(&self) -> LPWRE_R {
LPWRE_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn gcwre(&self) -> GCWRE_R {
GCWRE_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn gpwre(&self) -> GPWRE_R {
GPWRE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn gptxe(&self) -> GPTXE_R {
GPTXE_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn gprde(&self) -> GPRDE_R {
GPRDE_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn gprxe(&self) -> GPRXE_R {
GPRXE_R::new(((self.bits >> 12) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ISR1")
.field("tohstx", &self.tohstx())
.field("tolprx", &self.tolprx())
.field("eccse", &self.eccse())
.field("eccme", &self.eccme())
.field("crce", &self.crce())
.field("pse", &self.pse())
.field("eotpe", &self.eotpe())
.field("lpwre", &self.lpwre())
.field("gcwre", &self.gcwre())
.field("gpwre", &self.gpwre())
.field("gptxe", &self.gptxe())
.field("gprde", &self.gprde())
.field("gprxe", &self.gprxe())
.finish()
}
}
pub struct ISR1rs;
impl crate::RegisterSpec for ISR1rs {
type Ux = u32;
}
impl crate::Readable for ISR1rs {}
impl crate::Resettable for ISR1rs {}