pub struct LineControl { /* private fields */ }Expand description
Line control register.
Implementations§
Source§impl LineControl
impl LineControl
Sourcepub const ZERO: Self
pub const ZERO: Self
Creates a new instance with a raw value of 0. Equivalent to [Self::new_with_raw_value(0)].
Sourcepub const fn new() -> Self
👎Deprecated: Use LineControl::Default (or LineControl::DEFAULT in const context) instead
pub const fn new() -> Self
Use LineControl::Default (or LineControl::DEFAULT in const context) instead
Creates a new instance of this struct using the default value
Sourcepub const fn new_with_raw_value(value: u32) -> LineControl
pub const fn new_with_raw_value(value: u32) -> LineControl
Creates a new instance of this bitfield with the given raw value.
No checks are performed on the value, so it is possible to set bits that don’t have any accessors specified.
Sourcepub const fn builder() -> PartialLineControl<false, false, false, false, false, false, false>
pub const fn builder() -> PartialLineControl<false, false, false, false, false, false, false>
Creates a builder for this bitfield which ensures that all writable fields are initialized.
Sourcepub const fn div_access_latch(&self) -> bool
pub const fn div_access_latch(&self) -> bool
Divisor Latch Access Bit.
Sourcepub const fn with_div_access_latch(&self, field_value: bool) -> Self
pub const fn with_div_access_latch(&self, field_value: bool) -> Self
Divisor Latch Access Bit.
Sourcepub fn set_div_access_latch(&mut self, field_value: bool)
pub fn set_div_access_latch(&mut self, field_value: bool)
Divisor Latch Access Bit.
Sourcepub const fn with_set_break(&self, field_value: bool) -> Self
pub const fn with_set_break(&self, field_value: bool) -> Self
Set break bit.
Sourcepub fn set_set_break(&mut self, field_value: bool)
pub fn set_set_break(&mut self, field_value: bool)
Set break bit.
Sourcepub const fn stick_parity(&self) -> bool
pub const fn stick_parity(&self) -> bool
Parity stick bit.
Sourcepub const fn with_stick_parity(&self, field_value: bool) -> Self
pub const fn with_stick_parity(&self, field_value: bool) -> Self
Parity stick bit.
Sourcepub fn set_stick_parity(&mut self, field_value: bool)
pub fn set_stick_parity(&mut self, field_value: bool)
Parity stick bit.
Sourcepub const fn even_parity(&self) -> bool
pub const fn even_parity(&self) -> bool
Even parity.
Sourcepub const fn with_even_parity(&self, field_value: bool) -> Self
pub const fn with_even_parity(&self, field_value: bool) -> Self
Even parity.
Sourcepub fn set_even_parity(&mut self, field_value: bool)
pub fn set_even_parity(&mut self, field_value: bool)
Even parity.
Sourcepub const fn parity_enable(&self) -> bool
pub const fn parity_enable(&self) -> bool
Parity enable.
Sourcepub const fn with_parity_enable(&self, field_value: bool) -> Self
pub const fn with_parity_enable(&self, field_value: bool) -> Self
Parity enable.
Sourcepub fn set_parity_enable(&mut self, field_value: bool)
pub fn set_parity_enable(&mut self, field_value: bool)
Parity enable.
Sourcepub const fn stop_bits(&self) -> StopBits
pub const fn stop_bits(&self) -> StopBits
0: 1 stop bit, 1: 2 stop bits or 1.5 if 5 bits/char selected
Sourcepub const fn with_stop_bits(&self, field_value: StopBits) -> Self
pub const fn with_stop_bits(&self, field_value: StopBits) -> Self
0: 1 stop bit, 1: 2 stop bits or 1.5 if 5 bits/char selected
Sourcepub fn set_stop_bits(&mut self, field_value: StopBits)
pub fn set_stop_bits(&mut self, field_value: StopBits)
0: 1 stop bit, 1: 2 stop bits or 1.5 if 5 bits/char selected
Sourcepub const fn with_word_len(&self, field_value: WordLen) -> Self
pub const fn with_word_len(&self, field_value: WordLen) -> Self
Word length.
Sourcepub fn set_word_len(&mut self, field_value: WordLen)
pub fn set_word_len(&mut self, field_value: WordLen)
Word length.
Source§impl LineControl
impl LineControl
Sourcepub fn new_for_divisor_access() -> Self
pub fn new_for_divisor_access() -> Self
New line control value for accessing divisor latches.