stm32h7 0.16.0

Device support crates for STM32H7 devices
Documentation
///Register `PLL3SSCGR` reader
pub type R = crate::R<PLL3SSCGRrs>;
///Register `PLL3SSCGR` writer
pub type W = crate::W<PLL3SSCGRrs>;
///Field `MOD_PER` reader - Modulation Period Adjustment for PLL3 Set and reset by software to adjust the modulation period of the clock spreading generator.
pub type MOD_PER_R = crate::FieldReader<u16>;
///Field `MOD_PER` writer - Modulation Period Adjustment for PLL3 Set and reset by software to adjust the modulation period of the clock spreading generator.
pub type MOD_PER_W<'a, REG> = crate::FieldWriter<'a, REG, 13, u16>;
///Field `TPDFN_DIS3` reader - Dithering TPDF noise control for PLL3 Set and reset by software. This bit is used to enable or disable the injection of a dithering noise into the SSCG modulator. This dithering noise is generated using a triangular probability density function.
pub type TPDFN_DIS3_R = crate::BitReader;
///Field `TPDFN_DIS3` writer - Dithering TPDF noise control for PLL3 Set and reset by software. This bit is used to enable or disable the injection of a dithering noise into the SSCG modulator. This dithering noise is generated using a triangular probability density function.
pub type TPDFN_DIS3_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `RPDFN_DIS3` reader - Dithering RPDF noise control for PLL3 Set and reset by software. This bit is used to enable or disable the injection of a dithering noise into the SSCG modulator. This dithering noise is generated using a rectangular probability density function.
pub type RPDFN_DIS3_R = crate::BitReader;
///Field `RPDFN_DIS3` writer - Dithering RPDF noise control for PLL3 Set and reset by software. This bit is used to enable or disable the injection of a dithering noise into the SSCG modulator. This dithering noise is generated using a rectangular probability density function.
pub type RPDFN_DIS3_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `DWNSPREAD3` reader - Spread spectrum clock generator mode for PLL3 Set and reset by software to select the clock spreading mode.
pub type DWNSPREAD3_R = crate::BitReader;
///Field `DWNSPREAD3` writer - Spread spectrum clock generator mode for PLL3 Set and reset by software to select the clock spreading mode.
pub type DWNSPREAD3_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `INC_STEP` reader - Modulation Depth Adjustment for PLL3 Set and reset by software to adjust the modulation depth of the clock spreading generator.
pub type INC_STEP_R = crate::FieldReader<u16>;
///Field `INC_STEP` writer - Modulation Depth Adjustment for PLL3 Set and reset by software to adjust the modulation depth of the clock spreading generator.
pub type INC_STEP_W<'a, REG> = crate::FieldWriter<'a, REG, 15, u16>;
impl R {
    ///Bits 0:12 - Modulation Period Adjustment for PLL3 Set and reset by software to adjust the modulation period of the clock spreading generator.
    #[inline(always)]
    pub fn mod_per(&self) -> MOD_PER_R {
        MOD_PER_R::new((self.bits & 0x1fff) as u16)
    }
    ///Bit 13 - Dithering TPDF noise control for PLL3 Set and reset by software. This bit is used to enable or disable the injection of a dithering noise into the SSCG modulator. This dithering noise is generated using a triangular probability density function.
    #[inline(always)]
    pub fn tpdfn_dis3(&self) -> TPDFN_DIS3_R {
        TPDFN_DIS3_R::new(((self.bits >> 13) & 1) != 0)
    }
    ///Bit 14 - Dithering RPDF noise control for PLL3 Set and reset by software. This bit is used to enable or disable the injection of a dithering noise into the SSCG modulator. This dithering noise is generated using a rectangular probability density function.
    #[inline(always)]
    pub fn rpdfn_dis3(&self) -> RPDFN_DIS3_R {
        RPDFN_DIS3_R::new(((self.bits >> 14) & 1) != 0)
    }
    ///Bit 15 - Spread spectrum clock generator mode for PLL3 Set and reset by software to select the clock spreading mode.
    #[inline(always)]
    pub fn dwnspread3(&self) -> DWNSPREAD3_R {
        DWNSPREAD3_R::new(((self.bits >> 15) & 1) != 0)
    }
    ///Bits 16:30 - Modulation Depth Adjustment for PLL3 Set and reset by software to adjust the modulation depth of the clock spreading generator.
    #[inline(always)]
    pub fn inc_step(&self) -> INC_STEP_R {
        INC_STEP_R::new(((self.bits >> 16) & 0x7fff) as u16)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("PLL3SSCGR")
            .field("mod_per", &self.mod_per())
            .field("tpdfn_dis3", &self.tpdfn_dis3())
            .field("rpdfn_dis3", &self.rpdfn_dis3())
            .field("dwnspread3", &self.dwnspread3())
            .field("inc_step", &self.inc_step())
            .finish()
    }
}
impl W {
    ///Bits 0:12 - Modulation Period Adjustment for PLL3 Set and reset by software to adjust the modulation period of the clock spreading generator.
    #[inline(always)]
    pub fn mod_per(&mut self) -> MOD_PER_W<PLL3SSCGRrs> {
        MOD_PER_W::new(self, 0)
    }
    ///Bit 13 - Dithering TPDF noise control for PLL3 Set and reset by software. This bit is used to enable or disable the injection of a dithering noise into the SSCG modulator. This dithering noise is generated using a triangular probability density function.
    #[inline(always)]
    pub fn tpdfn_dis3(&mut self) -> TPDFN_DIS3_W<PLL3SSCGRrs> {
        TPDFN_DIS3_W::new(self, 13)
    }
    ///Bit 14 - Dithering RPDF noise control for PLL3 Set and reset by software. This bit is used to enable or disable the injection of a dithering noise into the SSCG modulator. This dithering noise is generated using a rectangular probability density function.
    #[inline(always)]
    pub fn rpdfn_dis3(&mut self) -> RPDFN_DIS3_W<PLL3SSCGRrs> {
        RPDFN_DIS3_W::new(self, 14)
    }
    ///Bit 15 - Spread spectrum clock generator mode for PLL3 Set and reset by software to select the clock spreading mode.
    #[inline(always)]
    pub fn dwnspread3(&mut self) -> DWNSPREAD3_W<PLL3SSCGRrs> {
        DWNSPREAD3_W::new(self, 15)
    }
    ///Bits 16:30 - Modulation Depth Adjustment for PLL3 Set and reset by software to adjust the modulation depth of the clock spreading generator.
    #[inline(always)]
    pub fn inc_step(&mut self) -> INC_STEP_W<PLL3SSCGRrs> {
        INC_STEP_W::new(self, 16)
    }
}
/**RCC PLL3 Spread Spectrum Clock Generator register

You can [`read`](crate::Reg::read) this register and get [`pll3sscgr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pll3sscgr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct PLL3SSCGRrs;
impl crate::RegisterSpec for PLL3SSCGRrs {
    type Ux = u32;
}
///`read()` method returns [`pll3sscgr::R`](R) reader structure
impl crate::Readable for PLL3SSCGRrs {}
///`write(|w| ..)` method takes [`pll3sscgr::W`](W) writer structure
impl crate::Writable for PLL3SSCGRrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets PLL3SSCGR to value 0
impl crate::Resettable for PLL3SSCGRrs {}