Struct ecu_diagnostics::channel::IsoTPSettings
source · [−]#[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
sourceimpl Clone for IsoTPSettings
impl Clone for IsoTPSettings
sourcefn clone(&self) -> IsoTPSettings
fn clone(&self) -> IsoTPSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IsoTPSettings
impl Debug for IsoTPSettings
sourceimpl Default for IsoTPSettings
impl Default for IsoTPSettings
impl Copy for IsoTPSettings
Auto Trait Implementations
impl RefUnwindSafe for IsoTPSettings
impl Send for IsoTPSettings
impl Sync for IsoTPSettings
impl Unpin for IsoTPSettings
impl UnwindSafe for IsoTPSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more