Struct capsules::console::Console [] [src]

pub struct Console<'a, U: UART + 'a> {
    uart: &'a U,
    apps: Grant<App>,
    in_progress: Cell<Option<AppId>>,
    tx_buffer: TakeCell<'static, [u8]>,
    baud_rate: u32,
}

Fields

Methods

impl<'a, U: UART> Console<'a, U>
[src]

[src]

[src]

[src]
[]

Internal helper function for setting up a new send transaction

[src]
[]

Internal helper function for continuing a previously set up transaction Returns true if this send is still active, or false if it has completed

[src]
[]

Internal helper function for sending data for an existing transaction. Cannot fail. If can't send now, it will schedule for sending later.

Trait Implementations

impl<'a, U: UART> Driver for Console<'a, U>
[src]

[src]
[]

Setup shared buffers.

allow_num

  • 1: Writeable buffer for write buffer

[src]
[]

Setup callbacks.

subscribe_num

  • 1: Write buffer completed callback

[src]
[]

Initiate serial transfers

command_num

  • 0: Driver check.
  • 1: Prints a buffer passed through allow up to the length passed in arg1

impl<'a, U: UART> Client for Console<'a, U>
[src]

[src]
[]

UART transmit complete.

[src]
[]

UART receive complete.