Home
last modified time | relevance | path

Searched refs:can_bytes_to_dlc (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/tests/drivers/can/api/src/
Dutilities.c51 zassert_equal(can_bytes_to_dlc(bytes), bytes, "wrong DLC for %u byte(s)", bytes); in ZTEST()
55 zassert_equal(can_bytes_to_dlc(12), 9, "wrong DLC for 12 bytes"); in ZTEST()
56 zassert_equal(can_bytes_to_dlc(16), 10, "wrong DLC for 16 bytes"); in ZTEST()
57 zassert_equal(can_bytes_to_dlc(20), 11, "wrong DLC for 20 bytes"); in ZTEST()
58 zassert_equal(can_bytes_to_dlc(24), 12, "wrong DLC for 24 bytes"); in ZTEST()
59 zassert_equal(can_bytes_to_dlc(32), 13, "wrong DLC for 32 bytes"); in ZTEST()
60 zassert_equal(can_bytes_to_dlc(48), 14, "wrong DLC for 48 bytes"); in ZTEST()
61 zassert_equal(can_bytes_to_dlc(64), 15, "wrong DLC for 64 bytes"); in ZTEST()
/Zephyr-latest/tests/drivers/can/shell/src/
Dmain.c384 .dlc = can_bytes_to_dlc(2), in ZTEST()
396 .dlc = can_bytes_to_dlc(4), in ZTEST()
408 .dlc = can_bytes_to_dlc(0), in ZTEST()
420 .dlc = can_bytes_to_dlc(0), in ZTEST()
432 .dlc = can_bytes_to_dlc(8), in ZTEST()
444 .dlc = can_bytes_to_dlc(7), in ZTEST()
456 .dlc = can_bytes_to_dlc(0), in ZTEST()
/Zephyr-latest/tests/net/socket/can/src/
Dmain.c32 expected.dlc = can_bytes_to_dlc(sizeof(data)); in ZTEST()
74 zframe.dlc = can_bytes_to_dlc(sizeof(data)); in ZTEST()
/Zephyr-latest/include/zephyr/net/
Dsocketcan_utils.h45 zframe->dlc = can_bytes_to_dlc(sframe->len); in socketcan_to_can_frame()
/Zephyr-latest/subsys/canbus/isotp/
Disotp.c159 frame.dlc = can_bytes_to_dlc(ISOTP_PADDED_FRAME_DL_MIN); in receive_send_fc()
161 frame.dlc = can_bytes_to_dlc(payload_len); in receive_send_fc()
933 frame.dlc = can_bytes_to_dlc( in send_sf()
938 frame.dlc = can_bytes_to_dlc(len + index); in send_sf()
956 frame.dlc = can_bytes_to_dlc(sctx->tx_addr.dl); in send_ff()
1016 frame.dlc = can_bytes_to_dlc( in send_cf()
1021 frame.dlc = can_bytes_to_dlc(len + index); in send_cf()
/Zephyr-latest/tests/subsys/canbus/isotp/conformance/src/
Dmain.c272 frame.dlc = can_bytes_to_dlc(desired->length); in send_frame_series()
292 zassert_equal(frame.dlc, can_bytes_to_dlc(desired->length), in check_frame_series()
294 i, can_bytes_to_dlc(desired->length), frame.dlc); in check_frame_series()
379 uint8_t padded_dlc = can_bytes_to_dlc(MAX(8, remaining_length + 1)); in prepare_cf_frames()
/Zephyr-latest/include/zephyr/drivers/
Dcan.h1697 static inline uint8_t can_bytes_to_dlc(uint8_t num_bytes) in can_bytes_to_dlc() function
/Zephyr-latest/drivers/can/
Dcan_mcp251xfd.c1440 can_bytes_to_dlc(MCP251XFD_PAYLOAD_SIZE) - 8); in mcp251xfd_init_tx_queue()
1458 can_bytes_to_dlc(MCP251XFD_PAYLOAD_SIZE) - 8); in mcp251xfd_init_rx_fifo()
Dcan_shell.c798 frame.dlc = can_bytes_to_dlc(nbytes); in cmd_can_send()
Dcan_renesas_ra.c348 .dlc = can_bytes_to_dlc(p_args->frame.data_length_code), in can_renesas_ra_call_rx_cb()