Struct stm32_metapac::rcc::regs::Apbenr2
#[repr(transparent)]pub struct Apbenr2(pub u32);
Expand description
APB peripheral clock enable register 2
Tuple Fields§
§0: u32
Implementations§
§impl Apbenr2
impl Apbenr2
pub fn set_syscfgen(&mut self, val: bool)
pub fn set_syscfgen(&mut self, val: bool)
SYSCFG, COMP and VREFBUF clock enable
pub fn set_tim1en(&mut self, val: bool)
pub fn set_tim1en(&mut self, val: bool)
TIM1 timer clock enable
pub fn set_spi1en(&mut self, val: bool)
pub fn set_spi1en(&mut self, val: bool)
SPI1 clock enable
pub fn set_usart1en(&mut self, val: bool)
pub fn set_usart1en(&mut self, val: bool)
USART1 clock enable
pub fn set_tim14en(&mut self, val: bool)
pub fn set_tim14en(&mut self, val: bool)
TIM14 timer clock enable
pub fn set_tim15en(&mut self, val: bool)
pub fn set_tim15en(&mut self, val: bool)
TIM15 timer clock enable
pub fn set_tim16en(&mut self, val: bool)
pub fn set_tim16en(&mut self, val: bool)
TIM16 timer clock enable
pub fn set_tim17en(&mut self, val: bool)
pub fn set_tim17en(&mut self, val: bool)
TIM16 timer clock enable
Trait Implementations§
impl Copy for Apbenr2
impl Eq for Apbenr2
impl StructuralPartialEq for Apbenr2
Auto Trait Implementations§
impl Freeze for Apbenr2
impl RefUnwindSafe for Apbenr2
impl Send for Apbenr2
impl Sync for Apbenr2
impl Unpin for Apbenr2
impl UnwindSafe for Apbenr2
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)