Struct ecu_diagnostics::hardware::passthru::PassthruIsoTpChannel
source · pub struct PassthruIsoTpChannel { /* private fields */ }
Expand description
Passthru ISO TP Channel
Trait Implementations§
source§impl Debug for PassthruIsoTpChannel
impl Debug for PassthruIsoTpChannel
source§impl Drop for PassthruIsoTpChannel
impl Drop for PassthruIsoTpChannel
source§impl IsoTPChannel for PassthruIsoTpChannel
impl IsoTPChannel for PassthruIsoTpChannel
source§fn set_iso_tp_cfg(&mut self, cfg: IsoTPSettings) -> ChannelResult<()>
fn set_iso_tp_cfg(&mut self, cfg: IsoTPSettings) -> ChannelResult<()>
Sets the ISO-TP specific configuration for the Channel Read more
source§impl PayloadChannel for PassthruIsoTpChannel
impl PayloadChannel for PassthruIsoTpChannel
source§fn open(&mut self) -> ChannelResult<()>
fn open(&mut self) -> ChannelResult<()>
This function opens the interface.
It is ONLY called after set_ids and any other configuration function
source§fn close(&mut self) -> ChannelResult<()>
fn close(&mut self) -> ChannelResult<()>
Closes and destroys the channel
source§fn set_ids(&mut self, send: u32, recv: u32) -> ChannelResult<()>
fn set_ids(&mut self, send: u32, recv: u32) -> ChannelResult<()>
Configures the diagnostic channel with specific IDs for configuring the diagnostic server Read more
source§fn read_bytes(&mut self, timeout_ms: u32) -> ChannelResult<Vec<u8>>
fn read_bytes(&mut self, timeout_ms: u32) -> ChannelResult<Vec<u8>>
Attempts to read bytes from the channel. Read more
source§fn write_bytes(
&mut self,
addr: u32,
ext_id: Option<u8>,
buffer: &[u8],
timeout_ms: u32
) -> ChannelResult<()>
fn write_bytes( &mut self, addr: u32, ext_id: Option<u8>, buffer: &[u8], timeout_ms: u32 ) -> ChannelResult<()>
Attempts to write bytes to the channel. Read more
source§fn clear_rx_buffer(&mut self) -> ChannelResult<()>
fn clear_rx_buffer(&mut self) -> ChannelResult<()>
Tells the channel to clear its Rx buffer.
This means all pending messages to be read should be wiped from the devices queue,
such that PayloadChannel::read_bytes does not read them
source§fn clear_tx_buffer(&mut self) -> ChannelResult<()>
fn clear_tx_buffer(&mut self) -> ChannelResult<()>
Tells the channel to clear its Tx buffer.
This means all messages that are queued to be sent to the ECU should be wiped.
Auto Trait Implementations§
impl Freeze for PassthruIsoTpChannel
impl RefUnwindSafe for PassthruIsoTpChannel
impl Send for PassthruIsoTpChannel
impl Sync for PassthruIsoTpChannel
impl Unpin for PassthruIsoTpChannel
impl UnwindSafe for PassthruIsoTpChannel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more