Home
last modified time | relevance | path

Searched refs:CAN_FRAME_RTR (Results 1 – 23 of 23) sorted by relevance

/Zephyr-latest/include/zephyr/net/
Dsocketcan_utils.h41 zframe->flags |= (sframe->can_id & BIT(30)) != 0 ? CAN_FRAME_RTR : 0; in socketcan_to_can_frame()
47 if ((zframe->flags & CAN_FRAME_RTR) == 0U) { in socketcan_to_can_frame()
66 sframe->can_id |= (zframe->flags & CAN_FRAME_RTR) != 0 ? BIT(30) : 0; in socketcan_from_can_frame()
77 if ((zframe->flags & CAN_FRAME_RTR) == 0U) { in socketcan_from_can_frame()
/Zephyr-latest/tests/drivers/can/api/src/
Dcommon.c69 .flags = CAN_FRAME_RTR,
79 .flags = CAN_FRAME_IDE | CAN_FRAME_RTR,
220 if ((frame1->flags & CAN_FRAME_RTR) == 0U) { in assert_frame_equal()
/Zephyr-latest/samples/drivers/can/babbling/src/
Dmain.c103 frame.flags |= CAN_FRAME_RTR; in main()
117 (frame.flags & CAN_FRAME_RTR) != 0 ? 1 : 0, in main()
/Zephyr-latest/drivers/can/
Dcan_loopback.c57 (frame->flags & CAN_FRAME_RTR) != 0 ? ", RTR frame" : ""); in receive_frame()
86 if ((frame.frame.flags & CAN_FRAME_RTR) != 0U) { in tx_thread()
118 (frame->flags & CAN_FRAME_RTR) != 0 ? ", RTR frame" : ""); in can_loopback_send()
121 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR | in can_loopback_send()
135 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR)) != 0) { in can_loopback_send()
Dcan_native_linux.c113 if ((frame.flags & CAN_FRAME_RTR) != 0U) { in rx_thread()
121 (frame.flags & CAN_FRAME_RTR) != 0 ? ", RTR frame" : ""); in rx_thread()
143 (frame->flags & CAN_FRAME_RTR) != 0 ? ", RTR frame" : ""); in can_native_linux_send()
146 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR | in can_native_linux_send()
161 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR)) != 0) { in can_native_linux_send()
Dcan_sja1000.c285 frame->flags |= CAN_FRAME_RTR; in can_sja1000_read_frame()
307 if ((frame->flags & CAN_FRAME_RTR) == 0U) { in can_sja1000_read_frame()
320 if ((frame->flags & CAN_FRAME_RTR) == 0U) { in can_sja1000_read_frame()
337 if ((frame->flags & CAN_FRAME_RTR) != 0) { in can_sja1000_write_frame()
358 if ((frame->flags & CAN_FRAME_RTR) == 0U) { in can_sja1000_write_frame()
371 if ((frame->flags & CAN_FRAME_RTR) == 0U) { in can_sja1000_write_frame()
392 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR)) != 0) { in can_sja1000_send()
581 if ((frame.flags & CAN_FRAME_RTR) == 0U) { in can_sja1000_handle_receive_irq()
Dcan_rcar.c362 if ((frame->flags & CAN_FRAME_RTR) != 0U) { in can_rcar_rx_filter_isr()
410 frame.flags |= CAN_FRAME_RTR; in can_rcar_rx_isr()
889 , (frame->flags & CAN_FRAME_RTR) != 0 ? "yes" : "no"); in can_rcar_send()
897 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR)) != 0) { in can_rcar_send()
927 if ((frame->flags & CAN_FRAME_RTR) != 0) { in can_rcar_send()
936 if ((frame->flags & CAN_FRAME_RTR) == 0) { in can_rcar_send()
Dcan_mcan.c716 frame.flags |= CAN_FRAME_RTR; in can_mcan_get_message()
746 if ((frame.flags & CAN_FRAME_RTR) == 0U && data_length != 0U) { in can_mcan_get_message()
912 .rtr = (frame->flags & CAN_FRAME_RTR) != 0U ? 1U : 0U, in can_mcan_send()
931 (frame->flags & CAN_FRAME_RTR) != 0U ? "RTR" : "", in can_mcan_send()
936 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR | CAN_FRAME_FDF | CAN_FRAME_BRS)) != in can_mcan_send()
948 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR)) != 0U) { in can_mcan_send()
1017 if ((frame->flags & CAN_FRAME_RTR) == 0U && data_length != 0U) { in can_mcan_send()
Dcan_mcux_flexcan.c498 if ((src->flags & CAN_FRAME_RTR) != 0) { in mcux_flexcan_from_can_frame()
522 dest->flags |= CAN_FRAME_RTR; in mcux_flexcan_to_can_frame()
550 if ((src->flags & CAN_FRAME_RTR) != 0) { in mcux_flexcan_fd_from_can_frame()
586 dest->flags |= CAN_FRAME_RTR; in mcux_flexcan_fd_to_can_frame()
682 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR | in mcux_flexcan_send()
692 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR)) != 0) { in mcux_flexcan_send()
Dcan_mcp2515.c220 rtr = (source->flags & CAN_FRAME_RTR) != 0 ? BIT(6) : 0; in mcp2515_convert_canframe_to_mcp2515frame()
256 target->flags |= CAN_FRAME_RTR; in mcp2515_convert_mcp2515frame_to_canframe()
546 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR)) != 0) { in mcp2515_send()
669 if ((frame->flags & CAN_FRAME_RTR) != 0U) { in mcp2515_rx_filter()
Dcan_renesas_ra.c351 ((p_args->frame.type == CAN_FRAME_TYPE_REMOTE) ? CAN_FRAME_RTR : 0UL) | in can_renesas_ra_call_rx_cb()
562 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR | CAN_FRAME_FDF | CAN_FRAME_BRS)) != in can_renesas_ra_send()
574 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR)) != 0U) { in can_renesas_ra_send()
606 .type = ((frame->flags & CAN_FRAME_RTR) != 0) ? CAN_FRAME_TYPE_REMOTE in can_renesas_ra_send()
Dcan_stm32_bxcan.c102 frame->flags |= CAN_FRAME_RTR; in can_stm32_rx_fifo_pop()
775 , (frame->flags & CAN_FRAME_RTR) != 0 ? "yes" : "no"); in can_stm32_send()
782 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_RTR)) != 0) { in can_stm32_send()
835 if ((frame->flags & CAN_FRAME_RTR) != 0) { in can_stm32_send()
Dcan_mcp251xfd.c51 if ((src->flags & CAN_FRAME_RTR) != 0) { in mcp251xfd_canframe_to_txobj()
187 if ((msg->flags & CAN_FRAME_RTR) == 0) { in mcp251xfd_fifo_write()
235 dst->flags |= CAN_FRAME_RTR; in mcp251xfd_rxobj_to_canframe()
492 msg->flags & CAN_FRAME_RTR ? "RTR" : "", in mcp251xfd_send()
1299 if ((dst.flags & CAN_FRAME_RTR) != 0U) { in mcp251xfd_rx_fifo_handler()
Dcan_nxp_s32_canxl.c671 !!(frame->flags & CAN_FRAME_RTR) ? "RTR" : "", in can_nxp_s32_send()
860 frame->flags |= CAN_FRAME_RTR; in nxp_s32_msg_data_to_zcan_frame()
910 !!(frame.flags & CAN_FRAME_RTR) ? "RTR" : "", in can_nxp_s32_ctrl_callback()
934 !!(frame.flags & CAN_FRAME_RTR) ? "RTR" : "", in can_nxp_s32_ctrl_callback()
Dcan_shell.c124 if ((frame->flags & CAN_FRAME_RTR) != 0) { in can_shell_print_frame()
755 frame.flags |= CAN_FRAME_RTR; in cmd_can_send()
828 (frame.flags & CAN_FRAME_RTR) != 0 ? 1 : 0, in cmd_can_send()
Dcan_xmc4xxx.c155 msg->flags & CAN_FRAME_RTR ? "RTR" : "", in can_xmc4xxx_send()
211 if ((msg->flags & CAN_FRAME_RTR) != 0) { in can_xmc4xxx_send()
625 frame.flags |= CAN_FRAME_RTR; in can_xmc4xxx_rx_fifo_handler()
/Zephyr-latest/tests/net/socket/can/src/
Dmain.c49 expected.flags |= CAN_FRAME_RTR; in ZTEST()
89 zframe.flags |= CAN_FRAME_RTR; in ZTEST()
/Zephyr-latest/samples/drivers/can/counter/src/
Dmain.c79 if (IS_ENABLED(CONFIG_CAN_ACCEPT_RTR) && (frame.flags & CAN_FRAME_RTR) != 0U) { in rx_thread()
99 if (IS_ENABLED(CONFIG_CAN_ACCEPT_RTR) && (frame.flags & CAN_FRAME_RTR) != 0U) { in change_led_work_handler()
/Zephyr-latest/samples/net/sockets/can/src/
Dmain.c136 (zframe.flags & CAN_FRAME_RTR) != 0 ? 1 : 0, in rx()
139 if ((zframe.flags & CAN_FRAME_RTR) != 0) { in rx()
/Zephyr-latest/modules/canopennode/
DCO_driver.c108 if (buffer->rtr && ((frame->flags & CAN_FRAME_RTR) == 0U)) { in canopen_rx_callback()
161 frame.flags |= (buffer->rtr ? CAN_FRAME_RTR : 0); in canopen_tx_retry()
413 frame.flags = (buffer->rtr ? CAN_FRAME_RTR : 0); in CO_CANsend()
/Zephyr-latest/tests/drivers/can/shell/src/
Dmain.c418 .flags = CAN_FRAME_RTR, in ZTEST()
454 .flags = CAN_FRAME_IDE | CAN_FRAME_FDF | CAN_FRAME_BRS | CAN_FRAME_RTR, in ZTEST()
/Zephyr-latest/include/zephyr/drivers/
Dcan.h145 #define CAN_FRAME_RTR BIT(1) macro
/Zephyr-latest/subsys/canbus/isotp/
Disotp.c560 if (IS_ENABLED(CONFIG_CAN_ACCEPT_RTR) && (frame->flags & CAN_FRAME_RTR) != 0U) { in receive_can_rx()
856 if (IS_ENABLED(CONFIG_CAN_ACCEPT_RTR) && (frame->flags & CAN_FRAME_RTR) != 0U) { in send_can_rx_cb()