Searched refs:can_dlc_to_bytes (Results 1 – 14 of 14) sorted by relevance
/Zephyr-latest/tests/drivers/can/api/src/ |
D | utilities.c | 29 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()
|
D | common.c | 221 zassert_mem_equal(frame1->data, frame2->data, can_dlc_to_bytes(frame1->dlc), in assert_frame_equal()
|
/Zephyr-latest/include/zephyr/net/ |
D | socketcan_utils.h | 67 sframe->len = can_dlc_to_bytes(zframe->dlc); in socketcan_from_can_frame()
|
/Zephyr-latest/tests/net/socket/can/src/ |
D | main.c | 44 zassert_mem_equal(&zframe.data, &expected.data, can_dlc_to_bytes(expected.dlc), in ZTEST()
|
/Zephyr-latest/drivers/can/ |
D | can_nxp_s32_canxl.c | 579 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()
|
D | can_mcp251xfd.c | 54 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()
|
D | can_mcan.c | 744 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()
|
D | can_shell.c | 88 uint8_t nbytes = can_dlc_to_bytes(frame->dlc); in can_shell_print_frame()
|
D | can_xmc4xxx.c | 153 LOG_DBG("Sending %d bytes. Id: 0x%x, ID type: %s %s %s %s", can_dlc_to_bytes(msg->dlc), in can_xmc4xxx_send()
|
D | can_renesas_ra.c | 608 .data_length_code = can_dlc_to_bytes(frame->dlc), in can_renesas_ra_send()
|
/Zephyr-latest/subsys/canbus/isotp/ |
D | isotp.c | 386 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/ |
D | main.c | 53 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/ |
D | main.c | 380 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/ |
D | can.h | 1682 static inline uint8_t can_dlc_to_bytes(uint8_t dlc) in can_dlc_to_bytes() function
|