Struct stm32_metapac::rcc::regs::Ahbenr
#[repr(transparent)]pub struct Ahbenr(pub u32);
Expand description
AHB peripheral clock enable register.
Tuple Fields§
§0: u32
Implementations§
§impl Ahbenr
impl Ahbenr
pub const fn dma1en(&self) -> bool
pub const fn dma1en(&self) -> bool
DMA1 and DMAMUX clock enable Set and cleared by software. DMAMUX is enabled as long as at least one DMA peripheral is enabled.
pub fn set_dma1en(&mut self, val: bool)
pub fn set_dma1en(&mut self, val: bool)
DMA1 and DMAMUX clock enable Set and cleared by software. DMAMUX is enabled as long as at least one DMA peripheral is enabled.
pub const fn dma2en(&self) -> bool
pub const fn dma2en(&self) -> bool
DMA2 and DMAMUX clock enable Set and cleared by software. DMAMUX is enabled as long as at least one DMA peripheral is enabled.
pub fn set_dma2en(&mut self, val: bool)
pub fn set_dma2en(&mut self, val: bool)
DMA2 and DMAMUX clock enable Set and cleared by software. DMAMUX is enabled as long as at least one DMA peripheral is enabled.
pub const fn flashen(&self) -> bool
pub const fn flashen(&self) -> bool
Flash memory interface clock enable Set and cleared by software. This bit can only be cleared when the flash memory is in power down mode.
pub fn set_flashen(&mut self, val: bool)
pub fn set_flashen(&mut self, val: bool)
Flash memory interface clock enable Set and cleared by software. This bit can only be cleared when the flash memory is in power down mode.