Struct esp32c2_hal::pac::UART0
pub struct UART0 { /* private fields */ }
Expand description
UART (Universal Asynchronous Receiver-Transmitter) Controller
Implementations
impl UART0
impl UART0
pub const PTR: *const RegisterBlock = {0x60000000 as *const esp_hal_common::esp32c2::uart0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x60000000 as *const esp_hal_common::esp32c2::uart0::RegisterBlock}
Pointer to the register block
pub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Trait Implementations
sourceimpl Instance for UART0
impl Instance for UART0
fn register_block(&self) -> &RegisterBlock
fn tx_signal(&self) -> OutputSignal
fn rx_signal(&self) -> InputSignal
fn cts_signal(&self) -> InputSignal
fn rts_signal(&self) -> OutputSignal
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
impl Send for UART0
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more