Struct Apb2slpenr
#[repr(transparent)]pub struct Apb2slpenr(pub u32);Expand description
RCC APB2 peripheral clock enable in Sleep mode register.
Tuple Fields§
§0: u32Implementations§
§impl Apb2slpenr
impl Apb2slpenr
pub fn set_tim1slpen(&mut self, val: bool)
pub fn set_tim1slpen(&mut self, val: bool)
TIM1 clock enable during Sleep mode.
pub fn set_spi1slpen(&mut self, val: bool)
pub fn set_spi1slpen(&mut self, val: bool)
SPI1 clock enable during Sleep mode.
pub const fn usart1slpen(&self) -> bool
pub const fn usart1slpen(&self) -> bool
USART1clock enable during Sleep mode.
pub fn set_usart1slpen(&mut self, val: bool)
pub fn set_usart1slpen(&mut self, val: bool)
USART1clock enable during Sleep mode.
pub const fn tim15slpen(&self) -> bool
pub const fn tim15slpen(&self) -> bool
TIMi clock enable during Sleep mode.
pub fn set_tim15slpen(&mut self, val: bool)
pub fn set_tim15slpen(&mut self, val: bool)
TIMi clock enable during Sleep mode.
pub const fn tim16slpen(&self) -> bool
pub const fn tim16slpen(&self) -> bool
TIMi clock enable during Sleep mode.
pub fn set_tim16slpen(&mut self, val: bool)
pub fn set_tim16slpen(&mut self, val: bool)
TIMi clock enable during Sleep mode.
pub const fn tim17slpen(&self) -> bool
pub const fn tim17slpen(&self) -> bool
TIMi clock enable during Sleep mode.
pub fn set_tim17slpen(&mut self, val: bool)
pub fn set_tim17slpen(&mut self, val: bool)
TIMi clock enable during Sleep mode.
pub fn set_sai1slpen(&mut self, val: bool)
pub fn set_sai1slpen(&mut self, val: bool)
SAI1 clock enable during Sleep mode.
pub fn set_usbslpen(&mut self, val: bool)
pub fn set_usbslpen(&mut self, val: bool)
USB clock enable during Sleep mode.
pub fn set_i3c2slpen(&mut self, val: bool)
pub fn set_i3c2slpen(&mut self, val: bool)
I3C2 clock enable during Sleep mode.
Trait Implementations§
§impl Clone for Apb2slpenr
impl Clone for Apb2slpenr
§fn clone(&self) -> Apb2slpenr
fn clone(&self) -> Apb2slpenr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for Apb2slpenr
impl Debug for Apb2slpenr
§impl Default for Apb2slpenr
impl Default for Apb2slpenr
§fn default() -> Apb2slpenr
fn default() -> Apb2slpenr
Returns the “default value” for a type. Read more
§impl PartialEq for Apb2slpenr
impl PartialEq for Apb2slpenr
impl Copy for Apb2slpenr
impl Eq for Apb2slpenr
impl StructuralPartialEq for Apb2slpenr
Auto Trait Implementations§
impl Freeze for Apb2slpenr
impl RefUnwindSafe for Apb2slpenr
impl Send for Apb2slpenr
impl Sync for Apb2slpenr
impl Unpin for Apb2slpenr
impl UnwindSafe for Apb2slpenr
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