Skip to content

Commit d084641

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

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

API.md

+14
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,20 @@ 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+
262+
Returns `1` on success, `0` on failure.
263+
250264
## Other modes
251265

252266
### Loopback mode

0 commit comments

Comments
 (0)