Home
last modified time | relevance | path

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

/Zephyr-latest/tests/net/socket/websocket/src/
Dmain.c75 static const unsigned char frame1[] = { variable
101 #define FRAME1_HDR_SIZE (sizeof(frame1) - (sizeof(frame1_msg) - 1))
117 memcpy(feed_buf, &frame1, sizeof(frame1)); in test_recv()
120 sizeof(frame1), FRAME1_HDR_SIZE); in test_recv()
123 for (i = 0; i < sizeof(frame1) / count; i++) { in test_recv()
138 left = sizeof(frame1) % count; in test_recv()
141 ret = test_recv_buf(&feed_buf[sizeof(frame1) - left], left, in test_recv()
148 zassert_equal(total_read, sizeof(frame1) - FRAME1_HDR_SIZE, in test_recv()
151 } else if (total_read < (sizeof(frame1) - FRAME1_HDR_SIZE)) { in test_recv()
157 sizeof(frame1) - FRAME1_HDR_SIZE - total_read, in test_recv()
[all …]
/Zephyr-latest/tests/drivers/can/api/src/
Dcommon.c212 void assert_frame_equal(const struct can_frame *frame1, in assert_frame_equal() argument
216 zassert_equal(frame1->flags, frame2->flags, "Flags do not match"); in assert_frame_equal()
217 zassert_equal(frame1->id | id_mask, frame2->id | id_mask, "ID does not match"); in assert_frame_equal()
218 zassert_equal(frame1->dlc, frame2->dlc, "DLC does not match"); in assert_frame_equal()
220 if ((frame1->flags & CAN_FRAME_RTR) == 0U) { in assert_frame_equal()
221 zassert_mem_equal(frame1->data, frame2->data, can_dlc_to_bytes(frame1->dlc), in assert_frame_equal()
Dcommon.h163 void assert_frame_equal(const struct can_frame *frame1,
Dcanfd.c177 const struct can_frame *frame1, in send_receive() argument
186 send_test_frame(can_dev, frame1); in send_receive()
191 assert_frame_equal(&frame_buffer, frame1, 0); in send_receive()
196 if ((frame1->flags & CAN_FRAME_FDF) != 0) { in send_receive()
208 send_test_frame_nowait(can_dev, frame1, tx_std_callback_1); in send_receive()
Dclassic.c307 const struct can_frame *frame1, in send_receive() argument
319 send_test_frame(can_dev, frame1); in send_receive()
334 assert_frame_equal(&frame_buffer, frame1, mask); in send_receive()
339 if ((frame1->flags & CAN_FRAME_IDE) != 0) { in send_receive()
343 send_test_frame_nowait(can_dev, frame1, tx_ext_callback_1); in send_receive()
348 send_test_frame_nowait(can_dev, frame1, tx_ext_callback_1); in send_receive()
355 send_test_frame_nowait(can_dev, frame1, tx_std_callback_1); in send_receive()
360 send_test_frame_nowait(can_dev, frame1, tx_std_callback_1); in send_receive()