pub struct Uart<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Uart<'a>
impl<'a> Uart<'a>
pub fn new(base: StaticRef<UartRegisters>, clock_frequency: u32) -> Uart<'a>
pub fn handle_interrupt(&self)
pub fn transmit_sync(&self, bytes: &[u8])
Trait Implementations§
Source§impl DeferredCallClient for Uart<'_>
impl DeferredCallClient for Uart<'_>
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§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> ReceiveAdvanced<'a> for Uart<'a>
impl<'a> ReceiveAdvanced<'a> for Uart<'a>
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