Skip to content

Releases: pierremolinaro/acan-esp32

CANMessage.h renamed to ACAN_ESP32_CANMessage.h

22 Mar 20:59
Compare
Choose a tag to compare

Update for Arduino ESP32 3.0.0-alpha3 board manager

10 Jan 16:35
Compare
Choose a tag to compare
2.0.0

Version 2.0.0 for Arduino ESP32 3.0.0-alpha3

Added compatibility with ESP32C3 and ESP32C3

24 Aug 06:56
Compare
Choose a tag to compare

Added available, statusFlags and recoverFromBusOff methods.

24 Sep 10:32
Compare
Choose a tag to compare

Added available method (thanks to Modelfan)
This method returns true if the driver receive FIFO is not empty, and false if it is empty.

Added recoverFromBusOff (thanks to matthew‐mower
If the CAN Controller is bus-off and in reset mode, the method starts recovery and returns true. To return to the Error Active state, the TWAI controller must undergo Bus-Off recovery. Bus-Off recovery requires the TWAI controller to observe 128 occurrences of 11 consecutive Recessive bits on the bus. For example at 500 kbit/s, The recovery time is therefore greater than or equal to 11 * 128 * 2 μs = 2.816 ms. During recovery, the CAN controller is bus-off, but not in reset mode. You can test the bus-off state using the statusFlags method.
If the CAN Controller is not bus-off or not in reset mode, the method has no effect and returns false.

Added statusFlags method
This method returns four status flags:

  • bit0: 1 if the hardware receive buffer did overflow, 0 otherwise;
  • bit1: 1 if the driver receive buffer did overflow, 0 otherwise;
  • bit2: 1 if the CAN controller is bus-off, 0 otherwise;
  • bit3: 1 if the CAN controller is in reset mode, 0 otherwise;
  • bits 4-31: always 0.
    The value returned is therefore zero when there is no error.

Added functions for resetting buffer peak count

14 Feb 08:58
Compare
Choose a tag to compare

Added resetDriverTransmitBufferPeakCount and resetDriverReceiveBufferPeakCount methods in ACAN_ESP32 class.

Added CANMessage class union members

01 Oct 10:16
Compare
Choose a tag to compare

Added data_s64, data_s32, data_s16 and data_s8 to CANMessage class union members (thanks to tomtom0707).

Corrected typo in library description

14 Aug 09:16
Compare
Choose a tag to compare
1.0.4

Version 1.0.4 : Corrected typo in library description

Updated for ESP32 Arduino 2.0.0-rc1

13 Aug 12:50
Compare
Choose a tag to compare
1.03

Updated library.properties

Fixed tryToSend bug

26 Jun 16:24
Compare
Choose a tag to compare

Thanks to DirkMeintjies for reporting this bug.

Added reception filters

26 Apr 17:08
Compare
Choose a tag to compare
Release 1.0.1

Added reception filters