#[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
const OVERRUN_ERROR_BITS: usize = 1usize
const OVERRUN_ERROR_OFFSET: usize = 1usize
const PARITY_ERROR_BITS: usize = 1usize
const PARITY_ERROR_OFFSET: usize = 2usize
const FRAMING_ERROR_BITS: usize = 1usize
const FRAMING_ERROR_OFFSET: usize = 3usize
const BREAK_INTERRUPT_BITS: usize = 1usize
const BREAK_INTERRUPT_OFFSET: usize = 4usize
const TRANSMITTER_HOLDING_REGISTER_BITS: usize = 1usize
const TRANSMITTER_HOLDING_REGISTER_OFFSET: usize = 5usize
const TRANSMITTER_EMPTY_BITS: usize = 1usize
const TRANSMITTER_EMPTY_OFFSET: usize = 6usize
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_checked(self, value: bool) -> Result<Self, ()>
const fn with_data_ready_checked(self, value: bool) -> Result<Self, ()>
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
Sourceconst fn set_data_ready(&mut self, value: bool)
const fn set_data_ready(&mut self, value: bool)
Set when there is a value in the receive buffer
Bits: 0..1
Sourceconst fn set_data_ready_checked(&mut self, value: bool) -> Result<(), ()>
const fn set_data_ready_checked(&mut self, value: bool) -> Result<(), ()>
Set when there is a value in the receive buffer
Bits: 0..1
Sourceconst fn overrun_error(&self) -> bool
const fn overrun_error(&self) -> bool
Bits: 1..2
Sourceconst fn with_overrun_error_checked(self, value: bool) -> Result<Self, ()>
const fn with_overrun_error_checked(self, value: bool) -> Result<Self, ()>
Bits: 1..2
Sourceconst fn with_overrun_error(self, value: bool) -> Self
const fn with_overrun_error(self, value: bool) -> Self
Bits: 1..2
Sourceconst fn set_overrun_error(&mut self, value: bool)
const fn set_overrun_error(&mut self, value: bool)
Bits: 1..2
Sourceconst fn set_overrun_error_checked(&mut self, value: bool) -> Result<(), ()>
const fn set_overrun_error_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 1..2
Sourceconst fn parity_error(&self) -> bool
const fn parity_error(&self) -> bool
Bits: 2..3
Sourceconst fn with_parity_error_checked(self, value: bool) -> Result<Self, ()>
const fn with_parity_error_checked(self, value: bool) -> Result<Self, ()>
Bits: 2..3
Sourceconst fn with_parity_error(self, value: bool) -> Self
const fn with_parity_error(self, value: bool) -> Self
Bits: 2..3
Sourceconst fn set_parity_error(&mut self, value: bool)
const fn set_parity_error(&mut self, value: bool)
Bits: 2..3
Sourceconst fn set_parity_error_checked(&mut self, value: bool) -> Result<(), ()>
const fn set_parity_error_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 2..3
Sourceconst fn framing_error(&self) -> bool
const fn framing_error(&self) -> bool
Bits: 3..4
Sourceconst fn with_framing_error_checked(self, value: bool) -> Result<Self, ()>
const fn with_framing_error_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
Sourceconst fn with_framing_error(self, value: bool) -> Self
const fn with_framing_error(self, value: bool) -> Self
Bits: 3..4
Sourceconst fn set_framing_error(&mut self, value: bool)
const fn set_framing_error(&mut self, value: bool)
Bits: 3..4
Sourceconst fn set_framing_error_checked(&mut self, value: bool) -> Result<(), ()>
const fn set_framing_error_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 3..4
Sourceconst fn break_interrupt(&self) -> bool
const fn break_interrupt(&self) -> bool
Bits: 4..5
Sourceconst fn with_break_interrupt_checked(self, value: bool) -> Result<Self, ()>
const fn with_break_interrupt_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
Sourceconst fn with_break_interrupt(self, value: bool) -> Self
const fn with_break_interrupt(self, value: bool) -> Self
Bits: 4..5
Sourceconst fn set_break_interrupt(&mut self, value: bool)
const fn set_break_interrupt(&mut self, value: bool)
Bits: 4..5
Sourceconst fn set_break_interrupt_checked(&mut self, value: bool) -> Result<(), ()>
const fn set_break_interrupt_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 4..5
Sourceconst fn transmitter_holding_register(&self) -> bool
const fn transmitter_holding_register(&self) -> bool
Bits: 5..6
Sourceconst fn with_transmitter_holding_register_checked(
self,
value: bool,
) -> Result<Self, ()>
const fn with_transmitter_holding_register_checked( self, value: bool, ) -> Result<Self, ()>
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
Sourceconst fn set_transmitter_holding_register(&mut self, value: bool)
const fn set_transmitter_holding_register(&mut self, value: bool)
Bits: 5..6
Sourceconst fn set_transmitter_holding_register_checked(
&mut self,
value: bool,
) -> Result<(), ()>
const fn set_transmitter_holding_register_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 5..6
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_checked(self, value: bool) -> Result<Self, ()>
const fn with_transmitter_empty_checked(self, value: bool) -> Result<Self, ()>
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
Sourceconst fn set_transmitter_empty(&mut self, value: bool)
const fn set_transmitter_empty(&mut self, value: bool)
Send buffer empty (ready to send)
Bits: 6..7
Sourceconst fn set_transmitter_empty_checked(&mut self, value: bool) -> Result<(), ()>
const fn set_transmitter_empty_checked(&mut self, value: bool) -> Result<(), ()>
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
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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
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>,
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>
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
clone_to_uninit
)