Skip to content

Releases: daleksla/can_interact

Native C and CXX API

04 Sep 01:03
Compare
Choose a tag to compare
Native C and CXX API Pre-release
Pre-release

Library not only contains updated and much-nicer interface for C code (simple decode to get value, encode to serialise and package value in appropriate structure), but also contains C++ (11) API, which contains a class to initialise and manage CAN communication and functions and other functions making use of templating and STL containers for ease of access. See examples and docs for further elaboration

can_interact

14 Jul 11:58
Compare
Choose a tag to compare
can_interact Pre-release
Pre-release

Hi all,

This can_interact repository allows for flexible connecting, reception, encoding, decoding and transmission of data along a CAN bus, regardless of host-architecture.

  • Creating a socket involves providing the bus name
  • Kernel-level filtering involves just providing the ids you want to hear from
  • Asking for frames is done with one function call
  • Decoding data is made super easy: just say where the data starts, how long, what type, and the endianness of the data
  • Encoding is done in the same super easy way
  • Creating and transmission of frames for the OS you're running is split into two function calls

Currently, this API is only available on the Linux-based operating systems. Expecting to port to other POSIX systems soon.