Trait esp32c2_hal::uart::Instance
source · pub trait Instance {
Show 13 methods
// Required methods
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();
// Provided methods
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 { ... }
}
Expand description
UART peripheral instance
Required Methods§
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()
Provided Methods§
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
Object Safety§
This trait is not object safe.