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

Set the client for this UART peripheral. The client will be called when events finish.

Initialize UART

Panics if UARTParams are invalid for the current chip.

Transmit data.

Receive data until buffer is full.

Implementors