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: u8Divisor Latch Low Byte
baud_divisor_high: u8Divisor Latch High Byte
interrupt_enable: u8Interrupt Enable Register
interrupt_identification: u8Interrupt Identification Register
line_control: u8Line Control Register
line_status: u8Line Status Register
modem_control: u8Modem Control Register
modem_status: u8Modem Status Register
scratch: u8Scratch 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 duplicate 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
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