#[repr(C)]pub struct PamojaJ1939Id {
pub pgn: u32,
pub priority: u8,
pub source: u8,
pub pdu_format: u8,
pub destination: u8,
pub addressed: u8,
}Expand description
The fields J1939 packs into an extended CAN identifier.
Every field is a scalar, so this crosses the boundary by value. addressed is
1 for a PDU1 message, where destination names the node the message is for,
and 0 for a PDU2 broadcast, where destination carries no meaning.
Fields§
§pgn: u32The parameter group number, which names what the message carries.
priority: u8The message priority, 0 (highest) to 7.
source: u8The source address: the node that sent the message.
pdu_format: u8The PDU format byte of the parameter group.
destination: u8The destination address, meaningful only when addressed is 1.
addressed: u81 for an addressed (PDU1) message, 0 for a broadcast (PDU2) one.
Trait Implementations§
Source§impl Clone for PamojaJ1939Id
impl Clone for PamojaJ1939Id
Source§fn clone(&self) -> PamojaJ1939Id
fn clone(&self) -> PamojaJ1939Id
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaJ1939Id
Source§impl Debug for PamojaJ1939Id
impl Debug for PamojaJ1939Id
impl Eq for PamojaJ1939Id
Source§impl PartialEq for PamojaJ1939Id
impl PartialEq for PamojaJ1939Id
Source§fn eq(&self, other: &PamojaJ1939Id) -> bool
fn eq(&self, other: &PamojaJ1939Id) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaJ1939Id
Auto Trait Implementations§
impl Freeze for PamojaJ1939Id
impl RefUnwindSafe for PamojaJ1939Id
impl Send for PamojaJ1939Id
impl Sync for PamojaJ1939Id
impl Unpin for PamojaJ1939Id
impl UnsafeUnpin for PamojaJ1939Id
impl UnwindSafe for PamojaJ1939Id
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