pub type R = crate::R<STATUSrs>;
pub type SeqrunningR = crate::BitReader;
pub type InstrrunningR = crate::BitReader;
pub type DmaactiveR = crate::BitReader;
impl R {
#[inline(always)]
pub fn seqrunning(&self) -> SeqrunningR {
SeqrunningR::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn instrrunning(&self) -> InstrrunningR {
InstrrunningR::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dmaactive(&self) -> DmaactiveR {
DmaactiveR::new(((self.bits >> 2) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("STATUS")
.field("seqrunning", &self.seqrunning())
.field("instrrunning", &self.instrrunning())
.field("dmaactive", &self.dmaactive())
.finish()
}
}
pub struct STATUSrs;
impl crate::RegisterSpec for STATUSrs {
type Ux = u32;
}
impl crate::Readable for STATUSrs {}
impl crate::Resettable for STATUSrs {}