Searched refs:can_id (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/include/zephyr/net/ |
D | socketcan_utils.h | 40 zframe->flags |= (sframe->can_id & BIT(31)) != 0 ? CAN_FRAME_IDE : 0; in socketcan_to_can_frame() 41 zframe->flags |= (sframe->can_id & BIT(30)) != 0 ? CAN_FRAME_RTR : 0; in socketcan_to_can_frame() 44 zframe->id = sframe->can_id & BIT_MASK(29); in socketcan_to_can_frame() 64 sframe->can_id = zframe->id; in socketcan_from_can_frame() 65 sframe->can_id |= (zframe->flags & CAN_FRAME_IDE) != 0 ? BIT(31) : 0; in socketcan_from_can_frame() 66 sframe->can_id |= (zframe->flags & CAN_FRAME_RTR) != 0 ? BIT(30) : 0; in socketcan_from_can_frame() 94 zfilter->flags |= (sfilter->can_id & BIT(31)) != 0 ? CAN_FILTER_IDE : 0; in socketcan_to_can_filter() 95 zfilter->id = sfilter->can_id & BIT_MASK(29); in socketcan_to_can_filter() 110 sfilter->can_id = zfilter->id; in socketcan_from_can_filter() 111 sfilter->can_id |= (zfilter->flags & CAN_FILTER_IDE) != 0 ? BIT(31) : 0; in socketcan_from_can_filter()
|
D | socketcan.h | 114 socketcan_id_t can_id; member 135 socketcan_id_t can_id; member
|
/Zephyr-latest/tests/net/socket/can/src/ |
D | main.c | 26 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) | 1234; in ZTEST() 131 expected.can_id = BIT(31) | 1234; in ZTEST() 147 zassert_equal(sfilter.can_id, expected.can_id, "CAN ID not same"); in ZTEST()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | sockets_can.c | 34 socketcan_id_t can_id; 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() 386 (UNALIGNED_GET(&sfilter->can_id) & in is_already_attached() 424 sfilter.can_id = receivers[i].can_id; in can_close_socket() 544 socketcan_id_t can_id, socketcan_id_t can_mask) in can_register_receiver() argument 557 receivers[i].can_id = can_id; in can_register_receiver() 568 socketcan_id_t can_id, socketcan_id_t can_mask) in can_unregister_receiver() argument 575 receivers[i].can_id == can_id && in can_unregister_receiver() [all …]
|
/Zephyr-latest/tests/drivers/can/host/pytest/ |
D | can_shell.py | 111 def _add_filter(self, can_id: int, can_mask: int, extended: bool) -> None: 163 can_id = can_filter['can_id'] 166 self._add_filter(can_id, can_mask, extended) 178 can_id = int(m.group('can_id'), 16) 185 msg = Message(arbitration_id=can_id,is_extended_id=ext,
|