pub struct Uart16550<'a> { /* private fields */ }
Implementations§
Source§impl Uart16550<'_>
impl Uart16550<'_>
pub fn handle_interrupt(&self)
Sourcepub fn transmit_sync(&self, bytes: &[u8])
pub fn transmit_sync(&self, bytes: &[u8])
Blocking transmit
This function will transmit the passed slice in a blocking fashing, returning when finished.
The current device configuration is used, and the device must be enabled. Otherwise, this function may block indefinitely.
Trait Implementations§
Source§impl<'a> Receive<'a> for Uart16550<'a>
impl<'a> Receive<'a> for Uart16550<'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§fn receive_buffer(
&self,
rx_buffer: &'static mut [u8],
rx_len: usize,
) -> Result<(), (ErrorCode, &'static mut [u8])>
fn receive_buffer( &self, rx_buffer: &'static mut [u8], rx_len: usize, ) -> Result<(), (ErrorCode, &'static mut [u8])>
Source§impl<'a> Transmit<'a> for Uart16550<'a>
impl<'a> Transmit<'a> for Uart16550<'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 Uart16550<'a>
impl<'a> !RefUnwindSafe for Uart16550<'a>
impl<'a> !Send for Uart16550<'a>
impl<'a> !Sync for Uart16550<'a>
impl<'a> Unpin for Uart16550<'a>
impl<'a> !UnwindSafe for Uart16550<'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