Lines Matching refs:usb_device
65 struct usb_device {
257 struct usb_device *usb_device_open(const char *dev_name)
282 struct usb_device* result = usb_device_new(dev_name, fd);
288 void usb_device_close(struct usb_device *device)
294 struct usb_device *usb_device_new(const char *dev_name, int fd)
296 struct usb_device *device = calloc(1, sizeof(struct usb_device));
321 static int usb_device_reopen_writeable(struct usb_device *device)
337 int usb_device_get_fd(struct usb_device *device)
344 const char* usb_device_get_name(struct usb_device *device)
349 int usb_device_get_unique_id(struct usb_device *device)
372 uint16_t usb_device_get_vendor_id(struct usb_device *device)
378 uint16_t usb_device_get_product_id(struct usb_device *device)
384 const struct usb_device_descriptor* usb_device_get_device_descriptor(struct usb_device *device)
389 char* usb_device_get_string(struct usb_device *device, int id)
427 char* usb_device_get_manufacturer_name(struct usb_device *device)
437 char* usb_device_get_product_name(struct usb_device *device)
447 char* usb_device_get_serial(struct usb_device *device)
457 int usb_device_is_writeable(struct usb_device *device)
462 void usb_descriptor_iter_init(struct usb_device *device, struct usb_descriptor_iter *iter)
479 int usb_device_claim_interface(struct usb_device *device, unsigned int interface)
484 int usb_device_release_interface(struct usb_device *device, unsigned int interface)
489 int usb_device_connect_kernel_driver(struct usb_device *device,
500 int usb_device_control_transfer(struct usb_device *device,
526 int usb_device_bulk_transfer(struct usb_device *device,
546 struct usb_request *usb_request_new(struct usb_device *dev,
605 struct usb_request *usb_request_wait(struct usb_device *dev)