XnUSBDevice.h File Reference

#include "XnPlatform.h"
#include "XnStatus.h"
#include <Win32/usb100.h>

Go to the source code of this file.

Classes

struct  XnUSBStringDescriptor
struct  XnUSBInterfaceDescriptorHolder
struct  XnUSBConfigDescriptorHolder
struct  XnUSBDeviceDescriptorHolder

Defines

#define USB_DT_CONFIG_SIZE   0
#define USB_DT_CONFIG   0
#define USB_CONFIG_ATT_ONE   0
#define USB_DT_ENDPOINT_SIZE   0
#define USB_DT_ENDPOINT   0
#define USB_ENDPOINT_XFER_BULK   0
#define USB_DT_INTERFACE_SIZE   0
#define USB_DT_INTERFACE   0
#define USB_CLASS_VENDOR_SPEC   0
#define USB_DT_DEVICE_SIZE   0
#define USB_DT_DEVICE   0

Typedefs

typedef USB_ENDPOINT_DESCRIPTOR XnUSBEndpointDescriptor
typedef USB_INTERFACE_DESCRIPTOR XnUSBInterfaceDescriptor
typedef
USB_CONFIGURATION_DESCRIPTOR 
XnUSBConfigDescriptor
typedef USB_DEVICE_DESCRIPTOR XnUSBDeviceDescriptor
typedef enum
XnUSBDeviceConnectionState 
XnUSBDeviceConnectionState
typedef struct
XnUSBStringDescriptor 
XnUSBStringDescriptor
typedef struct
XnUSBInterfaceDescriptorHolder 
XnUSBInterfaceDescriptorHolder
typedef struct
XnUSBConfigDescriptorHolder 
XnUSBConfigDescriptorHolder
typedef struct
XnUSBDeviceDescriptorHolder 
XnUSBDeviceDescriptorHolder
typedef struct XnUSBDevice XnUSBDevice
typedef void(* XnUSBDeviceNewControlRequestCallback )(XnUSBDevice *pDevice, void *pCookie)
typedef void(* XnUSBDeviceConnectivityChangedCallback )(XnUSBDevice *pDevice, XnUSBDeviceConnectionState state, void *pCookie)

Enumerations

enum  XnUSBDeviceConnectionState { XN_USB_DEVICE_DISCONNECTED, XN_USB_DEVICE_CONNECTED, XN_USB_DEVICE_SUSPENDED }

Functions

XN_C_API XnStatus XN_C_DECL xnUSBDeviceInit (const XnUSBDeviceDescriptorHolder *pDeviceDescriptor, XnUInt32 nControlMessageMaxSize, XnUSBDevice **ppDevice)
XN_C_API void XN_C_DECL xnUSBDeviceShutdown (XnUSBDevice *pDevice)
XN_C_API XnBool XN_C_DECL xnUSBDeviceIsControlRequestPending (XnUSBDevice *pDevice)
XN_C_API XnStatus XN_C_DECL xnUSBDeviceReceiveControlRequest (XnUSBDevice *pDevice, XnUChar *pBuffer, XnUInt32 *pnRequestSize)
XN_C_API XnStatus XN_C_DECL xnUSBDeviceSendControlReply (XnUSBDevice *pDevice, const XnUChar *pBuffer, XnUInt32 nReplySize)
XN_C_API XnStatus XN_C_DECL xnUSBDeviceSetNewControlRequestCallback (XnUSBDevice *pDevice, XnUSBDeviceNewControlRequestCallback pFunc, void *pCookie)
XN_C_API XnStatus XN_C_DECL xnUSBDeviceSetConnectivityChangedCallback (XnUSBDevice *pDevice, XnUSBDeviceConnectivityChangedCallback pFunc, void *pCookie)
XN_C_API XnStatus XN_C_DECL xnUSBDeviceWriteEndpoint (XnUSBDevice *pDevice, XnUInt8 nAddress, const XnUChar *pData, XnUInt32 nDataSize)

Define Documentation

#define USB_CLASS_VENDOR_SPEC   0
#define USB_CONFIG_ATT_ONE   0
#define USB_DT_CONFIG   0
#define USB_DT_CONFIG_SIZE   0
#define USB_DT_DEVICE   0
#define USB_DT_DEVICE_SIZE   0
#define USB_DT_ENDPOINT   0
#define USB_DT_ENDPOINT_SIZE   0
#define USB_DT_INTERFACE   0
#define USB_DT_INTERFACE_SIZE   0
#define USB_ENDPOINT_XFER_BULK   0

Typedef Documentation

typedef USB_CONFIGURATION_DESCRIPTOR XnUSBConfigDescriptor
typedef struct XnUSBDevice XnUSBDevice
typedef void(* XnUSBDeviceConnectivityChangedCallback)(XnUSBDevice *pDevice, XnUSBDeviceConnectionState state, void *pCookie)
typedef USB_DEVICE_DESCRIPTOR XnUSBDeviceDescriptor
typedef void(* XnUSBDeviceNewControlRequestCallback)(XnUSBDevice *pDevice, void *pCookie)
typedef USB_ENDPOINT_DESCRIPTOR XnUSBEndpointDescriptor
typedef USB_INTERFACE_DESCRIPTOR XnUSBInterfaceDescriptor

Enumeration Type Documentation

Enumerator:
XN_USB_DEVICE_DISCONNECTED 
XN_USB_DEVICE_CONNECTED 
XN_USB_DEVICE_SUSPENDED 

Function Documentation

XN_C_API XnStatus XN_C_DECL xnUSBDeviceInit ( const XnUSBDeviceDescriptorHolder pDeviceDescriptor,
XnUInt32  nControlMessageMaxSize,
XnUSBDevice **  ppDevice 
)
XN_C_API XnBool XN_C_DECL xnUSBDeviceIsControlRequestPending ( XnUSBDevice pDevice  ) 
XN_C_API XnStatus XN_C_DECL xnUSBDeviceReceiveControlRequest ( XnUSBDevice pDevice,
XnUChar *  pBuffer,
XnUInt32 *  pnRequestSize 
)
XN_C_API XnStatus XN_C_DECL xnUSBDeviceSendControlReply ( XnUSBDevice pDevice,
const XnUChar *  pBuffer,
XnUInt32  nReplySize 
)
XN_C_API XnStatus XN_C_DECL xnUSBDeviceSetConnectivityChangedCallback ( XnUSBDevice pDevice,
XnUSBDeviceConnectivityChangedCallback  pFunc,
void *  pCookie 
)
XN_C_API XnStatus XN_C_DECL xnUSBDeviceSetNewControlRequestCallback ( XnUSBDevice pDevice,
XnUSBDeviceNewControlRequestCallback  pFunc,
void *  pCookie 
)
XN_C_API void XN_C_DECL xnUSBDeviceShutdown ( XnUSBDevice pDevice  ) 
XN_C_API XnStatus XN_C_DECL xnUSBDeviceWriteEndpoint ( XnUSBDevice pDevice,
XnUInt8  nAddress,
const XnUChar *  pData,
XnUInt32  nDataSize 
)
Generated on Thu Dec 20 21:49:19 2012 for OpenNI 1.5.4 by  doxygen 1.6.3