Struct esp32c2_hal::soc::peripherals::UART1
source · pub struct UART1 { /* private fields */ }
Implementations§
source§impl UART1
impl UART1
sourcepub unsafe fn steal() -> UART1
pub unsafe fn steal() -> UART1
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 Instance for UART1
impl Instance for UART1
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 )
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
source§impl Peripheral for UART1
impl Peripheral for UART1
Auto Trait Implementations§
impl RefUnwindSafe for UART1
impl Send for UART1
impl Sync for UART1
impl Unpin for UART1
impl UnwindSafe for UART1
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