Trait kernel::hil::uart::UART
[−]
[src]
pub trait UART { fn set_client(&self, client: &'static Client); fn init(&self, params: UARTParams); fn transmit(&self, tx_data: &'static mut [u8], tx_len: usize); fn receive(&self, rx_buffer: &'static mut [u8], rx_len: usize); }
Required Methods
fn set_client(&self, client: &'static Client)
Set the client for this UART peripheral. The client will be called when events finish.
fn init(&self, params: UARTParams)
Initialize UART
Panics if UARTParams are invalid for the current chip.
fn transmit(&self, tx_data: &'static mut [u8], tx_len: usize)
Transmit data.
fn receive(&self, rx_buffer: &'static mut [u8], rx_len: usize)
Receive data until buffer is full.