Struct nrf51::uart::UART [] [src]

pub struct UART {
    regs: *const UartRegisters,
    client: Cell<Option<&'static Client>>,
    buffer: TakeCell<'static, [u8]>,
    len: Cell<usize>,
    index: Cell<usize>,
}

Fields

Methods

impl UART
[src]

[src]

[src]

This UART implementation uses pins 8-11:

  • pin 8: RTS
  • pin 9: TX
  • pin 10: CTS
  • pin 11: RX

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl UART for UART
[src]

[src]

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

[src]

Initialize UART Read more

[src]

Transmit data.

[src]

Receive data until buffer is full.