#[repr(transparent)]struct LineCtl(u8);
Expand description
Line Control Register
Tuple Fields§
§0: u8
Implementations§
source§impl LineCtl
impl LineCtl
const WORD_LENGTH_BITS: usize = 2usize
const WORD_LENGTH_OFFSET: usize = 0usize
sourceconst fn with_word_length(self, value: u8) -> Self
const fn with_word_length(self, value: u8) -> Self
bits per character | 5 | 6 | 7 | 8 |
---|---|---|---|---|
word length value | 0 | 1 | 2 | 3 |
Bits: 0..2
sourceconst fn word_length(&self) -> u8
const fn word_length(&self) -> u8
bits per character | 5 | 6 | 7 | 8 |
---|---|---|---|---|
word length value | 0 | 1 | 2 | 3 |
Bits: 0..2
sourcefn set_word_length(&mut self, value: u8)
fn set_word_length(&mut self, value: u8)
bits per character | 5 | 6 | 7 | 8 |
---|---|---|---|---|
word length value | 0 | 1 | 2 | 3 |
Bits: 0..2
const STOP_BITS_BITS: usize = 1usize
const STOP_BITS_OFFSET: usize = 2usize
sourceconst fn with_stop_bits(self, value: bool) -> Self
const fn with_stop_bits(self, value: bool) -> Self
0 = one stop bit, 1 = 1.5/2 stop bits
Bits: 2..3
sourcefn set_stop_bits(&mut self, value: bool)
fn set_stop_bits(&mut self, value: bool)
0 = one stop bit, 1 = 1.5/2 stop bits
Bits: 2..3
const PARITY_BITS: usize = 1usize
const PARITY_OFFSET: usize = 3usize
sourceconst fn with_parity(self, value: bool) -> Self
const fn with_parity(self, value: bool) -> Self
Bits: 3..4
sourcefn set_parity(&mut self, value: bool)
fn set_parity(&mut self, value: bool)
Bits: 3..4
const EVEN_PARITY_BITS: usize = 1usize
const EVEN_PARITY_OFFSET: usize = 4usize
sourceconst fn with_even_parity(self, value: bool) -> Self
const fn with_even_parity(self, value: bool) -> Self
Bits: 4..5
sourceconst fn even_parity(&self) -> bool
const fn even_parity(&self) -> bool
Bits: 4..5
sourcefn set_even_parity(&mut self, value: bool)
fn set_even_parity(&mut self, value: bool)
Bits: 4..5
const STICK_PARITY_BITS: usize = 1usize
const STICK_PARITY_OFFSET: usize = 5usize
sourceconst fn with_stick_parity(self, value: bool) -> Self
const fn with_stick_parity(self, value: bool) -> Self
Bits: 5..6
sourceconst fn stick_parity(&self) -> bool
const fn stick_parity(&self) -> bool
Bits: 5..6
sourcefn set_stick_parity(&mut self, value: bool)
fn set_stick_parity(&mut self, value: bool)
Bits: 5..6
const SET_BREAK_BITS: usize = 1usize
const SET_BREAK_OFFSET: usize = 6usize
sourceconst fn with_set_break(self, value: bool) -> Self
const fn with_set_break(self, value: bool) -> Self
Bits: 6..7
sourcefn set_set_break(&mut self, value: bool)
fn set_set_break(&mut self, value: bool)
Bits: 6..7
const DIVISOR_LATCH_ACCESS_BITS: usize = 1usize
const DIVISOR_LATCH_ACCESS_OFFSET: usize = 7usize
sourceconst fn with_divisor_latch_access(self, value: bool) -> Self
const fn with_divisor_latch_access(self, value: bool) -> Self
Bits: 7..8
sourceconst fn divisor_latch_access(&self) -> bool
const fn divisor_latch_access(&self) -> bool
Bits: 7..8
sourcefn set_divisor_latch_access(&mut self, value: bool)
fn set_divisor_latch_access(&mut self, value: bool)
Bits: 7..8