pub type R = crate::R<CSRrs>;
pub type ADRDY_MST_R = crate::BitReader;
pub type EOSMP_MST_R = crate::BitReader;
pub type EOC_MST_R = crate::BitReader;
pub type EOS_MST_R = crate::BitReader;
pub type OVR_MST_R = crate::BitReader;
pub type JEOC_MST_R = crate::BitReader;
pub type JEOS_MST_R = crate::BitReader;
pub type AWD1_MST_R = crate::BitReader;
pub type AWD2_MST_R = crate::BitReader;
pub type AWD3_MST_R = crate::BitReader;
pub type JQOVF_MST_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn adrdy_mst(&self) -> ADRDY_MST_R {
ADRDY_MST_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn eosmp_mst(&self) -> EOSMP_MST_R {
EOSMP_MST_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn eoc_mst(&self) -> EOC_MST_R {
EOC_MST_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn eos_mst(&self) -> EOS_MST_R {
EOS_MST_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn ovr_mst(&self) -> OVR_MST_R {
OVR_MST_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn jeoc_mst(&self) -> JEOC_MST_R {
JEOC_MST_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn jeos_mst(&self) -> JEOS_MST_R {
JEOS_MST_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn awd1_mst(&self) -> AWD1_MST_R {
AWD1_MST_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn awd2_mst(&self) -> AWD2_MST_R {
AWD2_MST_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn awd3_mst(&self) -> AWD3_MST_R {
AWD3_MST_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn jqovf_mst(&self) -> JQOVF_MST_R {
JQOVF_MST_R::new(((self.bits >> 10) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CSR")
.field("adrdy_mst", &self.adrdy_mst())
.field("eosmp_mst", &self.eosmp_mst())
.field("eoc_mst", &self.eoc_mst())
.field("eos_mst", &self.eos_mst())
.field("ovr_mst", &self.ovr_mst())
.field("jeoc_mst", &self.jeoc_mst())
.field("jeos_mst", &self.jeos_mst())
.field("awd1_mst", &self.awd1_mst())
.field("awd2_mst", &self.awd2_mst())
.field("awd3_mst", &self.awd3_mst())
.field("jqovf_mst", &self.jqovf_mst())
.finish()
}
}
pub struct CSRrs;
impl crate::RegisterSpec for CSRrs {
type Ux = u32;
}
impl crate::Readable for CSRrs {}
impl crate::Resettable for CSRrs {}