Skip to content

Commit

Permalink
Version 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pierremolinaro committed Oct 1, 2021
1 parent 076e586 commit 90c808e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Binary file modified extras/acan-esp32.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ACAN_ESP32
version=1.0.4
version=1.0.5
author=Mohamed Irfanulla, Pierre Molinaro
maintainer=Pierre Molinaro <[email protected]>
sentence=An ESP32 CAN Driver.
Expand Down
10 changes: 7 additions & 3 deletions src/CANMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ class CANMessage {
public : uint8_t len = 0 ; // Length of data (0 ... 8)
public : union {
uint64_t data64 ; // Caution: subject to endianness
uint32_t data32 [2] ; // Caution: subject to endianness
uint16_t data16 [4] ; // Caution: subject to endianness
int64_t data_s64 ; // Caution: subject to endianness
uint32_t data32 [2] ; // Caution: subject to endianness
int32_t data_s32 [2] ; // Caution: subject to endianness
float dataFloat [2] ; // Caution: subject to endianness
uint8_t data [8] = {0, 0, 0, 0, 0, 0, 0, 0} ;
uint16_t data16 [4] ; // Caution: subject to endianness
int16_t data_s16 [4] ; // Caution: subject to endianness
int8_t data_s8 [8] ;
uint8_t data [8] = {0, 0, 0, 0, 0, 0, 0, 0} ;
} ;
} ;

Expand Down

0 comments on commit 90c808e

Please sign in to comment.