#[repr(transparent)]pub struct Cs8(pub u32);Expand description
Message Buffer 8 CS Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Cs8
impl Cs8
Sourcepub const fn time_stamp(&self) -> u16
pub const fn time_stamp(&self) -> u16
Free-Running Counter Time stamp. This 16-bit field is a copy of the Free-Running Timer, captured for Tx and Rx frames at the time when the beginning of the Identifier field appears on the CAN bus.
Sourcepub const fn set_time_stamp(&mut self, val: u16)
pub const fn set_time_stamp(&mut self, val: u16)
Free-Running Counter Time stamp. This 16-bit field is a copy of the Free-Running Timer, captured for Tx and Rx frames at the time when the beginning of the Identifier field appears on the CAN bus.
Sourcepub const fn set_rtr(&mut self, val: bool)
pub const fn set_rtr(&mut self, val: bool)
Remote Transmission Request. One/zero for remote/data frame.
Sourcepub const fn set_ide(&mut self, val: bool)
pub const fn set_ide(&mut self, val: bool)
ID Extended. One/zero for extended/standard format frame.
Sourcepub const fn set_srr(&mut self, val: bool)
pub const fn set_srr(&mut self, val: bool)
Substitute Remote Request. Contains a fixed recessive bit.
Trait Implementations§
impl Copy for Cs8
impl Eq for Cs8
impl StructuralPartialEq for Cs8
Auto Trait Implementations§
impl Freeze for Cs8
impl RefUnwindSafe for Cs8
impl Send for Cs8
impl Sync for Cs8
impl Unpin for Cs8
impl UnwindSafe for Cs8
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