#[repr(C)]pub struct BMCanMessage {
pub mid: BMMessageId,
pub ctrl: BMMessageCtrl,
pub payload: [u8; 64],
}Expand description
Busmust CAN Message concrete type, usually used as payload of BMData. The total length of this structure is 72B, it supports both classic and FD CAN messages.
Fields§
§mid: BMMessageIdCAN message ID, see BMMessageId for details.
ctrl: BMMessageCtrlCAN message control fields, whether TX or RX is taken depends on the message direction.
payload: [u8; 64]CAN message payload
Implementations§
Source§impl BMCanMessage
impl BMCanMessage
Trait Implementations§
Source§impl Clone for BMCanMessage
impl Clone for BMCanMessage
Source§fn clone(&self) -> BMCanMessage
fn clone(&self) -> BMCanMessage
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 moreimpl Copy for BMCanMessage
Auto Trait Implementations§
impl Freeze for BMCanMessage
impl RefUnwindSafe for BMCanMessage
impl Send for BMCanMessage
impl Sync for BMCanMessage
impl Unpin for BMCanMessage
impl UnwindSafe for BMCanMessage
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