pub type R = crate::R<C16ISRrs>;
pub type TEIF_R = crate::BitReader;
pub type CTCIF_R = crate::BitReader;
pub type BRTIF_R = crate::BitReader;
pub type BTIF_R = crate::BitReader;
pub type TCIF_R = crate::BitReader;
pub type CRQA_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn teif(&self) -> TEIF_R {
TEIF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ctcif(&self) -> CTCIF_R {
CTCIF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn brtif(&self) -> BRTIF_R {
BRTIF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn btif(&self) -> BTIF_R {
BTIF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn tcif(&self) -> TCIF_R {
TCIF_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn crqa(&self) -> CRQA_R {
CRQA_R::new(((self.bits >> 16) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("C16ISR")
.field("teif", &self.teif())
.field("ctcif", &self.ctcif())
.field("brtif", &self.brtif())
.field("btif", &self.btif())
.field("tcif", &self.tcif())
.field("crqa", &self.crqa())
.finish()
}
}
pub struct C16ISRrs;
impl crate::RegisterSpec for C16ISRrs {
type Ux = u32;
}
impl crate::Readable for C16ISRrs {}
impl crate::Resettable for C16ISRrs {}