Struct stm32_metapac::rcc::regs::Apb2enr
#[repr(transparent)]pub struct Apb2enr(pub u32);
Expand description
RCC APB2 Clock Register
Tuple Fields§
§0: u32
Implementations§
§impl Apb2enr
impl Apb2enr
pub fn set_tim1en(&mut self, val: bool)
pub fn set_tim1en(&mut self, val: bool)
TIM1 peripheral clock enable
pub fn set_tim8en(&mut self, val: bool)
pub fn set_tim8en(&mut self, val: bool)
TIM8 peripheral clock enable
pub fn set_usart1en(&mut self, val: bool)
pub fn set_usart1en(&mut self, val: bool)
USART1 Peripheral Clocks Enable
pub fn set_usart6en(&mut self, val: bool)
pub fn set_usart6en(&mut self, val: bool)
USART6 Peripheral Clocks Enable
pub fn set_uart9en(&mut self, val: bool)
pub fn set_uart9en(&mut self, val: bool)
UART9 Peripheral Clocks Enable
pub fn set_usart10en(&mut self, val: bool)
pub fn set_usart10en(&mut self, val: bool)
USART10 Peripheral Clocks Enable
pub fn set_spi1en(&mut self, val: bool)
pub fn set_spi1en(&mut self, val: bool)
SPI1 Peripheral Clocks Enable
pub fn set_spi4en(&mut self, val: bool)
pub fn set_spi4en(&mut self, val: bool)
SPI4 Peripheral Clocks Enable
pub fn set_tim15en(&mut self, val: bool)
pub fn set_tim15en(&mut self, val: bool)
TIM15 peripheral clock enable
pub fn set_tim16en(&mut self, val: bool)
pub fn set_tim16en(&mut self, val: bool)
TIM16 peripheral clock enable
pub fn set_tim17en(&mut self, val: bool)
pub fn set_tim17en(&mut self, val: bool)
TIM17 peripheral clock enable
pub fn set_spi5en(&mut self, val: bool)
pub fn set_spi5en(&mut self, val: bool)
SPI5 Peripheral Clocks Enable
pub fn set_sai1en(&mut self, val: bool)
pub fn set_sai1en(&mut self, val: bool)
SAI1 Peripheral Clocks Enable
pub fn set_sai2en(&mut self, val: bool)
pub fn set_sai2en(&mut self, val: bool)
SAI2 Peripheral Clocks Enable
pub fn set_sai3en(&mut self, val: bool)
pub fn set_sai3en(&mut self, val: bool)
SAI3 Peripheral Clocks Enable
pub fn set_dfsdm1en(&mut self, val: bool)
pub fn set_dfsdm1en(&mut self, val: bool)
DFSDM1 Peripheral Clocks Enable
pub fn set_hrtimen(&mut self, val: bool)
pub fn set_hrtimen(&mut self, val: bool)
HRTIM peripheral clock enable
Trait Implementations§
impl Copy for Apb2enr
impl Eq for Apb2enr
impl StructuralEq for Apb2enr
impl StructuralPartialEq for Apb2enr
Auto Trait Implementations§
impl RefUnwindSafe for Apb2enr
impl Send for Apb2enr
impl Sync for Apb2enr
impl Unpin for Apb2enr
impl UnwindSafe for Apb2enr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more