Home
last modified time | relevance | path

Searched refs:hdev (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/samples/subsys/usb/hid/src/
Dmain.c18 static const struct device *hdev; variable
63 ret = hid_int_ep_write(hdev, (uint8_t *)&report_1, in send_report()
125 int_in_ready_cb(hdev); in status_cb()
141 hdev = device_get_binding("HID_0"); in main()
142 if (hdev == NULL) { in main()
147 LOG_INF("HID Device: dev %p", hdev); in main()
149 usb_hid_register_device(hdev, hid_report_desc, sizeof(hid_report_desc), in main()
155 if (usb_hid_set_proto_code(hdev, HID_BOOT_IFACE_CODE_NONE)) { in main()
159 ret = usb_hid_init(hdev); in main()
/Zephyr-Core-3.5.0/doc/connectivity/usb/device/
Dusb_device.rst208 static const struct device *hdev;
214 if (hid_int_ep_write(hdev, report, sizeof(report), NULL)) {
228 int_in_ready_cb(hdev);
255 hdev = device_get_binding("HID_0");
256 if (hdev == NULL) {
260 usb_hid_register_device(hdev, hid_report_desc, sizeof(hid_report_desc),
263 ret = usb_hid_init(hdev);