iso-tp

Crates.ioiso-tp
lib.rsiso-tp
version0.1.0-alpha.5
sourcesrc
created_at2023-06-04 05:25:19.684358
updated_at2023-06-05 01:50:01.447515
descriptionAsync ISO-TP (ISO 15765-2) implementation for embedded devices
homepage
repositoryhttps://github.com/matthunz/iso-tp
max_upload_size
id882009
size37,370
Matt Hunzinger (matthunz)

documentation

README

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?;
Commit count: 37

cargo fmt