can-socket

Crates.iocan-socket
lib.rscan-socket
version0.3.0
sourcesrc
created_at2023-10-04 08:21:41.183363
updated_at2024-10-28 13:06:54.899809
descriptionno frills CAN sockets (synchronous or async with tokio)
homepage
repositoryhttps://github.com/de-vri-es/can-socket-rs
max_upload_size
id991968
size123,129
Maarten de Vries (de-vri-es)

documentation

https://docs.rs/can-socket

README

CAN socket

This library exposes a CanSocket and related types, allowing you to communicate over a Controller Area Network (CAN) bus.

The is a standard blocking or non-blocking CanSocket, and an asynchronous tokio::CanSocket.

This library uses the SocketCAN interface and only works on Linux.

Supported features:

  • Bind sockets to specific interfaces by name or index.
  • Bind sockets to all CAN interfaces at the same time.
  • Send and receive data frames and RTR frames.
  • Send and receive standard frames and extended frames.
  • Setting per-socket filters.
  • Control over the loopback and recv_own_msgs options.
  • Constructing compile-time checked CAN IDs.
Commit count: 105

cargo fmt