Home
last modified time | relevance | path

Searched refs:dlc (Results 1 – 4 of 4) sorted by relevance

/device/soc/esp/esp32/components/hal/esp32/include/hal/
Dtwai_ll.h65 uint8_t dlc: 4; //Data length code (0 to 8) of the frame member
635 static inline void twai_ll_format_frame_buffer(uint32_t id, uint8_t dlc, const uint8_t *data, in twai_ll_format_frame_buffer() argument
642 tx_frame->dlc = dlc; in twai_ll_format_frame_buffer()
663 for (int i = 0; (i < dlc) && (i < TWAI_FRAME_MAX_DLC); i++) { in twai_ll_format_frame_buffer()
678 …nline void twai_ll_prase_frame_buffer(twai_ll_frame_buffer_t *rx_frame, uint32_t *id, uint8_t *dlc, in twai_ll_prase_frame_buffer() argument
682 *dlc = rx_frame->dlc; in twai_ll_prase_frame_buffer()
686 flags_temp |= (rx_frame->dlc > TWAI_FRAME_MAX_DLC) ? TWAI_MSG_FLAG_DLC_NON_COMP : 0; in twai_ll_prase_frame_buffer()
708 …a_length = (rx_frame->rtr) ? 0 : ((rx_frame->dlc > TWAI_FRAME_MAX_DLC) ? TWAI_FRAME_MAX_DLC : rx_f… in twai_ll_prase_frame_buffer()
Dcan_ll.h221 static inline void can_ll_format_frame_buffer(uint32_t id, uint8_t dlc, const uint8_t *data, in can_ll_format_frame_buffer() argument
224 twai_ll_format_frame_buffer(id, dlc, data, flags, tx_frame); in can_ll_format_frame_buffer()
227 … inline void can_ll_prase_frame_buffer(can_ll_frame_buffer_t *rx_frame, uint32_t *id, uint8_t *dlc, in can_ll_prase_frame_buffer() argument
230 twai_ll_prase_frame_buffer(rx_frame, id, dlc, data, flags); in can_ll_prase_frame_buffer()
/device/soc/hpmicro/sdk/hpm_sdk/drivers/src/
Dhpm_can_drv.c130 static uint8_t can_get_data_words_from_dlc(uint32_t dlc);
316 static uint8_t can_get_data_words_from_dlc(uint32_t dlc) in can_get_data_words_from_dlc() argument
320 dlc &= 0xFU; in can_get_data_words_from_dlc()
321 if (dlc <= 8U) { in can_get_data_words_from_dlc()
322 copy_words = (dlc + 3U) / sizeof(uint32_t); in can_get_data_words_from_dlc()
324 switch (dlc) { in can_get_data_words_from_dlc()
360 uint32_t copy_words = can_get_data_words_from_dlc(message->dlc); in can_fill_tx_buffer()
528 uint32_t copy_words = can_get_data_words_from_dlc(message->dlc); in can_receive_message_blocking()
580 uint32_t copy_words = can_get_data_words_from_dlc(message->dlc); in can_read_received_message()
/device/soc/hpmicro/sdk/hpm_sdk/drivers/inc/
Dhpm_can_drv.h162 uint32_t dlc: 4; /**< Data length option */ member
188 uint32_t dlc: 4; /**< Data length option */ member