pub struct Scb<'a> { /* private fields */ }
Implementations§
Source§impl Scb<'_>
impl Scb<'_>
pub const fn new() -> Self
pub fn enable_tx_interrupts(&self)
pub fn disable_tx_interrupts(&self)
pub fn enable_rx_interrupts(&self)
pub fn disable_rx_interrupts(&self)
pub fn set_standard_uart_mode(&self)
pub fn enable_scb(&self)
pub fn disable_scb(&self)
pub fn transmit_uart_sync(&self, buffer: &[u8])
pub fn transmit_uart_async( &self, buffer: &'static mut [u8], buffer_len: usize, ) -> Result<(), (ErrorCode, &'static mut [u8])>
pub fn receive_uart_async( &self, buffer: &'static mut [u8], buffer_len: usize, ) -> Result<(), (ErrorCode, &'static mut [u8])>
Trait Implementations§
Source§impl<'a> Receive<'a> for Scb<'a>
impl<'a> Receive<'a> for Scb<'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 Scb<'a>
impl<'a> Transmit<'a> for Scb<'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_buffer: &'static mut [u8],
tx_len: usize,
) -> Result<(), (ErrorCode, &'static mut [u8])>
fn transmit_buffer( &self, tx_buffer: &'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 Scb<'a>
impl<'a> !RefUnwindSafe for Scb<'a>
impl<'a> !Send for Scb<'a>
impl<'a> !Sync for Scb<'a>
impl<'a> Unpin for Scb<'a>
impl<'a> !UnwindSafe for Scb<'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