#[non_exhaustive]pub struct ErrorCounts {
pub bit: u32,
pub form: u32,
pub stuff: u32,
pub acknowledge: u32,
pub other: u32,
pub arbitration_lost: u32,
pub overrun: u32,
pub queue_full: u32,
}unstable only.Expand description
What the controller has reported since the driver was last started
(TwaiConfiguration::start), as counted by the async driver’s interrupt
handler (a blocking driver counts nothing).
Bus errors are classified from the error code capture register as
ESP-IDF does: bit, form and stuff errors by type, an acknowledgement
error by the ACK slot segment, anything else as other.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bit: u32Bit errors
form: u32Form errors
stuff: u32Stuff errors
acknowledge: u32Acknowledgement errors: nobody acknowledged a transmitted frame
other: u32Other bus errors
arbitration_lost: u32Arbitration lost while transmitting (the controller retries)
overrun: u32Frames lost in the controller: its receive FIFO overran
queue_full: u32Frames lost because the driver’s receive queue was full
Trait Implementations§
Source§impl Clone for ErrorCounts
impl Clone for ErrorCounts
Source§fn clone(&self) -> ErrorCounts
fn clone(&self) -> ErrorCounts
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ErrorCounts
Source§impl Debug for ErrorCounts
impl Debug for ErrorCounts
Source§impl Default for ErrorCounts
impl Default for ErrorCounts
Source§fn default() -> ErrorCounts
fn default() -> ErrorCounts
impl Eq for ErrorCounts
Source§impl PartialEq for ErrorCounts
impl PartialEq for ErrorCounts
impl StructuralPartialEq for ErrorCounts
Auto Trait Implementations§
impl Freeze for ErrorCounts
impl RefUnwindSafe for ErrorCounts
impl Send for ErrorCounts
impl Sync for ErrorCounts
impl Unpin for ErrorCounts
impl UnsafeUnpin for ErrorCounts
impl UnwindSafe for ErrorCounts
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)