Crate socketcan [] [src]

socketCAN support.

The Linux kernel supports using CAN-devices through a network-like API (see https://www.kernel.org/doc/Documentation/networking/can.txt). This crate allows easy access to this functionality without having to wrestle libc calls.

Structs

CANFrame

CANFrame

CANSocket

A socket for a CAN device.

Enums

CANSocketOpenError

Errors opening socket

ConstructionError

Error that occurs when creating CAN packets

Constants

EFF_FLAG

if set, indicate 29 bit extended format

EFF_MASK

valid bits in extended frame id

ERR_FLAG

error flag

ERR_MASK

valid bits in error frame

RTR_FLAG

remote transmission request flag

SFF_MASK

valid bits in standard frame id

Traits

ShouldRetry

Check an error return value for timeouts.