Struct nrf52::uart::UARTE
[−]
[src]
pub struct UARTE { regs: *const UARTE, client: Cell<Option<&'static Client>>, buffer: TakeCell<'static, [u8]>, remaining_bytes: Cell<usize>, offset: Cell<usize>, }
Fields
regs: *const UARTE
client: Cell<Option<&'static Client>>
buffer: TakeCell<'static, [u8]>
remaining_bytes: Cell<usize>
offset: Cell<usize>
Methods
impl UARTE
[src]
pub const fn new() -> UARTE
[src]
pub fn configure(&self, tx: Pinmux, rx: Pinmux, cts: Pinmux, rts: Pinmux)
[src]
fn set_baud_rate(&self, baud_rate: u32)
[src]
fn enable(&self)
[src]
fn enable_rx_interrupts(&self)
[src]
fn enable_tx_interrupts(&self)
[src]
fn disable_rx_interrupts(&self)
[src]
fn disable_tx_interrupts(&self)
[src]
pub fn handle_interrupt(&mut self)
[src]
pub unsafe fn send_byte(&self, byte: u8)
[src]
pub fn tx_ready(&self) -> bool
[src]
fn set_dma_pointer_to_buffer(&self)
[src]
fn copy_data_to_uart_buffer(&self, tx_len: usize)
[src]
Trait Implementations
impl UART for UARTE
[src]
fn set_client(&self, client: &'static Client)
[src]
Set the client for this UART peripheral. The client will be called when events finish. Read more
fn init(&self, params: UARTParams)
[src]
Initialize UART Read more
fn transmit(&self, tx_data: &'static mut [u8], tx_len: usize)
[src]
Transmit data.
fn receive(&self, rx_buffer: &'static mut [u8], rx_len: usize)
[src]
Receive data until buffer is full.