Struct vm_superio::serial::SerialState
source · 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§
source§impl Clone for SerialState
impl Clone for SerialState
source§fn clone(&self) -> SerialState
fn clone(&self) -> SerialState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SerialState
impl Debug for SerialState
source§impl Default for SerialState
impl Default for SerialState
source§impl PartialEq for SerialState
impl PartialEq for SerialState
source§fn eq(&self, other: &SerialState) -> bool
fn eq(&self, other: &SerialState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SerialState
impl StructuralPartialEq for SerialState
Auto Trait Implementations§
impl Freeze for SerialState
impl RefUnwindSafe for SerialState
impl Send for SerialState
impl Sync for SerialState
impl Unpin for SerialState
impl UnwindSafe for SerialState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more