#[repr(C)]
pub struct IsoTPSettings { pub block_size: u8, pub st_min: u8, pub extended_addresses: Option<(u8, u8)>, 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_addresses: Option<(u8, u8)>

Extended addressing bytes order is Tx ext address, Rx ext address

§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§

source§

impl Clone for IsoTPSettings

source§

fn clone(&self) -> IsoTPSettings

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for IsoTPSettings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for IsoTPSettings

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for IsoTPSettings

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.