Trait obd::IsoTp[][src]

pub trait IsoTp {
    fn send_isotp(&mut self, id: u32, data: &[u8]) -> Result<(), Error>;
fn read_isotp(&mut self, id: u32) -> Result<Vec<u8>, Error>; fn query_isotp(&mut self, id: u32, data: &[u8]) -> Result<Vec<u8>, Error> { ... } }

ISO 15765 (ISO-TP)

Required methods

fn send_isotp(&mut self, id: u32, data: &[u8]) -> Result<(), Error>[src]

Sends an ISO-TP packet.

Arguments

  • id - the CAN arbitration ID.
  • data - The packet payload. Must not be larger than 4095 bytes.

fn read_isotp(&mut self, id: u32) -> Result<Vec<u8>, Error>[src]

Receives an ISO-TP packet.

Arguments

  • id - the CAN arbitration ID to listen for.
Loading content...

Provided methods

fn query_isotp(&mut self, id: u32, data: &[u8]) -> Result<Vec<u8>, Error>[src]

Sends an ISO-TP packet and waits for a response

Loading content...

Implementors

impl IsoTp for PassThruIsoTp<'_>[src]

Loading content...