Struct sam4l::usart::USART [] [src]

pub struct USART {
    registers: *mut USARTRegisters,
    clock: Clock,
    usart_mode: Cell<UsartMode>,
    usart_tx_state: Cell<USARTStateTX>,
    usart_rx_state: Cell<USARTStateRX>,
    rx_dma: Cell<Option<&'static DMAChannel>>,
    rx_dma_peripheral: DMAPeripheral,
    rx_len: Cell<usize>,
    tx_dma: Cell<Option<&'static DMAChannel>>,
    tx_dma_peripheral: DMAPeripheral,
    tx_len: Cell<usize>,
    client: Cell<Option<UsartClient<'static>>>,
    spi_chip_select: Cell<Option<&'static Pin>>,
}

Fields

Methods

impl USART
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

In non-SPI mode, this drives RTS low. In SPI mode, this asserts (drives low) the chip select line.

[src]

In non-SPI mode, this drives RTS high. In SPI mode, this de-asserts (drives high) the chip select line.

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl DMAClient for USART
[src]

[src]

impl UART for USART
[src]

Implementation of kernel::hil::UART

[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.

impl UARTAdvanced for USART
[src]

[src]

Receive data until interbyte_timeout bit periods have passed since the last byte or buffer is full. Does not timeout until at least one byte has been received. Read more

[src]

Receive data until terminator data byte has been received or buffer is full Read more

impl SpiMaster for USART
[src]

SPI

[src]

[src]

[src]

[src]

Perform an asynchronous read/write operation, whose completion is signaled by invoking SpiMasterClient on the initialized client. write_buffer must be Some, read_buffer may be None. If read_buffer is Some, the length of the operation is the minimum of the size of the two buffers. Read more

[src]

[src]

[src]

[src]

Pass in a None to use the HW chip select pin on the USART (RTS).

[src]

Returns the actual rate set

[src]

[src]

[src]

[src]

[src]

[src]

[src]