Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/include/zephyr/net/
Dsocketcan_utils.h41 zframe->flags |= (sframe->can_id & BIT(31)) != 0 ? CAN_FRAME_IDE : 0; in socketcan_to_can_frame()
42 zframe->flags |= (sframe->can_id & BIT(30)) != 0 ? CAN_FRAME_RTR : 0; in socketcan_to_can_frame()
45 zframe->id = sframe->can_id & BIT_MASK(29); in socketcan_to_can_frame()
65 sframe->can_id = zframe->id; in socketcan_from_can_frame()
66 sframe->can_id |= (zframe->flags & CAN_FRAME_IDE) != 0 ? BIT(31) : 0; in socketcan_from_can_frame()
67 sframe->can_id |= (zframe->flags & CAN_FRAME_RTR) != 0 ? BIT(30) : 0; in socketcan_from_can_frame()
95 zfilter->flags |= (sfilter->can_id & BIT(31)) != 0 ? CAN_FILTER_IDE : 0; in socketcan_to_can_filter()
96 zfilter->id = sfilter->can_id & BIT_MASK(29); in socketcan_to_can_filter()
102 } else if ((sfilter->can_id & BIT(30)) == 0) { in socketcan_to_can_filter()
120 sfilter->can_id = zfilter->id; in socketcan_from_can_filter()
[all …]
Dsocketcan.h103 socketcan_id_t can_id; member
124 socketcan_id_t can_id; member
/Zephyr-Core-3.5.0/tests/net/socket/can/src/
Dmain.c26 sframe.can_id = BIT(31) | 1234; in ZTEST()
48 sframe.can_id |= BIT(30); in ZTEST()
68 expected.can_id = BIT(31) | 1234; in ZTEST()
83 zassert_equal(sframe.can_id, expected.can_id, "CAN ID not same"); in ZTEST()
88 expected.can_id |= BIT(30); in ZTEST()
92 zassert_equal(sframe.can_id, expected.can_id, "CAN ID not same"); in ZTEST()
104 sfilter.can_id = BIT(31) | BIT(30) | 1234; in ZTEST()
131 expected.can_id = BIT(31) | BIT(30) | 1234; in ZTEST()
144 zassert_equal(sfilter.can_id, expected.can_id, "CAN ID not same"); in ZTEST()
/Zephyr-Core-3.5.0/subsys/net/lib/sockets/
Dsockets_can.c38 socketcan_id_t can_id; 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()
390 (UNALIGNED_GET(&sfilter->can_id) & in is_already_attached()
428 sfilter.can_id = receivers[i].can_id; in can_close_socket()
548 socketcan_id_t can_id, socketcan_id_t can_mask) in can_register_receiver() argument
561 receivers[i].can_id = can_id; in can_register_receiver()
572 socketcan_id_t can_id, socketcan_id_t can_mask) in can_unregister_receiver() argument
579 receivers[i].can_id == can_id && in can_unregister_receiver()
[all …]