Lines Matching full:can
8 #include <zephyr/drivers/can.h>
26 zassert_equal(dev, can_dev, "CAN device does not match"); in tx_std_callback_1()
36 zassert_equal(dev, can_dev, "CAN device does not match"); in tx_std_callback_2()
45 zassert_equal(dev, can_dev, "CAN device does not match"); in rx_std_callback_1()
56 zassert_equal(dev, can_dev, "CAN device does not match"); in rx_std_callback_2()
68 zassert_equal(dev, can_dev, "CAN device does not match"); in rx_std_callback_fd_1()
80 zassert_equal(dev, can_dev, "CAN device does not match"); in rx_std_callback_fd_2()
87 * @brief Send a CAN test frame with asserts.
93 * @param frame Pointer to the CAN frame to send.
105 * @brief Send a CAN test frame with asserts.
111 * @param frame Pointer to the CAN frame to send.
125 * @brief Add a CAN message queue with asserts.
128 * @param filter CAN filter for the CAN message queue.
130 * @return CAN filter ID.
144 * @brief Add a CAN filter with asserts.
147 * @param filter CAN filter.
150 * @return CAN filter ID.
168 * @brief Perform a send/receive test with a set of CAN ID filters and CAN frames.
170 * @param filter1 CAN filter 1
171 * @param filter2 CAN filter 2
172 * @param frame1 CAN frame 1
173 * @param frame2 CAN frame 2
228 * @brief Test getting the CAN controller capabilities.
236 zassert_equal(err, 0, "failed to get CAN capabilities (err %d)", err); in ZTEST()
238 "CAN FD loopback mode not supported"); in ZTEST()
242 * @brief Test sending CAN FD frame with too big payload.
260 * @brief Test error when CAN FD Error State Indicator (ESI) is set on transmit frame.
262 * CAN FD Error State Indicator (ESI) indicates that the transmitting node is in error-passive
263 * state, but should never be set explicitly. Setting it is handled in the CAN controller hardware.
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.
306 * @brief Test that CAN RX filters are preserved through CAN controller mode changes.
318 zassert_equal(err, 0, "failed to stop CAN controller (err %d)", err); in check_filters_preserved_between_modes()
321 zassert_equal(err, 0, "failed to get CAN state (err %d)", err); in check_filters_preserved_between_modes()
322 zassert_equal(state, CAN_STATE_STOPPED, "CAN controller not stopped"); in check_filters_preserved_between_modes()
329 zassert_equal(err, 0, "failed to start CAN controller (err %d)", err); in check_filters_preserved_between_modes()
331 /* Add classic CAN and CAN FD filter */ in check_filters_preserved_between_modes()
342 /* Verify CAN FD filter in first mode */ in check_filters_preserved_between_modes()
351 zassert_equal(err, 0, "failed to stop CAN controller (err %d)", err); in check_filters_preserved_between_modes()
354 zassert_equal(err, 0, "failed to get CAN state (err %d)", err); in check_filters_preserved_between_modes()
355 zassert_equal(state, CAN_STATE_STOPPED, "CAN controller not stopped"); in check_filters_preserved_between_modes()
362 zassert_equal(err, 0, "failed to start CAN controller (err %d)", err); in check_filters_preserved_between_modes()
371 /* Verify CAN FD filter in second mode */ in check_filters_preserved_between_modes()
378 /* Stop controller and restore CAN FD loopback mode */ in check_filters_preserved_between_modes()
380 zassert_equal(err, 0, "failed to stop CAN controller (err %d)", err); in check_filters_preserved_between_modes()
383 zassert_equal(err, 0, "failed to get CAN state (err %d)", err); in check_filters_preserved_between_modes()
384 zassert_equal(state, CAN_STATE_STOPPED, "CAN controller not stopped"); in check_filters_preserved_between_modes()
391 zassert_equal(err, 0, "failed to start CAN controller (err %d)", err); in check_filters_preserved_between_modes()
398 * @brief Test that CAN RX filters are preserved through CAN controller mode changes between classic
399 * CAN and CAN FD.
407 * @brief Test that CAN RX filters are preserved through CAN controller mode changes between CAN FD
408 * and classic CAN.
416 * @brief Test that the minimum timing values for the data phase can be set.
423 zassert_equal(err, 0, "failed to stop CAN controller (err %d)", err); in ZTEST_USER()
432 zassert_equal(err, 0, "failed to start CAN controller (err %d)", err); in ZTEST_USER()
448 zassert_equal(err, 0, "failed to stop CAN controller (err %d)", err); in ZTEST_USER()
457 zassert_equal(err, 0, "failed to start CAN controller (err %d)", err); in ZTEST_USER()
469 zassert_equal(err, 0, "failed to stop CAN controller (err %d)", err); in ZTEST_USER()
475 zassert_equal(err, 0, "failed to start CAN controller (err %d)", err); in ZTEST_USER()
491 * @brief Test that the maximum timing values for the data phase can be set.
498 zassert_equal(err, 0, "failed to stop CAN controller (err %d)", err); in ZTEST_USER()
507 zassert_equal(err, 0, "failed to start CAN controller (err %d)", err); in ZTEST_USER()
546 TC_PRINT("CAN device not ready"); in canfd_predicate()
551 zassert_equal(err, 0, "failed to get CAN controller capabilities (err %d)", err); in canfd_predicate()