Skip to content

Commit

Permalink
Version 1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
pierremolinaro committed Apr 27, 2020
1 parent 71cb601 commit dabae67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Binary file modified extras/acan2517.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=ACAN2517
version=1.1.6
version=1.1.7
author=Pierre Molinaro
maintainer=Pierre Molinaro <[email protected]>
sentence=Driver for the MCP2517FD and the MCP2518FD CAN Controllers (CAN 2.0B mode)
Expand Down
7 changes: 4 additions & 3 deletions src/CANMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ class CANMessage {
public : uint8_t idx = 0 ; // This field is used by the driver
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
uint64_t data64 ; // Caution: subject to endianness
uint32_t data32 [2] ; // Caution: subject to endianness
uint16_t data16 [4] ; // Caution: subject to endianness
float dataFloat [2] ; // Caution: subject to endianness
uint8_t data [8] = {0, 0, 0, 0, 0, 0, 0, 0} ;
} ;
} ;
Expand Down

0 comments on commit dabae67

Please sign in to comment.