pub fn open_socketcan<S>(
device: S,
) -> Result<(SocketCanSender, SocketCanReceiver), Error>Expand description
Open a socketcan device and split it into a sender and receiver object for use with zencan library
§Arguments
device- The name of the socketcan device to open, e.g. “vcan0”, or “can0”
A key benefit of this is that by creating both sender and receiver objects from a shared socket, the receiver will not receive messages sent by the sender.