pub struct Uart<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Uart<'a>
impl<'a> Uart<'a>
pub fn new(base: StaticRef<UartRegisters>) -> Uart<'a>
pub fn clear_tx_interrupt(&self)
pub fn disable_tx_interrupt(&self)
pub fn clear_rx_interrupt(&self)
pub fn disable_rx_interrupt(&self)
pub fn handle_interrupt(&self)
pub fn transmit_sync(&self, bytes: &[u8])
Trait Implementations§
Source§impl<'a> Receive<'a> for Uart<'a>
impl<'a> Receive<'a> for Uart<'a>
Source§fn set_receive_client(&self, client: &'a dyn ReceiveClient)
fn set_receive_client(&self, client: &'a dyn ReceiveClient)
Set the receive client, which will be called when reads complete.
Source§impl<'a> Transmit<'a> for Uart<'a>
impl<'a> Transmit<'a> for Uart<'a>
Source§fn set_transmit_client(&self, client: &'a dyn TransmitClient)
fn set_transmit_client(&self, client: &'a dyn TransmitClient)
Set the transmit client, which will be called when transmissions
complete.
Source§fn transmit_buffer(
&self,
tx_data: &'static mut [u8],
tx_len: usize,
) -> Result<(), (ErrorCode, &'static mut [u8])>
fn transmit_buffer( &self, tx_data: &'static mut [u8], tx_len: usize, ) -> Result<(), (ErrorCode, &'static mut [u8])>
Transmit a buffer of data. Read more
Auto Trait Implementations§
impl<'a> !Freeze for Uart<'a>
impl<'a> !RefUnwindSafe for Uart<'a>
impl<'a> !Send for Uart<'a>
impl<'a> !Sync for Uart<'a>
impl<'a> Unpin for Uart<'a>
impl<'a> !UnwindSafe for Uart<'a>
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