Struct stm32_metapac::rcc::regs::Apbrstr1
#[repr(transparent)]pub struct Apbrstr1(pub u32);
Expand description
RCC APB peripheral reset register 1
Tuple Fields§
§0: u32
Implementations§
§impl Apbrstr1
impl Apbrstr1
pub const fn tim2rst(&self) -> bool
pub const fn tim2rst(&self) -> bool
TIM2 timer reset Set and cleared by software. Note: Only applicable on STM32C071xx, reserved on other devices.
pub fn set_tim2rst(&mut self, val: bool)
pub fn set_tim2rst(&mut self, val: bool)
TIM2 timer reset Set and cleared by software. Note: Only applicable on STM32C071xx, reserved on other devices.
pub fn set_tim3rst(&mut self, val: bool)
pub fn set_tim3rst(&mut self, val: bool)
TIM3 timer reset Set and cleared by software.
pub fn set_fdcan1rst(&mut self, val: bool)
pub fn set_fdcan1rst(&mut self, val: bool)
FDCAN1 reset Set and cleared by software.
pub const fn usbrst(&self) -> bool
pub const fn usbrst(&self) -> bool
USB reset Set and cleared by software. Note: Only applicable on STM32C071xx, reserved on other devices.
pub fn set_usbrst(&mut self, val: bool)
pub fn set_usbrst(&mut self, val: bool)
USB reset Set and cleared by software. Note: Only applicable on STM32C071xx, reserved on other devices.
pub const fn spi2rst(&self) -> bool
pub const fn spi2rst(&self) -> bool
SPI2 reset Set and cleared by software. Note: Only applicable on STM32C071xx, reserved on other devices.
pub fn set_spi2rst(&mut self, val: bool)
pub fn set_spi2rst(&mut self, val: bool)
SPI2 reset Set and cleared by software. Note: Only applicable on STM32C071xx, reserved on other devices.
pub const fn crsrst(&self) -> bool
pub const fn crsrst(&self) -> bool
CRS reset Set and cleared by software. Note: Only applicable on STM32C071xx, reserved on other devices.
pub fn set_crsrst(&mut self, val: bool)
pub fn set_crsrst(&mut self, val: bool)
CRS reset Set and cleared by software. Note: Only applicable on STM32C071xx, reserved on other devices.
pub fn set_usart2rst(&mut self, val: bool)
pub fn set_usart2rst(&mut self, val: bool)
USART2 reset Set and cleared by software.
pub fn set_usart3rst(&mut self, val: bool)
pub fn set_usart3rst(&mut self, val: bool)
USART3 reset Set and cleared by software.
pub fn set_usart4rst(&mut self, val: bool)
pub fn set_usart4rst(&mut self, val: bool)
USART4 reset Set and cleared by software.
pub fn set_i2c1rst(&mut self, val: bool)
pub fn set_i2c1rst(&mut self, val: bool)
I2C1 reset Set and cleared by software.
pub const fn i2c2rst(&self) -> bool
pub const fn i2c2rst(&self) -> bool
I2C2 reset Set and cleared by software. Note: Only applicable on STM32C071xx, reserved on other devices.
pub fn set_i2c2rst(&mut self, val: bool)
pub fn set_i2c2rst(&mut self, val: bool)
I2C2 reset Set and cleared by software. Note: Only applicable on STM32C071xx, reserved on other devices.
pub fn set_dbgrst(&mut self, val: bool)
pub fn set_dbgrst(&mut self, val: bool)
Debug support reset Set and cleared by software.
pub fn set_pwrrst(&mut self, val: bool)
pub fn set_pwrrst(&mut self, val: bool)
Power interface reset Set and cleared by software.
Trait Implementations§
impl Copy for Apbrstr1
impl Eq for Apbrstr1
impl StructuralPartialEq for Apbrstr1
Auto Trait Implementations§
impl Freeze for Apbrstr1
impl RefUnwindSafe for Apbrstr1
impl Send for Apbrstr1
impl Sync for Apbrstr1
impl Unpin for Apbrstr1
impl UnwindSafe for Apbrstr1
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
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)
clone_to_uninit
)