Skip to content

Instantly share code, notes, and snippets.

@rechargecar
Created November 30, 2012 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rechargecar/4174598 to your computer and use it in GitHub Desktop.
Save rechargecar/4174598 to your computer and use it in GitHub Desktop.
CAN Frame struct
typedef struct
{
unsigned long id; // EID if ide set, SID otherwise
byte srr; // Standard Frame Remote Transmit Request
byte rtr; // Remote Transmission Request
byte ide; // Extended ID flag
byte dlc; // Number of data bytes
byte data[8]; // Data bytes
} Frame;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment