#[repr(transparent)]pub struct Cs2(pub u32);Expand description
Message Buffer 2 CS Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Cs2
impl Cs2
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 Cs2
impl Eq for Cs2
impl StructuralPartialEq for Cs2
Auto Trait Implementations§
impl Freeze for Cs2
impl RefUnwindSafe for Cs2
impl Send for Cs2
impl Sync for Cs2
impl Unpin for Cs2
impl UnwindSafe for Cs2
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