File: canfilter.h

package info (click to toggle)
savvycan 220-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,456 kB
  • sloc: cpp: 61,803; sh: 293; javascript: 91; python: 44; makefile: 8
file content (19 lines) | stat: -rw-r--r-- 290 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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;
    int bus;
};

#endif // CANFILTER_H