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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Returns the address of the packet

Returns the data of the packet

Sets the address of the packet

Sets the data of the packet

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.