Home
last modified time | relevance | path

Searched refs:can_mask (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/include/zephyr/net/
Dsocketcan_utils.h96 zfilter->mask = sfilter->can_mask & BIT_MASK(29); in socketcan_to_can_filter()
113 sfilter->can_mask = zfilter->mask; in socketcan_from_can_filter()
114 sfilter->can_mask |= (zfilter->flags & CAN_FILTER_IDE) != 0 ? BIT(31) : 0; in socketcan_from_can_filter()
117 sfilter->can_mask |= BIT(30); in socketcan_from_can_filter()
Dsocketcan.h137 socketcan_id_t can_mask; member
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_can.c35 socketcan_id_t can_mask; member
115 if ((sframe.can_id & receivers[i].can_mask) != in zcan_received_cb()
116 (receivers[i].can_id & receivers[i].can_mask)) { in zcan_received_cb()
385 ((receivers[i].can_id & receivers[i].can_mask) == in is_already_attached()
387 UNALIGNED_GET(&sfilter->can_mask)))) { in is_already_attached()
425 sfilter.can_mask = receivers[i].can_mask; in can_close_socket()
544 socketcan_id_t can_id, socketcan_id_t can_mask) in can_register_receiver() argument
558 receivers[i].can_mask = can_mask; in can_register_receiver()
568 socketcan_id_t can_id, socketcan_id_t can_mask) in can_unregister_receiver() argument
576 receivers[i].can_mask == can_mask) { in can_unregister_receiver()
[all …]
/Zephyr-latest/tests/net/socket/can/src/
Dmain.c105 sfilter.can_mask = BIT(31) | 1234; in ZTEST()
132 expected.can_mask = BIT(31) | 1234; in ZTEST()
134 expected.can_mask |= BIT(30); in ZTEST()
148 zassert_equal(sfilter.can_mask, expected.can_mask, "CAN mask not same"); in ZTEST()
/Zephyr-latest/tests/drivers/can/host/pytest/
Dcan_shell.py111 def _add_filter(self, can_id: int, can_mask: int, extended: bool) -> None:
164 can_mask = can_filter['can_mask']
166 self._add_filter(can_id, can_mask, extended)