Struct 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 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 clock enable.
pub fn set_tim15en(&mut self, val: bool)
pub fn set_tim15en(&mut self, val: bool)
TIM15 clock enable.
pub fn set_tim16en(&mut self, val: bool)
pub fn set_tim16en(&mut self, val: bool)
TIM16 clock enable.
pub fn set_tim17en(&mut self, val: bool)
pub fn set_tim17en(&mut self, val: bool)
TIM17 clock enable.
pub fn set_comp1en(&mut self, val: bool)
pub fn set_comp1en(&mut self, val: bool)
COMP1 clock enable.
pub fn set_comp2en(&mut self, val: bool)
pub fn set_comp2en(&mut self, val: bool)
COMP2 clock enable.
pub fn set_comp3en(&mut self, val: bool)
pub fn set_comp3en(&mut self, val: bool)
COMP3 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