stm32g4 0.16.0

Device support crates for STM32G4 devices
Documentation
///Register `AHB3SMENR` reader
pub type R = crate::R<AHB3SMENRrs>;
///Register `AHB3SMENR` writer
pub type W = crate::W<AHB3SMENRrs>;
///Field `FMCSMEN` reader - Flexible static memory controller clocks enable during Sleep and Stop modes Set and cleared by software.
pub type FMCSMEN_R = crate::BitReader;
///Field `FMCSMEN` writer - Flexible static memory controller clocks enable during Sleep and Stop modes Set and cleared by software.
pub type FMCSMEN_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `QSPISMEN` reader - QUADSPI memory interface clock enable during Sleep and Stop modes Set and cleared by software.
pub type QSPISMEN_R = crate::BitReader;
///Field `QSPISMEN` writer - QUADSPI memory interface clock enable during Sleep and Stop modes Set and cleared by software.
pub type QSPISMEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Bit 0 - Flexible static memory controller clocks enable during Sleep and Stop modes Set and cleared by software.
    #[inline(always)]
    pub fn fmcsmen(&self) -> FMCSMEN_R {
        FMCSMEN_R::new((self.bits & 1) != 0)
    }
    ///Bit 8 - QUADSPI memory interface clock enable during Sleep and Stop modes Set and cleared by software.
    #[inline(always)]
    pub fn qspismen(&self) -> QSPISMEN_R {
        QSPISMEN_R::new(((self.bits >> 8) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("AHB3SMENR")
            .field("fmcsmen", &self.fmcsmen())
            .field("qspismen", &self.qspismen())
            .finish()
    }
}
impl W {
    ///Bit 0 - Flexible static memory controller clocks enable during Sleep and Stop modes Set and cleared by software.
    #[inline(always)]
    pub fn fmcsmen(&mut self) -> FMCSMEN_W<AHB3SMENRrs> {
        FMCSMEN_W::new(self, 0)
    }
    ///Bit 8 - QUADSPI memory interface clock enable during Sleep and Stop modes Set and cleared by software.
    #[inline(always)]
    pub fn qspismen(&mut self) -> QSPISMEN_W<AHB3SMENRrs> {
        QSPISMEN_W::new(self, 8)
    }
}
/**AHB3 peripheral clocks enable in Sleep and Stop modes register

You can [`read`](crate::Reg::read) this register and get [`ahb3smenr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ahb3smenr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32G431.html#RCC:AHB3SMENR)*/
pub struct AHB3SMENRrs;
impl crate::RegisterSpec for AHB3SMENRrs {
    type Ux = u32;
}
///`read()` method returns [`ahb3smenr::R`](R) reader structure
impl crate::Readable for AHB3SMENRrs {}
///`write(|w| ..)` method takes [`ahb3smenr::W`](W) writer structure
impl crate::Writable for AHB3SMENRrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets AHB3SMENR to value 0x0101
impl crate::Resettable for AHB3SMENRrs {
    const RESET_VALUE: u32 = 0x0101;
}