#[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 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
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
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
false = one stop bit, true = 1.5/2 stop bits
Bits: 2..3
sourcefn set_stop_bits(&mut self, value: bool)
fn set_stop_bits(&mut self, value: bool)
false = one stop bit, true = 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
If enabled, add a parity bit
Bits: 3..4
sourcefn set_parity(&mut self, value: bool)
fn set_parity(&mut self, value: bool)
If enabled, add a parity bit
Bits: 3..4
const EVEN_PARITY_BITS: usize = 1usize
const EVEN_PARITY_OFFSET: usize = 4usize
sourceconst fn even_parity(&self) -> bool
const fn even_parity(&self) -> bool
Bits: 4..5
sourceconst fn with_even_parity(self, value: bool) -> Self
const fn with_even_parity(self, value: bool) -> Self
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 stick_parity(&self) -> bool
const fn stick_parity(&self) -> bool
Bits: 5..6
sourceconst fn with_stick_parity(self, value: bool) -> Self
const fn with_stick_parity(self, value: bool) -> Self
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 divisor_latch_access(&self) -> bool
const fn divisor_latch_access(&self) -> bool
If enabled, the Serial::data and Serial::int_en registers set the divisor (baud rate) instead of their normal function
Bits: 7..8
sourceconst fn with_divisor_latch_access(self, value: bool) -> Self
const fn with_divisor_latch_access(self, value: bool) -> Self
If enabled, the Serial::data and Serial::int_en registers set the divisor (baud rate) instead of their normal function
Bits: 7..8
sourcefn set_divisor_latch_access(&mut self, value: bool)
fn set_divisor_latch_access(&mut self, value: bool)
If enabled, the Serial::data and Serial::int_en registers set the divisor (baud rate) instead of their normal function
Bits: 7..8
Trait Implementations§
impl Copy for LineCtl
Auto Trait Implementations§
impl Freeze for LineCtl
impl RefUnwindSafe for LineCtl
impl Send for LineCtl
impl Sync for LineCtl
impl Unpin for LineCtl
impl UnwindSafe for LineCtl
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.