pub struct UART<A: BaseAddress> { /* private fields */ }Expand description
Universal Asynchronous Receiver-Transmitter.
Implementations§
source§impl<const B: usize> UART<Static<B>>
impl<const B: usize> UART<Static<B>>
sourcepub const unsafe fn steal_static() -> UART<Static<B>>
pub const unsafe fn steal_static() -> UART<Static<B>>
Create a peripheral instance from statically known address.
This function is unsafe for it forces to seize ownership from possible wrapped peripheral group types. Users should normally retrieve ownership from wrapped types.
Methods from Deref<Target = Uart16550<u32>>§
sourcepub fn write_divisor(&self, divisor: u16)
pub fn write_divisor(&self, divisor: u16)
将分频系数写入锁存器。