stm32f7 0.15.0

Device support crates for STM32F7 devices
Documentation
#[doc = "Register `DFSDM_AWSCD6R` reader"]
pub struct R(crate::R<DFSDM_AWSCD6R_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<DFSDM_AWSCD6R_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<DFSDM_AWSCD6R_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<DFSDM_AWSCD6R_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `DFSDM_AWSCD6R` writer"]
pub struct W(crate::W<DFSDM_AWSCD6R_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<DFSDM_AWSCD6R_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<DFSDM_AWSCD6R_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<DFSDM_AWSCD6R_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `SCDT` reader - short-circuit detector threshold for channel 6"]
pub type SCDT_R = crate::FieldReader<u8, u8>;
#[doc = "Field `SCDT` writer - short-circuit detector threshold for channel 6"]
pub type SCDT_W<'a> = crate::FieldWriter<'a, u32, DFSDM_AWSCD6R_SPEC, u8, u8, 8, 0>;
#[doc = "Field `BKSCD` reader - Break signal assignment for short-circuit detector on channel 6"]
pub type BKSCD_R = crate::FieldReader<u8, u8>;
#[doc = "Field `BKSCD` writer - Break signal assignment for short-circuit detector on channel 6"]
pub type BKSCD_W<'a> = crate::FieldWriter<'a, u32, DFSDM_AWSCD6R_SPEC, u8, u8, 4, 12>;
#[doc = "Field `AWFOSR` reader - Analog watchdog filter oversampling ratio (decimation rate) on channel 6"]
pub type AWFOSR_R = crate::FieldReader<u8, u8>;
#[doc = "Field `AWFOSR` writer - Analog watchdog filter oversampling ratio (decimation rate) on channel 6"]
pub type AWFOSR_W<'a> = crate::FieldWriter<'a, u32, DFSDM_AWSCD6R_SPEC, u8, u8, 5, 16>;
#[doc = "Field `AWFORD` reader - Analog watchdog Sinc filter order on channel 6"]
pub type AWFORD_R = crate::FieldReader<u8, u8>;
#[doc = "Field `AWFORD` writer - Analog watchdog Sinc filter order on channel 6"]
pub type AWFORD_W<'a> = crate::FieldWriter<'a, u32, DFSDM_AWSCD6R_SPEC, u8, u8, 2, 22>;
impl R {
    #[doc = "Bits 0:7 - short-circuit detector threshold for channel 6"]
    #[inline(always)]
    pub fn scdt(&self) -> SCDT_R {
        SCDT_R::new((self.bits & 0xff) as u8)
    }
    #[doc = "Bits 12:15 - Break signal assignment for short-circuit detector on channel 6"]
    #[inline(always)]
    pub fn bkscd(&self) -> BKSCD_R {
        BKSCD_R::new(((self.bits >> 12) & 0x0f) as u8)
    }
    #[doc = "Bits 16:20 - Analog watchdog filter oversampling ratio (decimation rate) on channel 6"]
    #[inline(always)]
    pub fn awfosr(&self) -> AWFOSR_R {
        AWFOSR_R::new(((self.bits >> 16) & 0x1f) as u8)
    }
    #[doc = "Bits 22:23 - Analog watchdog Sinc filter order on channel 6"]
    #[inline(always)]
    pub fn awford(&self) -> AWFORD_R {
        AWFORD_R::new(((self.bits >> 22) & 3) as u8)
    }
}
impl W {
    #[doc = "Bits 0:7 - short-circuit detector threshold for channel 6"]
    #[inline(always)]
    pub fn scdt(&mut self) -> SCDT_W {
        SCDT_W::new(self)
    }
    #[doc = "Bits 12:15 - Break signal assignment for short-circuit detector on channel 6"]
    #[inline(always)]
    pub fn bkscd(&mut self) -> BKSCD_W {
        BKSCD_W::new(self)
    }
    #[doc = "Bits 16:20 - Analog watchdog filter oversampling ratio (decimation rate) on channel 6"]
    #[inline(always)]
    pub fn awfosr(&mut self) -> AWFOSR_W {
        AWFOSR_W::new(self)
    }
    #[doc = "Bits 22:23 - Analog watchdog Sinc filter order on channel 6"]
    #[inline(always)]
    pub fn awford(&mut self) -> AWFORD_W {
        AWFORD_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "DFSDM analog watchdog and short-circuit detector register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dfsdm_awscd6r](index.html) module"]
pub struct DFSDM_AWSCD6R_SPEC;
impl crate::RegisterSpec for DFSDM_AWSCD6R_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [dfsdm_awscd6r::R](R) reader structure"]
impl crate::Readable for DFSDM_AWSCD6R_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [dfsdm_awscd6r::W](W) writer structure"]
impl crate::Writable for DFSDM_AWSCD6R_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets DFSDM_AWSCD6R to value 0"]
impl crate::Resettable for DFSDM_AWSCD6R_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}