Type Alias SimUartType

Source
pub type SimUartType = SemihostUart<'static>;

Aliased Type§

struct SimUartType { /* private fields */ }

Implementations

Source§

impl<'a> SemihostUart<'a>

Source

pub fn new() -> SemihostUart<'a>

Trait Implementations

Source§

impl Configure for SemihostUart<'_>

Source§

fn configure(&self, _params: Parameters) -> Result<(), ErrorCode>

Set the configuration parameters for the UART bus. Read more
Source§

impl Default for SemihostUart<'_>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl DeferredCallClient for SemihostUart<'_>

Source§

fn register(&'static self)

Source§

fn handle_deferred_call(&self)

Software interrupt function that is called when the deferred call is triggered.
Source§

impl<'a> Receive<'a> for SemihostUart<'a>

Source§

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])>

Receive rx_len bytes into rx_buffer. Read more
Source§

fn receive_word(&self) -> Result<(), ErrorCode>

Receive a single word of data. Read more
Source§

fn receive_abort(&self) -> Result<(), ErrorCode>

Abort any ongoing receive transfers and return what has been received. Read more
Source§

impl<'a> Transmit<'a> for SemihostUart<'a>

Source§

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])>

Transmit a buffer of data. Read more
Source§

fn transmit_word(&self, _word: u32) -> Result<(), ErrorCode>

Transmit a single word of data asynchronously. Read more
Source§

fn transmit_abort(&self) -> Result<(), ErrorCode>

Abort an outstanding call to transmit_word or transmit_buffer. Read more