#[repr(C)]
pub struct IsoTPSettings { pub block_size: u8, pub st_min: u8, pub extended_addressing: bool, pub pad_frame: bool, pub can_speed: u32, pub can_use_ext_addr: bool, }
Expand description

ISO-TP configuration options (ISO15765-2)

Fields

block_size: u8

ISO-TP Block size

This value indicates the number of CAN Frames to send in multi-frame messages, before sending or receiving a flow control message.

A value of 0 indicates send everything without flow control messages.

NOTE: This value might be overridden by the device’s implementation of ISO-TP

st_min: u8

Minimum separation time between Tx/Rx CAN Frames.

3 ranges are accepted for this value:

  • 0x00 - Send without delay (ECU/Adapter will send frames as fast as the physical bus allows).
  • 0x01-0x7F - Send with delay of 1-127 milliseconds between can frames
  • 0xF1-0xF9 - Send with delay of 100-900 microseconds between can frames

NOTE: This value might be overridden by the device’s implementation of ISO-TP

extended_addressing: bool

Use extended ISO-TP addressing

pad_frame: bool

Pad frames over ISO-TP if data size is less than 8.

can_speed: u32

Baud rate of the CAN Network

can_use_ext_addr: bool

Does the CAN Network support extended addressing (29bit) or standard addressing (11bit)

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

Returns the “default value” for a type. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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.