pub struct SerialState {
    pub baud_divisor_low: u8,
    pub baud_divisor_high: u8,
    pub interrupt_enable: u8,
    pub interrupt_identification: u8,
    pub line_control: u8,
    pub line_status: u8,
    pub modem_control: u8,
    pub modem_status: u8,
    pub scratch: u8,
    pub in_buffer: Vec<u8>,
}
Expand description

The state of the Serial device.

Fields

baud_divisor_low: u8

Divisor Latch Low Byte

baud_divisor_high: u8

Divisor Latch High Byte

interrupt_enable: u8

Interrupt Enable Register

interrupt_identification: u8

Interrupt Identification Register

line_control: u8

Line Control Register

line_status: u8

Line Status Register

modem_control: u8

Modem Control Register

modem_status: u8

Modem Status Register

scratch: u8

Scratch Register

in_buffer: Vec<u8>

Transmitter Holding Buffer/Receiver Buffer

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.