Skip to content  Skip to main menu

CAN library

This library provides application interface for communication over the CAN-bus utilizing Microchips MCP2515 CAN controller. It allows sending simple and extended frames and bus identifiers using special internal data structure. The library uses several sending and receiving buffers and allows changing many parameters (e.g. transfer speed) on runtime basis. It  consists of two separate modules. The first module is responsible for the low-level communication with the MCP2515 using SPI protocol. The second module works  at the higher level of abstraction. This module is responsible for servicing all internal registers of the controller. The library has been successfully tested with CAN expansion module on the AX32 platform.