Lines Matching refs:usb_device
73 struct usb_device {
303 struct usb_device *usb_device_open(const char *dev_name)
328 struct usb_device* result = usb_device_new(dev_name, fd);
334 void usb_device_close(struct usb_device *device)
340 struct usb_device *usb_device_new(const char *dev_name, int fd)
342 struct usb_device *device = calloc(1, sizeof(struct usb_device));
367 static int usb_device_reopen_writeable(struct usb_device *device)
383 int usb_device_get_fd(struct usb_device *device)
390 const char* usb_device_get_name(struct usb_device *device)
395 int usb_device_get_unique_id(struct usb_device *device)
418 uint16_t usb_device_get_vendor_id(struct usb_device *device)
424 uint16_t usb_device_get_product_id(struct usb_device *device)
430 const struct usb_device_descriptor* usb_device_get_device_descriptor(struct usb_device *device)
435 char* usb_device_get_string(struct usb_device *device, int id)
473 char* usb_device_get_manufacturer_name(struct usb_device *device)
483 char* usb_device_get_product_name(struct usb_device *device)
493 char* usb_device_get_serial(struct usb_device *device)
503 int usb_device_is_writeable(struct usb_device *device)
508 void usb_descriptor_iter_init(struct usb_device *device, struct usb_descriptor_iter *iter)
525 int usb_device_claim_interface(struct usb_device *device, unsigned int interface)
530 int usb_device_release_interface(struct usb_device *device, unsigned int interface)
535 int usb_device_connect_kernel_driver(struct usb_device *device,
546 int usb_device_control_transfer(struct usb_device *device,
572 int usb_device_bulk_transfer(struct usb_device *device,
592 struct usb_request *usb_request_new(struct usb_device *dev,
651 struct usb_request *usb_request_wait(struct usb_device *dev)