#[repr(C)]
pub struct IsoTpOptions { /* private fields */ }
Expand description

ISO-TP otions aka can_isotp_options

Implementations§

source§

impl IsoTpOptions

source

pub fn new( flags: IsoTpBehaviour, frame_txtime: Duration, ext_address: u8, txpad_content: u8, rxpad_content: u8, rx_ext_address: u8 ) -> Result<Self, TryFromIntError>

source

pub fn get_flags(&self) -> Option<IsoTpBehaviour>

get flags for isotp behaviour.

source

pub fn set_flags(&mut self, flags: IsoTpBehaviour)

set flags for isotp behaviour.

source

pub fn get_frame_txtime(&self) -> Duration

get frame transmission time (N_As/N_Ar)

source

pub fn set_frame_txtime( &mut self, frame_txtime: Duration ) -> Result<(), TryFromIntError>

set frame transmission time (N_As/N_Ar)

source

pub fn get_ext_address(&self) -> u8

get frame transmission time (N_As/N_Ar)

source

pub fn set_ext_address(&mut self, ext_address: u8)

set address for extended addressing

source

pub fn get_txpad_content(&self) -> u8

get address for extended addressing

source

pub fn set_txpad_content(&mut self, txpad_content: u8)

set content of padding byte (tx)

source

pub fn get_rxpad_content(&self) -> u8

get content of padding byte (rx)

source

pub fn set_rxpad_content(&mut self, rxpad_content: u8)

set content of padding byte (rx)

source

pub fn get_rx_ext_address(&self) -> u8

get address for extended addressing

source

pub fn set_rx_ext_address(&mut self, rx_ext_address: u8)

set address for extended addressing

Trait Implementations§

source§

impl Default for IsoTpOptions

source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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, U> TryFrom<U> for Twhere 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 Twhere 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.