Home
last modified time | relevance | path

Searched refs:can_dlc_to_bytes (Results 1 – 14 of 14) sorted by relevance

/Zephyr-latest/tests/drivers/can/api/src/
Dutilities.c29 zassert_equal(can_dlc_to_bytes(dlc), dlc, "wrong number of bytes for DLC %u", dlc); in ZTEST()
33 zassert_equal(can_dlc_to_bytes(9), 12, "wrong number of bytes for DLC 9"); in ZTEST()
34 zassert_equal(can_dlc_to_bytes(10), 16, "wrong number of bytes for DLC 10"); in ZTEST()
35 zassert_equal(can_dlc_to_bytes(11), 20, "wrong number of bytes for DLC 11"); in ZTEST()
36 zassert_equal(can_dlc_to_bytes(12), 24, "wrong number of bytes for DLC 12"); in ZTEST()
37 zassert_equal(can_dlc_to_bytes(13), 32, "wrong number of bytes for DLC 13"); in ZTEST()
38 zassert_equal(can_dlc_to_bytes(14), 48, "wrong number of bytes for DLC 14"); in ZTEST()
39 zassert_equal(can_dlc_to_bytes(15), 64, "wrong number of bytes for DLC 15"); in ZTEST()
Dcommon.c221 zassert_mem_equal(frame1->data, frame2->data, can_dlc_to_bytes(frame1->dlc), in assert_frame_equal()
/Zephyr-latest/include/zephyr/net/
Dsocketcan_utils.h67 sframe->len = can_dlc_to_bytes(zframe->dlc); in socketcan_from_can_frame()
/Zephyr-latest/tests/net/socket/can/src/
Dmain.c44 zassert_mem_equal(&zframe.data, &expected.data, can_dlc_to_bytes(expected.dlc), in ZTEST()
/Zephyr-latest/drivers/can/
Dcan_nxp_s32_canxl.c579 uint8_t data_length = can_dlc_to_bytes(frame->dlc); in can_nxp_s32_send()
862 memcpy(frame->data, msg_data.data, can_dlc_to_bytes(frame->dlc)); in nxp_s32_msg_data_to_zcan_frame()
906 dev->name, can_dlc_to_bytes(frame.dlc), in can_nxp_s32_ctrl_callback()
930 dev->name, can_dlc_to_bytes(frame.dlc), in can_nxp_s32_ctrl_callback()
Dcan_mcp251xfd.c54 memcpy(dst->data, src->data, MIN(can_dlc_to_bytes(src->dlc), CAN_MAX_DLEN)); in mcp251xfd_canframe_to_txobj()
188 tx_len += ROUND_UP(can_dlc_to_bytes(msg->dlc), MCP251XFD_RAM_ALIGNMENT); in mcp251xfd_fifo_write()
237 memcpy(dst->data, src->data, MIN(can_dlc_to_bytes(dst->dlc), CAN_MAX_DLEN)); in mcp251xfd_rxobj_to_canframe()
490 LOG_DBG("Sending %d bytes. Id: 0x%x, ID type: %s %s %s %s", can_dlc_to_bytes(msg->dlc), in mcp251xfd_send()
Dcan_mcan.c744 data_length = can_dlc_to_bytes(frame.dlc); in can_mcan_get_message()
910 size_t data_length = can_dlc_to_bytes(frame->dlc); in can_mcan_send()
Dcan_shell.c88 uint8_t nbytes = can_dlc_to_bytes(frame->dlc); in can_shell_print_frame()
Dcan_xmc4xxx.c153 LOG_DBG("Sending %d bytes. Id: 0x%x, ID type: %s %s %s %s", can_dlc_to_bytes(msg->dlc), in can_xmc4xxx_send()
Dcan_renesas_ra.c608 .data_length_code = can_dlc_to_bytes(frame->dlc), in can_renesas_ra_send()
/Zephyr-latest/subsys/canbus/isotp/
Disotp.c386 uint8_t can_dl = can_dlc_to_bytes(frame->dlc); in process_ff_sf()
489 uint8_t can_dl = can_dlc_to_bytes(frame->dlc); in process_cf()
936 can_dlc_to_bytes(frame.dlc) - len - index); in send_sf()
1019 can_dlc_to_bytes(frame.dlc) - len - index); in send_cf()
/Zephyr-latest/tests/drivers/can/shell/src/
Dmain.c53 zassert_mem_equal(f1->data, f2->data, can_dlc_to_bytes(f1->dlc), "data mismatch"); in assert_can_frame_equal()
/Zephyr-latest/tests/subsys/canbus/isotp/conformance/src/
Dmain.c380 uint8_t padded_len = can_dlc_to_bytes(padded_dlc); in prepare_cf_frames()
1043 zassert_equal(can_dlc_to_bytes(frame.dlc), 12, "Incorrect DLC"); in ZTEST()
/Zephyr-latest/include/zephyr/drivers/
Dcan.h1682 static inline uint8_t can_dlc_to_bytes(uint8_t dlc) in can_dlc_to_bytes() function