Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/hardware/peripherals/canbus/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ The filter for this example is configured to match the identifier 0x123 exactly.
const struct can_filter my_filter = {
.flags = CAN_FILTER_DATA,
.id = 0x123,
.id_mask = CAN_STD_ID_MASK
.mask = CAN_STD_ID_MASK
};
int filter_id;
const struct device *const can_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_canbus));
Expand All @@ -250,7 +250,7 @@ The filter for this example is configured to match the extended identifier
const struct can_filter my_filter = {
.flags = CAN_FILTER_DATA | CAN_FILTER_IDE,
.id = 0x1234567,
.id_mask = CAN_EXT_ID_MASK
.mask = CAN_EXT_ID_MASK
};
CAN_MSGQ_DEFINE(my_can_msgq, 2);
struct can_frame rx_frame;
Expand Down