cyt4dn_b 0.0.1

Peripheral access crate for cyt4dn_b T2G family
Documentation
#[doc = "Register `MBIST_STAT` reader"]
pub struct R(crate::R<MBIST_STAT_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<MBIST_STAT_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<MBIST_STAT_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<MBIST_STAT_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `SFP_READY` reader - Flag indicating the BIST run is done. Note that after starting a BIST run this flag must be set before a new run can be started. For the first BIST run this will be 0."]
pub type SFP_READY_R = crate::BitReader<bool>;
#[doc = "Field `SFP_FAIL` reader - Report status of the BIST run, only valid if SFP_READY=1"]
pub type SFP_FAIL_R = crate::BitReader<bool>;
impl R {
    #[doc = "Bit 0 - Flag indicating the BIST run is done. Note that after starting a BIST run this flag must be set before a new run can be started. For the first BIST run this will be 0."]
    #[inline(always)]
    pub fn sfp_ready(&self) -> SFP_READY_R {
        SFP_READY_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Report status of the BIST run, only valid if SFP_READY=1"]
    #[inline(always)]
    pub fn sfp_fail(&self) -> SFP_FAIL_R {
        SFP_FAIL_R::new(((self.bits >> 1) & 1) != 0)
    }
}
#[doc = "Memory BIST status\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [mbist_stat](index.html) module"]
pub struct MBIST_STAT_SPEC;
impl crate::RegisterSpec for MBIST_STAT_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [mbist_stat::R](R) reader structure"]
impl crate::Readable for MBIST_STAT_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets MBIST_STAT to value 0"]
impl crate::Resettable for MBIST_STAT_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}