Crates.io | iso-tp |
lib.rs | iso-tp |
version | 0.1.0-alpha.5 |
source | src |
created_at | 2023-06-04 05:25:19.684358 |
updated_at | 2023-06-05 01:50:01.447515 |
description | Async ISO-TP (ISO 15765-2) implementation for embedded devices |
homepage | |
repository | https://github.com/matthunz/iso-tp |
max_upload_size | |
id | 882009 |
size | 37,370 |
Async ISO-TP (ISO 15765-2) implementation for embedded devices
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);
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?;