iso-tp 0.1.0-alpha.5

Async ISO-TP (ISO 15765-2) implementation for embedded devices
Documentation

iso-tp

Async ISO-TP (ISO 15765-2) implementation for embedded devices

crate Rust Documentation CI

Examples

Reading

use async_hal::io::AsyncRead;
use iso_tp::Socket;

let mut socket = Socket::new(tx, rx);
let mut reader = socket.reader();

let mut buf = [0; 64];
reader.read_to_end(&mut buf).await?;

dbg!(&buf);

Writing

use async_hal::io::AsyncWrite;
use iso_tp::Socket;

let mut socket = Socket::new(tx, rx);
let mut writer = socket.writer();

writer.write_all(b"Hello World!").await?;