Files
giesCANne/can_structs.h
T
Collin Kidder f6b5db9617 Added the ability to track which direction frames are coming from
(from us or to us), import that detail from file formats that support
it, save it to file formats that support it. Also some bug fixes.
2015-12-01 20:25:52 -05:00

31 lines
416 B
C++

#ifndef CAN_STRUCTS_H
#define CAN_STRUCTS_H
#include <stdint.h>
struct CANFrame
{
public:
int ID;
int bus;
bool extended;
bool isReceived; //did we receive this or send it?
int len;
unsigned char data[8];
uint64_t timestamp;
};
struct J1939ID
{
public:
int src;
int dest;
int pgn;
int pf;
int ps;
int priority;
bool isBroadcast;
};
#endif // CAN_STRUCTS_H