Struct uart_16550::SerialPort[][src]

pub struct SerialPort { /* fields omitted */ }
This is supported on x86-64 only.
Expand description

A port-mapped UART.

Implementations

Creates a new serial port interface on the given I/O port.

This function is unsafe because the caller must ensure that the given base address really points to a serial port device.

Initializes the serial port.

The default configuration of 38400/8-N-1 is used.

Sends a byte on the serial port.

Sends a raw byte on the serial port, intended for binary data.

Receives a byte on the serial port.

Trait Implementations

Writes a string slice into this writer, returning whether the write succeeded. Read more

Writes a char into this writer, returning whether the write succeeded. Read more

Glue for usage of the write! macro with implementors of this trait. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.