Files
giesCANne/can_structs.h
T

30 lines
361 B
C++

#ifndef CAN_STRUCTS_H
#define CAN_STRUCTS_H
#include <stdint.h>
struct CANFrame
{
public:
int ID;
int bus;
bool extended;
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