pub type R = crate::R<SRrs>;
pub type C1VAL_R = crate::BitReader;
pub type C2VAL_R = crate::BitReader;
pub type C1IF_R = crate::BitReader;
pub type C2IF_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn c1val(&self) -> C1VAL_R {
C1VAL_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn c2val(&self) -> C2VAL_R {
C2VAL_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn c1if(&self) -> C1IF_R {
C1IF_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn c2if(&self) -> C2IF_R {
C2IF_R::new(((self.bits >> 17) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR")
.field("c1val", &self.c1val())
.field("c2val", &self.c2val())
.field("c1if", &self.c1if())
.field("c2if", &self.c2if())
.finish()
}
}
pub struct SRrs;
impl crate::RegisterSpec for SRrs {
type Ux = u32;
}
impl crate::Readable for SRrs {}
impl crate::Resettable for SRrs {}