Lines Matching refs:can_dev
138 const struct device *const can_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_canbus));
141 ret = can_send(can_dev, &frame, K_MSEC(100), NULL, NULL);
164 int send_function(const struct device *can_dev)
175 return can_send(can_dev, &frame, K_FOREVER, tx_callback, "Sender 1");
211 const struct device *const can_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_canbus));
213 filter_id = can_add_rx_filter(can_dev, rx_callback_function, callback_arg, &my_filter);
236 const struct device *const can_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_canbus));
238 filter_id = can_add_rx_filter_msgq(can_dev, &my_can_msgq, &my_filter);
253 can_remove_rx_filter(can_dev, filter_id);
267 const struct device *const can_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_canbus));
270 ret = can_calc_timing(can_dev, &timing, 250000, 875);
280 ret = can_stop(can_dev);
285 ret = can_set_timing(can_dev, &timing);
290 ret = can_start(can_dev);