pub struct USART6 { /* private fields */ }
Expand description
Universal synchronous asynchronous receiver transmitter
See peripheral structure
Implementations§
Source§impl USART6
impl USART6
Sourcepub const PTR: *const RegisterBlock = {0x40011400 as *const stm32f4_staging::stm32f429::usart1::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40011400 as *const stm32f4_staging::stm32f429::usart1::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> USART6
pub unsafe fn steal() -> USART6
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Trait Implementations§
Source§impl Enable for USART6
impl Enable for USART6
Source§fn is_enabled() -> bool
fn is_enabled() -> bool
Check if peripheral enabled
Source§fn is_disabled() -> bool
fn is_disabled() -> bool
Check if peripheral disabled
Source§unsafe fn enable_unchecked()
unsafe fn enable_unchecked()
Safety Read more
Source§unsafe fn disable_unchecked()
unsafe fn disable_unchecked()
Safety Read more
Source§impl LPEnable for USART6
impl LPEnable for USART6
Source§fn enable_in_low_power(rcc: &RccRB)
fn enable_in_low_power(rcc: &RccRB)
Enables peripheral in low power mode
Source§fn disable_in_low_power(rcc: &RccRB)
fn disable_in_low_power(rcc: &RccRB)
Disables peripheral in low power mode
Source§fn is_enabled_in_low_power() -> bool
fn is_enabled_in_low_power() -> bool
Check if peripheral enabled in low power mode
Source§fn is_disabled_in_low_power() -> bool
fn is_disabled_in_low_power() -> bool
Check if peripheral disabled in low power mode
Source§unsafe fn enable_in_low_power_unchecked()
unsafe fn enable_in_low_power_unchecked()
Safety Read more
Source§unsafe fn disable_in_low_power_unchecked()
unsafe fn disable_in_low_power_unchecked()
Safety Read more
Source§impl PeriAddress for USART6
impl PeriAddress for USART6
Source§impl SerialAsync for USART6
impl SerialAsync for USART6
Source§impl SerialFlowControl for USART6
impl SerialFlowControl for USART6
impl DMASet<StreamX<DMA2, 1>, 5, PeripheralToMemory> for USART6
impl DMASet<StreamX<DMA2, 2>, 5, PeripheralToMemory> for USART6
impl DMASet<StreamX<DMA2, 6>, 5, MemoryToPeripheral> for USART6
impl DMASet<StreamX<DMA2, 7>, 5, MemoryToPeripheral> for USART6
impl Instance for USART6
impl Send for USART6
Auto Trait Implementations§
impl Freeze for USART6
impl RefUnwindSafe for USART6
impl !Sync for USART6
impl Unpin for USART6
impl UnwindSafe for USART6
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