Struct ecu_diagnostics::channel::CanFrame [−][src]
pub struct CanFrame { /* fields omitted */ }
Expand description
CAN Frame
Implementations
Creates a new CAN Frame given data and an ID.
Parameters
- id - The CAN ID of the packet
- data - The data of the CAN packet
- is_ext - Indication if the CAN packet shall use extended addressing
NOTE: If [id] is greater than 0x7FF, extended addressing (29bit) will be enabled regardless of [is_ext].
Also, [data] will be limited to 8 bytes.
Returns true if the CAN Frame uses Extended (29bit) addressing
Trait Implementations
Performs the conversion.
Opens the channel, from this point forward, the network filter will be applied to be fully open so data has to be polled rapidly to avoid a driver’s internal buffer from filling up rapidly Read more
Closes the channel. Once closed, no more traffic can be polled or written to the channel. Read more
Writes a list of packets to the raw interface
Reads a list of packets from the raw interface
Tells the channel to clear its Rx buffer. This means all pending messages to be read should be wiped from the devices queue, such that [BaseChannel::read_bytes] does not read them Read more
Tells the channel to clear its Tx buffer. This means all messages that are queued to be sent to the ECU should be wiped. Read more
Opens the channel, from this point forward, the network filter will be applied to be fully open so data has to be polled rapidly to avoid a driver’s internal buffer from filling up rapidly Read more
Closes the channel. Once closed, no more traffic can be polled or written to the channel. Read more
Writes a list of packets to the raw interface
Reads a list of packets from the raw interface
Tells the channel to clear its Rx buffer. This means all pending messages to be read should be wiped from the devices queue, such that [BaseChannel::read_bytes] does not read them Read more
Tells the channel to clear its Tx buffer. This means all messages that are queued to be sent to the ECU should be wiped. Read more
Auto Trait Implementations
impl RefUnwindSafe for CanFrame
impl UnwindSafe for CanFrame
Blanket Implementations
Mutably borrows from an owned value. Read more