Also added UDS decoding to the ISOTP window. An attempt is made to see if a frame looks like UDS and then it is decoded. Also, some code clean up to remove some compiler warnings. There's a LONG way to go still.
20 lines
295 B
C++
20 lines
295 B
C++
#ifndef CANFILTER_H
|
|
#define CANFILTER_H
|
|
|
|
#include <stdint.h>
|
|
|
|
class CANFilter
|
|
{
|
|
public:
|
|
CANFilter();
|
|
void setFilter(uint32_t id, uint32_t mask, int bus);
|
|
bool checkFilter(uint32_t id, int bus);
|
|
|
|
public:
|
|
uint32_t ID;
|
|
uint32_t mask;
|
|
uint32_t bus;
|
|
};
|
|
|
|
#endif // CANFILTER_H
|