Lines Matching refs:usb_device
44 struct usb_device *dev;
90 /* Creates a usb_device object for a USB device */
91 struct usb_device *usb_device_open(const char *dev_name);
94 void usb_device_close(struct usb_device *device);
96 /* Creates a usb_device object for already open USB device */
97 struct usb_device *usb_device_new(const char *dev_name, int fd);
99 /* Returns the file descriptor for the usb_device */
100 int usb_device_get_fd(struct usb_device *device);
105 const char* usb_device_get_name(struct usb_device *device);
110 int usb_device_get_unique_id(struct usb_device *device);
122 uint16_t usb_device_get_vendor_id(struct usb_device *device);
125 uint16_t usb_device_get_product_id(struct usb_device *device);
127 const struct usb_device_descriptor* usb_device_get_device_descriptor(struct usb_device *device);
134 char* usb_device_get_string(struct usb_device *device, int id);
139 char* usb_device_get_manufacturer_name(struct usb_device *device);
144 char* usb_device_get_product_name(struct usb_device *device);
149 char* usb_device_get_serial(struct usb_device *device);
154 int usb_device_is_writeable(struct usb_device *device);
159 void usb_descriptor_iter_init(struct usb_device *device, struct usb_descriptor_iter *iter);
167 int usb_device_claim_interface(struct usb_device *device, unsigned int interface);
170 int usb_device_release_interface(struct usb_device *device, unsigned int interface);
176 int usb_device_connect_kernel_driver(struct usb_device *device,
180 int usb_device_control_transfer(struct usb_device *device,
192 int usb_device_bulk_transfer(struct usb_device *device,
199 struct usb_request *usb_request_new(struct usb_device *dev,
211 struct usb_request *usb_request_wait(struct usb_device *dev);