Skip to content

Commit c47b9ee

Browse files
committed
add multiFilter to the api doc
1 parent 56df49c commit c47b9ee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

API.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,18 @@ if ((packetId & mask) == id) {
247247

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

250+
### Advanced Filtering
251+
252+
```
253+
CAN.multiFilter(ids, count);
254+
```
255+
256+
* `ids` - array of 11-bit ids
257+
* `count` - count of entries in `ids`
258+
259+
Only packets with an id in `ids` are acknowleged and received, other packets are ignored.
260+
If `count` is larger than the filters supported by your CAN hardware additional frame ids might be received.
261+
250262
## Other modes
251263

252264
### Loopback mode

0 commit comments

Comments
 (0)