Skip to content

Commit

Permalink
add multiFilter to the api doc
Browse files Browse the repository at this point in the history
  • Loading branch information
M4GNV5 committed May 31, 2019
1 parent 56df49c commit c47b9ee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,18 @@ if ((packetId & mask) == id) {

Returns `1` on success, `0` on failure.

### Advanced Filtering

```
CAN.multiFilter(ids, count);
```

* `ids` - array of 11-bit ids
* `count` - count of entries in `ids`

Only packets with an id in `ids` are acknowleged and received, other packets are ignored.
If `count` is larger than the filters supported by your CAN hardware additional frame ids might be received.

## Other modes

### Loopback mode
Expand Down

0 comments on commit c47b9ee

Please sign in to comment.