Struct cp211x_uart::HidUart [] [src]

pub struct HidUart { /* fields omitted */ }

Wrapper around hid::Handle to provide UART control.

Methods

impl HidUart
[src]

[src]

Returns a new instance of HidUart from hid::Handle.

The instance enables UART automatically.

[src]

Returns receiving timeout.

[src]

Set receiving timeout to timeout value.

[src]

Returns transmitting timeout.

[src]

Set transmitting timeout to timeout value.

[src]

Enable UART.

[src]

Disable UART.

[src]

Returns UART state: true if UART is enabled, false otherwise.

[src]

Configures UART.

[src]

Returns current UART configuration.

[src]

Empties receiving and/or transmitting FIFO buffers.

Flushes receiving FIFO buffer if rx is true.

Flushes transmitting FIFO buffer if tx is true.

[src]

Transmit data.

[src]

Receive data and returns a number of read bytes.