pub struct SegmentPecErrors(/* private fields */);Implementations§
Source§impl SegmentPecErrors
impl SegmentPecErrors
Sourcepub const fn with_chip_id_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_chip_id_checked(self, value: u8) -> Result<Self, ()>
Bits: 0..8
Sourcepub const fn with_chip_id(self, value: u8) -> Self
pub const fn with_chip_id(self, value: u8) -> Self
Bits: 0..8
Sourcepub const fn set_chip_id(&mut self, value: u8)
pub const fn set_chip_id(&mut self, value: u8)
Bits: 0..8
Sourcepub const fn pec_errors(&self) -> u16
pub const fn pec_errors(&self) -> u16
PEC error count for segment communication for chip
Bits: 8..24
Sourcepub const fn with_pec_errors_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_pec_errors_checked(self, value: u16) -> Result<Self, ()>
PEC error count for segment communication for chip
Bits: 8..24
Sourcepub const fn with_pec_errors(self, value: u16) -> Self
pub const fn with_pec_errors(self, value: u16) -> Self
PEC error count for segment communication for chip
Bits: 8..24
Sourcepub const fn set_pec_errors(&mut self, value: u16)
pub const fn set_pec_errors(&mut self, value: u16)
PEC error count for segment communication for chip
Bits: 8..24
Trait Implementations§
Source§impl Clone for SegmentPecErrors
impl Clone for SegmentPecErrors
Source§fn clone(&self) -> SegmentPecErrors
fn clone(&self) -> SegmentPecErrors
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SegmentPecErrors
impl Debug for SegmentPecErrors
Source§impl Default for SegmentPecErrors
impl Default for SegmentPecErrors
Source§impl From<SegmentPecErrors> for u32
impl From<SegmentPecErrors> for u32
Source§fn from(v: SegmentPecErrors) -> Self
fn from(v: SegmentPecErrors) -> Self
Converts to this type from the input type.
Source§impl From<u32> for SegmentPecErrors
impl From<u32> for SegmentPecErrors
Source§impl ToCanFrame for SegmentPecErrors
impl ToCanFrame for SegmentPecErrors
impl Copy for SegmentPecErrors
Auto Trait Implementations§
impl Freeze for SegmentPecErrors
impl RefUnwindSafe for SegmentPecErrors
impl Send for SegmentPecErrors
impl Sync for SegmentPecErrors
impl Unpin for SegmentPecErrors
impl UnwindSafe for SegmentPecErrors
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