7 unstable releases (3 breaking)

new 0.3.0 Oct 28, 2024
0.2.0 Oct 28, 2024
0.1.6 Oct 23, 2024
0.1.4 May 13, 2024
0.0.1-alpha2 Oct 5, 2023

#36 in Robotics

Download history 5/week @ 2024-07-29 10/week @ 2024-08-05 8/week @ 2024-09-02 15/week @ 2024-09-23 5/week @ 2024-09-30 15/week @ 2024-10-07 208/week @ 2024-10-14 155/week @ 2024-10-21

383 downloads per month
Used in canopen-tokio

BSD-2-Clause

72KB
1.5K SLoC

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.

lib.rs:

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.

Dependencies

~0–8.5MB
~59K SLoC