usb_device_t Struct Reference
[USB library for device drivers]

USB device structure. More...

#include <driver.h>


Data Fields

usb_alternate_interfaces_talternate_interfaces
 Alternative interfaces.
usb_pipe_t ctrl_pipe
 The default control pipe.
ddf_dev_tddf_dev
 Generic DDF device backing this one.
usb_device_descriptors_t descriptors
 Some useful descriptors.
void * driver_data
 Custom driver data.
int interface_no
 Current interface.
usb_endpoint_mapping_tpipes
 Other endpoint pipes.
size_t pipes_count
 Number of other endpoint pipes.
usb_device_connection_t wire
 Connection backing the pipes.


Detailed Description

USB device structure.

Definition at line 73 of file driver.h.


Field Documentation

usb_alternate_interfaces_t* alternate_interfaces

Alternative interfaces.

Set to NULL when the driver controls whole device (i.e. more (or any) interfaces).

Definition at line 93 of file driver.h.

void* driver_data

Custom driver data.

Do not use the entry in generic device, that is already used by the framework.

Definition at line 104 of file driver.h.

int interface_no

Current interface.

Usually, drivers operate on single interface only. This item contains the value of the interface or -1 for any.

Definition at line 87 of file driver.h.

usb_endpoint_mapping_t* pipes

Other endpoint pipes.

This is an array of other endpoint pipes in the same order as in usb_driver_t.

Definition at line 80 of file driver.h.

usb_device_connection_t wire

Connection backing the pipes.

Typically, you will not need to use this attribute at all.

Definition at line 109 of file driver.h.


The documentation for this struct was generated from the following file:
Generated on Thu Jun 2 07:46:00 2011 for HelenOS/USB by  doxygen 1.4.7