Struct socketcan_isotp::FlowControlOptions
source · [−]#[repr(C)]pub struct FlowControlOptions { /* private fields */ }Expand description
Flow control options aka can_isotp_fc_options
Implementations
sourceimpl FlowControlOptions
impl FlowControlOptions
sourcepub fn new(bs: u8, stmin: u8, wftmax: u8) -> Self
pub fn new(bs: u8, stmin: u8, wftmax: u8) -> Self
Creates new flow control options
Parameters
- bs - Blocksize for the ISO-TP frame, set 0 for off (Sending ECU shall send all frames in 1 block)
- stmin - Separation time between consecutive frames. The following values are allowed:
- 0x00 - 0x7F : 0 - 127 ms
- 0xF1 - 0xF9 : 100 - 900 us
- wftmax - Maximum number of wait frame transmiss
- Default value is 0 (omit)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FlowControlOptions
impl Send for FlowControlOptions
impl Sync for FlowControlOptions
impl Unpin for FlowControlOptions
impl UnwindSafe for FlowControlOptions
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