Trait esp32c2_hal::uart::Instance
source · pub trait Instance {
Show 13 methods
// Required methods
fn register_block(&self) -> &RegisterBlock;
fn uart_number(&self) -> usize;
fn tx_signal(&self) -> OutputSignal;
fn rx_signal(&self) -> InputSignal;
fn cts_signal(&self) -> InputSignal;
fn rts_signal(&self) -> OutputSignal;
fn enable_peripheral(
&self,
peripheral_clock_control: &mut PeripheralClockControl
);
// Provided methods
fn disable_tx_interrupts(&mut self) { ... }
fn disable_rx_interrupts(&mut self) { ... }
fn get_tx_fifo_count(&mut self) -> u16 { ... }
fn get_rx_fifo_count(&mut self) -> u16 { ... }
fn is_tx_idle(&self) -> bool { ... }
fn is_rx_idle(&self) -> bool { ... }
}
Expand description
UART peripheral instance