Lines Matching +full:bitrate +full:- +full:data
5 * SPDX-License-Identifier: Apache-2.0
27 zassert_equal(frame->id, TEST_CAN_STD_ID_1, "ID does not match"); in tx_std_callback_1()
37 zassert_equal(frame->id, TEST_CAN_STD_ID_2, "ID does not match"); in tx_std_callback_2()
100 zassert_not_equal(err, -EBUSY, "arbitration lost in loopback mode"); in send_test_frame()
120 zassert_not_equal(err, -EBUSY, "arbitration lost in loopback mode"); in send_test_frame_nowait()
137 zassert_not_equal(filter_id, -ENOSPC, "no filters available"); in add_rx_msgq()
161 zassert_not_equal(filter_id, -ENOSPC, "no filters available"); in add_rx_filter()
196 if ((frame1->flags & CAN_FRAME_FDF) != 0) { in send_receive()
202 if ((frame2->flags & CAN_FRAME_FDF) != 0) { in send_receive()
256 zassert_equal(err, -EINVAL, "wrong error on sending invalid frame (err %d)", err); in ZTEST()
262 * CAN FD Error State Indicator (ESI) indicates that the transmitting node is in error-passive
275 zassert_equal(err, -ENOTSUP, "wrong error on sending invalid frame (err %d)", err); in ZTEST()
279 * @brief Test send/receive with standard (11-bit) CAN IDs and classic CAN frames.
288 * @brief Test send/receive with standard (11-bit) CAN IDs and CAN FD frames.
297 * @brief Test send/receive with (11-bit) CAN IDs, mixed classic and CAN FD frames.
387 zassert_equal(err, 0, "failed to set loopback-mode (err %d)", err); in check_filters_preserved_between_modes()
416 * @brief Test that the minimum timing values for the data phase can be set.
426 zassert_equal(err, 0, "failed to set minimum timing data parameters (err %d)", err); in ZTEST_USER()
429 zassert_equal(err, 0, "failed to restore default data bitrate"); in ZTEST_USER()
436 * @brief Test setting a too low data phase bitrate.
450 err = can_set_bitrate_data(can_dev, min - 1); in ZTEST_USER()
451 zassert_equal(err, -ENOTSUP, "too low data phase bitrate accepted"); in ZTEST_USER()
454 zassert_equal(err, 0, "failed to restore default data bitrate"); in ZTEST_USER()
461 * @brief Test setting a too high data phase bitrate.
472 zassert_equal(err, -ENOTSUP, "too high data phase bitrate accepted"); in ZTEST_USER()
487 zassert_equal(err, -EINVAL, "invalid sample point of 100.0% accepted (err %d)", err); in ZTEST_USER()
491 * @brief Test that the maximum timing values for the data phase can be set.
501 zassert_equal(err, 0, "failed to set maximum timing data parameters (err %d)", err); in ZTEST_USER()
504 zassert_equal(err, 0, "failed to restore default data bitrate"); in ZTEST_USER()
511 * @brief Test setting data phase bitrate is not allowed while started.
518 zassert_not_equal(err, 0, "changed data bitrate while started"); in ZTEST_USER()
519 zassert_equal(err, -EBUSY, "wrong error return code (err %d)", err); in ZTEST_USER()
523 * @brief Test setting data phase timing is not allowed while started.
531 zassert_ok(err, "failed to calculate data timing (err %d)", err); in ZTEST_USER()
534 zassert_not_equal(err, 0, "changed data timing while started"); in ZTEST_USER()
535 zassert_equal(err, -EBUSY, "wrong error return code (err %d)", err); in ZTEST_USER()