usbvirt_device_ops_t Struct Reference
[USB virtualization library]

Ops structure for virtual USB device. More...

#include <device.h>


Data Fields

usbvirt_control_request_handler_tcontrol
 Array of control handlers.
usbvirt_on_data_from_device_t data_in [USBVIRT_ENDPOINT_MAX]
 Callbacks for data from device.
usbvirt_on_data_to_device_t data_out [USBVIRT_ENDPOINT_MAX]
 Callbacks for data to device.
void(* state_changed )(usbvirt_device_t *dev, usbvirt_device_state_t old_state, usbvirt_device_state_t new_state)
 Callback when device changes state.


Detailed Description

Ops structure for virtual USB device.

Definition at line 152 of file device.h.


Field Documentation

usbvirt_control_request_handler_t* control

Array of control handlers.

Last handler is expected to have the callback field set to NULL

Definition at line 164 of file device.h.

usbvirt_on_data_from_device_t data_in[USBVIRT_ENDPOINT_MAX]

Callbacks for data from device.

Index zero is ignored.

Definition at line 160 of file device.h.

usbvirt_on_data_to_device_t data_out[USBVIRT_ENDPOINT_MAX]

Callbacks for data to device.

Index zero is ignored.

Definition at line 156 of file device.h.

void(* state_changed)(usbvirt_device_t *dev, usbvirt_device_state_t old_state, usbvirt_device_state_t new_state)

Callback when device changes state.

The value of state attribute of dev device is not defined during call of this function.

Parameters:
dev The virtual USB device.
old_state Old device state.
new_state New device state.


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