Struct Apb1enr
#[repr(transparent)]pub struct Apb1enr(pub u32);Expand description
APB1ENR register.
Tuple Fields§
§0: u32Implementations§
§impl Apb1enr
impl Apb1enr
pub fn set_spi1en(&mut self, val: bool)
pub fn set_spi1en(&mut self, val: bool)
SPI1 enable.
pub const fn adcdigen(&self) -> bool
pub const fn adcdigen(&self) -> bool
AUXADC clock enable for Aux-ADC digital clock Set and enable by software.
pub fn set_adcdigen(&mut self, val: bool)
pub fn set_adcdigen(&mut self, val: bool)
AUXADC clock enable for Aux-ADC digital clock Set and enable by software.
pub const fn adcanaen(&self) -> bool
pub const fn adcanaen(&self) -> bool
ADC clock enable for Aux-ADC analog clock Set and enable by software.
pub fn set_adcanaen(&mut self, val: bool)
pub fn set_adcanaen(&mut self, val: bool)
ADC clock enable for Aux-ADC analog clock Set and enable by software.
pub fn set_lpuarten(&mut self, val: bool)
pub fn set_lpuarten(&mut self, val: bool)
LPUART clock enable Set and enable by software.
pub fn set_usart1en(&mut self, val: bool)
pub fn set_usart1en(&mut self, val: bool)
USART clock enable Set and enable by software.
pub fn set_spi2en(&mut self, val: bool)
pub fn set_spi2en(&mut self, val: bool)
SPI2 enable.
pub fn set_spi3en(&mut self, val: bool)
pub fn set_spi3en(&mut self, val: bool)
SPI3 clock enable Set and enable by software.
pub fn set_i2c1en(&mut self, val: bool)
pub fn set_i2c1en(&mut self, val: bool)
I2C1 clock enable Set and enable by software.
pub fn set_i2c2en(&mut self, val: bool)
pub fn set_i2c2en(&mut self, val: bool)
I2C2 enable.
Trait Implementations§
impl Copy for Apb1enr
impl Eq for Apb1enr
impl StructuralPartialEq for Apb1enr
Auto Trait Implementations§
impl Freeze for Apb1enr
impl RefUnwindSafe for Apb1enr
impl Send for Apb1enr
impl Sync for Apb1enr
impl Unpin for Apb1enr
impl UnwindSafe for Apb1enr
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