4 releases
0.1.0-alpha.5 | Jun 5, 2023 |
---|---|
0.1.0-alpha.2 | Jun 4, 2023 |
#1840 in Embedded development
30 downloads per month
21KB
509 lines
iso-tp
Async ISO-TP (ISO 15765-2) implementation for embedded devices
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?;
Dependencies
~195KB