Home | History | Annotate | Download | only in usbhost

Lines Matching refs:device

64 /* Callback indicating that initial device discovery is done.
91 * added_cb will be called immediately for each existing USB device,
92 * and subsequently each time a new device is added.
103 /* Creates a usb_device object for a USB device */
106 /* Releases all resources associated with the USB device */
107 void usb_device_close(struct usb_device *device);
109 /* Creates a usb_device object for already open USB device */
113 int usb_device_get_fd(struct usb_device *device);
115 /* Returns the name for the USB device, which is the same as
118 const char* usb_device_get_name(struct usb_device *device);
120 /* Returns a unique ID for the device.
123 int usb_device_get_unique_id(struct usb_device *device);
125 /* Returns a unique ID for the device name.
126 * Currently this is generated from the device path.
130 /* Returns the device name for the unique ID.
134 /* Returns the USB vendor ID from the device descriptor for the USB device */
135 uint16_t usb_device_get_vendor_id(struct usb_device *device);
137 /* Returns the USB product ID from the device descriptor for the USB device */
138 uint16_t usb_device_get_product_id(struct usb_device *device);
140 const struct usb_device_descriptor* usb_device_get_device_descriptor(struct usb_device *device);
147 char* usb_device_get_string(struct usb_device *device, int id);
149 /* Returns the manufacturer name for the USB device.
152 char* usb_device_get_manufacturer_name(struct usb_device *device);
154 /* Returns the product name for the USB device.
157 char* usb_device_get_product_name(struct usb_device *device);
159 /* Returns the version number for the USB device.
161 int usb_device_get_version(struct usb_device *device);
163 /* Returns the USB serial number for the USB device.
166 char* usb_device_get_serial(struct usb_device *device);
168 /* Returns true if we have write access to the USB device,
169 * and false if we only have access to the USB device configuration.
171 int usb_device_is_writeable(struct usb_device *device);
174 * the USB descriptors for a USB device.
176 void usb_descriptor_iter_init(struct usb_device *device, struct usb_descriptor_iter *iter);
178 /* Returns the next USB descriptor for a device, or NULL if we have reached the
183 /* Claims the specified interface of a USB device */
184 int usb_device_claim_interface(struct usb_device *device, unsigned int interface);
186 /* Releases the specified interface of a USB device */
187 int usb_device_release_interface(struct usb_device *device, unsigned int interface);
190 * This can be used to ask the kernel to disconnect its driver for a device
193 int usb_device_connect_kernel_driver(struct usb_device *device,
196 /* Sets the current configuration for the device to the specified configuration */
197 int usb_device_set_configuration(struct usb_device *device, int configuration);
199 /* Sets the specified interface of a USB device */
200 int usb_device_set_interface(struct usb_device *device, unsigned int interface,
203 /* Sends a control message to the specified device on endpoint zero */
204 int usb_device_control_transfer(struct usb_device *device,
216 int usb_device_bulk_transfer(struct usb_device *device,
229 /* Submits a read or write request on the specified device */