Lines Matching refs:frame
22 const struct can_frame *frame = user_data; in tx_std_callback_1() local
27 zassert_equal(frame->id, TEST_CAN_STD_ID_1, "ID does not match"); in tx_std_callback_1()
32 const struct can_frame *frame = user_data; in tx_std_callback_2() local
37 zassert_equal(frame->id, TEST_CAN_STD_ID_2, "ID does not match"); in tx_std_callback_2()
40 static void rx_std_callback_1(const struct device *dev, struct can_frame *frame, void *user_data) in rx_std_callback_1() argument
44 assert_frame_equal(frame, &test_std_frame_1, 0); in rx_std_callback_1()
51 static void rx_std_callback_2(const struct device *dev, struct can_frame *frame, void *user_data) in rx_std_callback_2() argument
55 assert_frame_equal(frame, &test_std_frame_2, 0); in rx_std_callback_2()
62 static void rx_std_callback_fd_1(const struct device *dev, struct can_frame *frame, in rx_std_callback_fd_1() argument
67 assert_frame_equal(frame, &test_std_fdf_frame_1, 0); in rx_std_callback_fd_1()
74 static void rx_std_callback_fd_2(const struct device *dev, struct can_frame *frame, in rx_std_callback_fd_2() argument
79 assert_frame_equal(frame, &test_std_fdf_frame_2, 0); in rx_std_callback_fd_2()
95 static void send_test_frame(const struct device *dev, const struct can_frame *frame) in send_test_frame() argument
99 err = can_send(dev, frame, TEST_SEND_TIMEOUT, NULL, NULL); in send_test_frame()
114 static void send_test_frame_nowait(const struct device *dev, const struct can_frame *frame, in send_test_frame_nowait() argument
119 err = can_send(dev, frame, TEST_SEND_TIMEOUT, callback, (void *)frame); in send_test_frame_nowait()
246 struct can_frame frame = { in ZTEST() local
255 err = can_send(can_dev, &frame, TEST_SEND_TIMEOUT, NULL, NULL); in ZTEST()
267 struct can_frame frame = { in ZTEST() local
274 err = can_send(can_dev, &frame, TEST_SEND_TIMEOUT, NULL, NULL); in ZTEST()
310 struct can_frame frame; in check_filters_preserved_between_modes() local
337 err = k_msgq_get(&can_msgq, &frame, TEST_RECEIVE_TIMEOUT); in check_filters_preserved_between_modes()
339 assert_frame_equal(&frame, &test_std_frame_1, 0); in check_filters_preserved_between_modes()
344 err = k_msgq_get(&can_msgq, &frame, TEST_RECEIVE_TIMEOUT); in check_filters_preserved_between_modes()
346 assert_frame_equal(&frame, &test_std_fdf_frame_2, 0); in check_filters_preserved_between_modes()
366 err = k_msgq_get(&can_msgq, &frame, TEST_RECEIVE_TIMEOUT); in check_filters_preserved_between_modes()
368 assert_frame_equal(&frame, &test_std_frame_1, 0); in check_filters_preserved_between_modes()
373 err = k_msgq_get(&can_msgq, &frame, TEST_RECEIVE_TIMEOUT); in check_filters_preserved_between_modes()
375 assert_frame_equal(&frame, &test_std_fdf_frame_2, 0); in check_filters_preserved_between_modes()