Struct rstubs::device::serial::LineStatus
source · #[repr(transparent)]struct LineStatus(u8);
Expand description
Line Status Register
Tuple Fields§
§0: u8
Implementations§
source§impl LineStatus
impl LineStatus
const DATA_READY_BITS: usize = 1usize
const DATA_READY_OFFSET: usize = 0usize
sourceconst fn data_ready(&self) -> bool
const fn data_ready(&self) -> bool
Set when there is a value in the receive buffer
Bits: 0..1
sourceconst fn with_data_ready(self, value: bool) -> Self
const fn with_data_ready(self, value: bool) -> Self
Set when there is a value in the receive buffer
Bits: 0..1
sourcefn set_data_ready(&mut self, value: bool)
fn set_data_ready(&mut self, value: bool)
Set when there is a value in the receive buffer
Bits: 0..1
const OVERRUN_ERROR_BITS: usize = 1usize
const OVERRUN_ERROR_OFFSET: usize = 1usize
sourceconst fn overrun_error(&self) -> bool
const fn overrun_error(&self) -> bool
Bits: 1..2
sourceconst fn with_overrun_error(self, value: bool) -> Self
const fn with_overrun_error(self, value: bool) -> Self
Bits: 1..2
sourcefn set_overrun_error(&mut self, value: bool)
fn set_overrun_error(&mut self, value: bool)
Bits: 1..2
const PARITY_ERROR_BITS: usize = 1usize
const PARITY_ERROR_OFFSET: usize = 2usize
sourceconst fn parity_error(&self) -> bool
const fn parity_error(&self) -> bool
Bits: 2..3
sourceconst fn with_parity_error(self, value: bool) -> Self
const fn with_parity_error(self, value: bool) -> Self
Bits: 2..3
sourcefn set_parity_error(&mut self, value: bool)
fn set_parity_error(&mut self, value: bool)
Bits: 2..3
const FRAMING_ERROR_BITS: usize = 1usize
const FRAMING_ERROR_OFFSET: usize = 3usize
sourceconst fn framing_error(&self) -> bool
const fn framing_error(&self) -> bool
Bits: 3..4
sourceconst fn with_framing_error(self, value: bool) -> Self
const fn with_framing_error(self, value: bool) -> Self
Bits: 3..4
sourcefn set_framing_error(&mut self, value: bool)
fn set_framing_error(&mut self, value: bool)
Bits: 3..4
const BREAK_INTERRUPT_BITS: usize = 1usize
const BREAK_INTERRUPT_OFFSET: usize = 4usize
sourceconst fn break_interrupt(&self) -> bool
const fn break_interrupt(&self) -> bool
Bits: 4..5
sourceconst fn with_break_interrupt(self, value: bool) -> Self
const fn with_break_interrupt(self, value: bool) -> Self
Bits: 4..5
sourcefn set_break_interrupt(&mut self, value: bool)
fn set_break_interrupt(&mut self, value: bool)
Bits: 4..5
const TRANSMITTER_HOLDING_REGISTER_BITS: usize = 1usize
const TRANSMITTER_HOLDING_REGISTER_OFFSET: usize = 5usize
sourceconst fn transmitter_holding_register(&self) -> bool
const fn transmitter_holding_register(&self) -> bool
Bits: 5..6
sourceconst fn with_transmitter_holding_register(self, value: bool) -> Self
const fn with_transmitter_holding_register(self, value: bool) -> Self
Bits: 5..6
sourcefn set_transmitter_holding_register(&mut self, value: bool)
fn set_transmitter_holding_register(&mut self, value: bool)
Bits: 5..6
const TRANSMITTER_EMPTY_BITS: usize = 1usize
const TRANSMITTER_EMPTY_OFFSET: usize = 6usize
sourceconst fn transmitter_empty(&self) -> bool
const fn transmitter_empty(&self) -> bool
Send buffer empty (ready to send)
Bits: 6..7
sourceconst fn with_transmitter_empty(self, value: bool) -> Self
const fn with_transmitter_empty(self, value: bool) -> Self
Send buffer empty (ready to send)
Bits: 6..7
sourcefn set_transmitter_empty(&mut self, value: bool)
fn set_transmitter_empty(&mut self, value: bool)
Send buffer empty (ready to send)
Bits: 6..7
Trait Implementations§
source§impl Clone for LineStatus
impl Clone for LineStatus
source§fn clone(&self) -> LineStatus
fn clone(&self) -> LineStatus
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LineStatus
impl Debug for LineStatus
source§impl Default for LineStatus
impl Default for LineStatus
source§impl From<LineStatus> for u8
impl From<LineStatus> for u8
source§fn from(v: LineStatus) -> u8
fn from(v: LineStatus) -> u8
Converts to this type from the input type.
source§impl From<u8> for LineStatus
impl From<u8> for LineStatus
source§impl PortValue for LineStatus
impl PortValue for LineStatus
impl Copy for LineStatus
Auto Trait Implementations§
impl Freeze for LineStatus
impl RefUnwindSafe for LineStatus
impl Send for LineStatus
impl Sync for LineStatus
impl Unpin for LineStatus
impl UnwindSafe for LineStatus
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.