pub type R = crate::R<SRrs>;
pub type MKVALID_R = crate::BitReader;
pub type FMKVALID_R = crate::BitReader;
pub type ENCDIS_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn mkvalid(&self) -> MKVALID_R {
MKVALID_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn fmkvalid(&self) -> FMKVALID_R {
FMKVALID_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn encdis(&self) -> ENCDIS_R {
ENCDIS_R::new(((self.bits >> 4) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR")
.field("mkvalid", &self.mkvalid())
.field("fmkvalid", &self.fmkvalid())
.field("encdis", &self.encdis())
.finish()
}
}
pub struct SRrs;
impl crate::RegisterSpec for SRrs {
type Ux = u32;
}
impl crate::Readable for SRrs {}
impl crate::Resettable for SRrs {}