Skip to main content

Crate embedded_can_socketcan

Crate embedded_can_socketcan 

Source
Expand description

Linux SocketCAN adapters implementing embedded-can-interface traits.

On Linux, this crate wraps the [socketcan] crate’s sockets in small newtypes that implement the embedded-can-interface I/O traits (TxFrameIo, RxFrameIo, etc).

On non-Linux targets, the types are present but constructors return UnsupportedPlatformError.

Structs§

SocketCan
Classic CAN SocketCAN adapter (non-Linux stub).
SocketCanFd
CAN-FD SocketCAN adapter (non-Linux stub).
UnsupportedPlatformError
Returned when attempting to use SocketCAN adapters on a non-Linux target.