Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/include/zephyr/net/
Dsocketcan_utils.h97 zfilter->mask = sfilter->can_mask & BIT_MASK(29); in socketcan_to_can_filter()
100 if ((sfilter->can_mask & BIT(30)) == 0) { in socketcan_to_can_filter()
124 sfilter->can_mask = zfilter->mask; in socketcan_from_can_filter()
125 sfilter->can_mask |= (zfilter->flags & CAN_FILTER_IDE) != 0 ? BIT(31) : 0; in socketcan_from_can_filter()
129 sfilter->can_mask |= BIT(30); in socketcan_from_can_filter()
Dsocketcan.h126 socketcan_id_t can_mask; member
/Zephyr-Core-3.5.0/subsys/net/lib/sockets/
Dsockets_can.c39 socketcan_id_t can_mask; member
119 if ((sframe.can_id & receivers[i].can_mask) != in zcan_received_cb()
120 (receivers[i].can_id & receivers[i].can_mask)) { in zcan_received_cb()
389 ((receivers[i].can_id & receivers[i].can_mask) == in is_already_attached()
391 UNALIGNED_GET(&sfilter->can_mask)))) { in is_already_attached()
429 sfilter.can_mask = receivers[i].can_mask; in can_close_socket()
548 socketcan_id_t can_id, socketcan_id_t can_mask) in can_register_receiver() argument
562 receivers[i].can_mask = can_mask; in can_register_receiver()
572 socketcan_id_t can_id, socketcan_id_t can_mask) in can_unregister_receiver() argument
580 receivers[i].can_mask == can_mask) { in can_unregister_receiver()
[all …]
/Zephyr-Core-3.5.0/tests/net/socket/can/src/
Dmain.c105 sfilter.can_mask = BIT(31) | BIT(30) | 1234; in ZTEST()
132 expected.can_mask = BIT(31) | BIT(30) | 1234; in ZTEST()
145 zassert_equal(sfilter.can_mask, expected.can_mask, "CAN mask not same"); in ZTEST()