Skip to main content

PartialLineControl

Struct PartialLineControl 

Source
pub struct PartialLineControl<const div_access_latch: bool, const set_break: bool, const stick_parity: bool, const even_parity: bool, const parity_enable: bool, const stop_bits: bool, const word_len: bool>(/* private fields */);
Expand description

Builder struct for partial initialization of LineControl .

Implementations§

Source§

impl<const set_break: bool, const stick_parity: bool, const even_parity: bool, const parity_enable: bool, const stop_bits: bool, const word_len: bool> PartialLineControl<false, set_break, stick_parity, even_parity, parity_enable, stop_bits, word_len>

Source

pub const fn with_div_access_latch( &self, __value_mangled: bool, ) -> PartialLineControl<true, set_break, stick_parity, even_parity, parity_enable, stop_bits, word_len>

Divisor Latch Access Bit.

Source§

impl<const div_access_latch: bool, const stick_parity: bool, const even_parity: bool, const parity_enable: bool, const stop_bits: bool, const word_len: bool> PartialLineControl<div_access_latch, false, stick_parity, even_parity, parity_enable, stop_bits, word_len>

Source

pub const fn with_set_break( &self, __value_mangled: bool, ) -> PartialLineControl<div_access_latch, true, stick_parity, even_parity, parity_enable, stop_bits, word_len>

Set break bit.

Source§

impl<const div_access_latch: bool, const set_break: bool, const even_parity: bool, const parity_enable: bool, const stop_bits: bool, const word_len: bool> PartialLineControl<div_access_latch, set_break, false, even_parity, parity_enable, stop_bits, word_len>

Source

pub const fn with_stick_parity( &self, __value_mangled: bool, ) -> PartialLineControl<div_access_latch, set_break, true, even_parity, parity_enable, stop_bits, word_len>

Parity stick bit.

Source§

impl<const div_access_latch: bool, const set_break: bool, const stick_parity: bool, const parity_enable: bool, const stop_bits: bool, const word_len: bool> PartialLineControl<div_access_latch, set_break, stick_parity, false, parity_enable, stop_bits, word_len>

Source

pub const fn with_even_parity( &self, __value_mangled: bool, ) -> PartialLineControl<div_access_latch, set_break, stick_parity, true, parity_enable, stop_bits, word_len>

Even parity.

Source§

impl<const div_access_latch: bool, const set_break: bool, const stick_parity: bool, const even_parity: bool, const stop_bits: bool, const word_len: bool> PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, false, stop_bits, word_len>

Source

pub const fn with_parity_enable( &self, __value_mangled: bool, ) -> PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, true, stop_bits, word_len>

Parity enable.

Source§

impl<const div_access_latch: bool, const set_break: bool, const stick_parity: bool, const even_parity: bool, const parity_enable: bool, const word_len: bool> PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, parity_enable, false, word_len>

Source

pub const fn with_stop_bits( &self, __value_mangled: StopBits, ) -> PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, parity_enable, true, word_len>

0: 1 stop bit, 1: 2 stop bits or 1.5 if 5 bits/char selected

Source§

impl<const div_access_latch: bool, const set_break: bool, const stick_parity: bool, const even_parity: bool, const parity_enable: bool, const stop_bits: bool> PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, parity_enable, stop_bits, false>

Source

pub const fn with_word_len( &self, __value_mangled: WordLen, ) -> PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, parity_enable, stop_bits, true>

Word length.

Source§

impl PartialLineControl<true, true, true, true, true, true, true>

Source

pub const fn build(&self) -> LineControl

Builds the bitfield from the values passed into this builder.

Every field must be set on PartialLineControl to be able to build a LineControl .

Auto Trait Implementations§

§

impl<const div_access_latch: bool, const set_break: bool, const stick_parity: bool, const even_parity: bool, const parity_enable: bool, const stop_bits: bool, const word_len: bool> Freeze for PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, parity_enable, stop_bits, word_len>

§

impl<const div_access_latch: bool, const set_break: bool, const stick_parity: bool, const even_parity: bool, const parity_enable: bool, const stop_bits: bool, const word_len: bool> RefUnwindSafe for PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, parity_enable, stop_bits, word_len>

§

impl<const div_access_latch: bool, const set_break: bool, const stick_parity: bool, const even_parity: bool, const parity_enable: bool, const stop_bits: bool, const word_len: bool> Send for PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, parity_enable, stop_bits, word_len>

§

impl<const div_access_latch: bool, const set_break: bool, const stick_parity: bool, const even_parity: bool, const parity_enable: bool, const stop_bits: bool, const word_len: bool> Sync for PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, parity_enable, stop_bits, word_len>

§

impl<const div_access_latch: bool, const set_break: bool, const stick_parity: bool, const even_parity: bool, const parity_enable: bool, const stop_bits: bool, const word_len: bool> Unpin for PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, parity_enable, stop_bits, word_len>

§

impl<const div_access_latch: bool, const set_break: bool, const stick_parity: bool, const even_parity: bool, const parity_enable: bool, const stop_bits: bool, const word_len: bool> UnsafeUnpin for PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, parity_enable, stop_bits, word_len>

§

impl<const div_access_latch: bool, const set_break: bool, const stick_parity: bool, const even_parity: bool, const parity_enable: bool, const stop_bits: bool, const word_len: bool> UnwindSafe for PartialLineControl<div_access_latch, set_break, stick_parity, even_parity, parity_enable, stop_bits, word_len>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.