Lines Matching refs:can_dev
29 const struct device *const can_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_canbus)); variable
73 filter_id = can_add_rx_filter_msgq(can_dev, &counter_msgq, &filter); in rx_thread()
144 err = can_get_state(can_dev, &state, &err_cnt); in poll_state_thread()
212 if (!device_is_ready(can_dev)) { in main()
213 printf("CAN: Device %s not ready.\n", can_dev->name); in main()
218 ret = can_set_mode(can_dev, CAN_MODE_LOOPBACK); in main()
224 ret = can_start(can_dev); in main()
247 ret = can_add_rx_filter_msgq(can_dev, &change_led_msgq, &change_led_filter); in main()
280 can_set_state_change_callback(can_dev, state_change_callback, &state_change_work); in main()
287 can_send(can_dev, &change_led_frame, K_FOREVER, in main()
296 can_send(can_dev, &counter_frame, K_MSEC(100), NULL, NULL); in main()