Struct esp32c2_hal::peripherals::UART0
source · pub struct UART0 { /* private fields */ }
Implementations§
source§impl UART0
impl UART0
sourcepub unsafe fn steal() -> UART0
pub unsafe fn steal() -> UART0
Unsafely create an instance of this peripheral out of thin air.
Safety
You must ensure that you’re only using one instance of this type at a time.
Trait Implementations§
source§impl Peripheral for UART0
impl Peripheral for UART0
source§impl Instance for UART0
impl Instance for UART0
fn register_block() -> &'static RegisterBlock
fn uart_number() -> usize
fn tx_signal() -> OutputSignal
fn rx_signal() -> InputSignal
fn cts_signal() -> InputSignal
fn rts_signal() -> OutputSignal
fn enable_peripheral()
fn disable_tx_interrupts()
fn disable_rx_interrupts()
fn get_tx_fifo_count() -> u16
fn get_rx_fifo_count() -> u16
fn is_tx_idle() -> bool
fn is_rx_idle() -> bool
Auto Trait Implementations§
impl RefUnwindSafe for UART0
impl Send for UART0
impl Sync for UART0
impl Unpin for UART0
impl UnwindSafe for UART0
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