#[repr(transparent)]pub struct Errorsrc(pub u32);
Expand description
Error source. Write error field to 1 to clear error.
Tuple Fields§
§0: u32
Implementations§
Source§impl Errorsrc
impl Errorsrc
Sourcepub const fn overrun(&self) -> bool
pub const fn overrun(&self) -> bool
A start bit is received while the previous data still lies in RXD. (Data loss).
Sourcepub fn set_overrun(&mut self, val: bool)
pub fn set_overrun(&mut self, val: bool)
A start bit is received while the previous data still lies in RXD. (Data loss).
Sourcepub const fn parity(&self) -> bool
pub const fn parity(&self) -> bool
A character with bad parity is received. Only checked if HW parity control is enabled.
Sourcepub fn set_parity(&mut self, val: bool)
pub fn set_parity(&mut self, val: bool)
A character with bad parity is received. Only checked if HW parity control is enabled.
Sourcepub const fn framing(&self) -> bool
pub const fn framing(&self) -> bool
A valid stop bit is not detected on the serial data input after all bits in a character have been received.
Sourcepub fn set_framing(&mut self, val: bool)
pub fn set_framing(&mut self, val: bool)
A valid stop bit is not detected on the serial data input after all bits in a character have been received.
Sourcepub const fn break_(&self) -> bool
pub const fn break_(&self) -> bool
The serial data input is ‘0’ for longer than the length of a data frame.
Sourcepub fn set_break_(&mut self, val: bool)
pub fn set_break_(&mut self, val: bool)
The serial data input is ‘0’ for longer than the length of a data frame.
Trait Implementations§
impl Copy for Errorsrc
impl Eq for Errorsrc
impl StructuralPartialEq for Errorsrc
Auto Trait Implementations§
impl Freeze for Errorsrc
impl RefUnwindSafe for Errorsrc
impl Send for Errorsrc
impl Sync for Errorsrc
impl Unpin for Errorsrc
impl UnwindSafe for Errorsrc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)