Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/tests/subsys/canbus/frame/src/
Dmain.c27 frame.can_id = BIT(31) | BIT(30) | 1234; in test_can_frame_to_zcan_frame()
56 expected.can_id = BIT(31) | BIT(30) | 1234; in test_zcan_frame_to_can_frame()
72 zassert_equal(frame.can_id, expected.can_id, "CAN ID not same"); in test_zcan_frame_to_can_frame()
85 filter.can_id = BIT(31) | BIT(30) | 1234; in test_can_filter_to_zcan_filter()
118 expected.can_id = BIT(31) | BIT(30) | 1234; in test_zcan_filter_to_can_filter()
134 zassert_equal(filter.can_id, expected.can_id, "CAN ID not same"); in test_zcan_filter_to_can_filter()
/Zephyr-Core-2.7.6/subsys/net/lib/sockets/
Dsockets_can.c31 canid_t can_id; member
107 if ((frame.can_id & receivers[i].can_mask) != in zcan_received_cb()
108 (receivers[i].can_id & receivers[i].can_mask)) { in zcan_received_cb()
354 ((receivers[i].can_id & receivers[i].can_mask) == in is_already_attached()
355 (UNALIGNED_GET(&filter->can_id) & in is_already_attached()
393 filter.can_id = receivers[i].can_id; in can_close_socket()
513 canid_t can_id, canid_t can_mask) in can_register_receiver() argument
526 receivers[i].can_id = can_id; in can_register_receiver()
537 canid_t can_id, canid_t can_mask) in can_unregister_receiver() argument
544 receivers[i].can_id == can_id && in can_unregister_receiver()
[all …]
/Zephyr-Core-2.7.6/include/drivers/
Dcan.h152 canid_t can_id; member
174 canid_t can_id; member
911 zframe->id_type = (frame->can_id & BIT(31)) >> 31; in can_copy_frame_to_zframe()
912 zframe->rtr = (frame->can_id & BIT(30)) >> 30; in can_copy_frame_to_zframe()
913 zframe->id = frame->can_id & BIT_MASK(29); in can_copy_frame_to_zframe()
927 frame->can_id = (zframe->id_type << 31) | (zframe->rtr << 30) | in can_copy_zframe_to_frame()
944 zfilter->id_type = (filter->can_id & BIT(31)) >> 31; in can_copy_filter_to_zfilter()
945 zfilter->rtr = (filter->can_id & BIT(30)) >> 30; in can_copy_filter_to_zfilter()
946 zfilter->id = filter->can_id & BIT_MASK(29); in can_copy_filter_to_zfilter()
962 filter->can_id = (zfilter->id_type << 31) | in can_copy_zfilter_to_filter()