Typedefs | Enumerations | Functions
XnUSB.h File Reference
#include "XnOS.h"
Include dependency graph for XnUSB.h:

Go to the source code of this file.

Typedefs

typedef XnUSBDeviceHandle * XN_USB_DEV_HANDLE
typedef XnUSBEndPointHandle * XN_USB_EP_HANDLE
typedef XnBool(XN_CALLBACK_TYPEXnUSBEventCallbackFunctionPtr )(XnUSBEventType USBEventType, XnChar *cpDevPath, void *pCallbackData)
typedef XnBool(XN_CALLBACK_TYPEXnUSBReadCallbackFunctionPtr )(XnUChar *pBuffer, XnUInt32 nBufferSize, void *pCallbackData)

Enumerations

enum  XnUSBControlType { XN_USB_CONTROL_TYPE_STANDARD = 0, XN_USB_CONTROL_TYPE_CLASS, XN_USB_CONTROL_TYPE_VENDOR }
enum  XnUSBDeviceSpeed { XN_USB_DEVICE_LOW_SPEED = 0, XN_USB_DEVICE_FULL_SPEED, XN_USB_DEVICE_HIGH_SPEED }
enum  XnUSBDirectionType { XN_USB_DIRECTION_IN = 0, XN_USB_DIRECTION_OUT }
enum  XnUSBEndPointType { XN_USB_EP_BULK = 0, XN_USB_EP_ISOCHRONOUS, XN_USB_EP_INTERRUPT }
enum  XnUSBEventType { XN_USB_EVENT_DEVICE_CONNECT = 0, XN_USB_EVENT_DEVICE_DISCONNECT }

Functions

XN_C_API XnStatus xnUSBAbortEndPoint (XN_USB_EP_HANDLE pEPHandle)
XN_C_API XnStatus xnUSBCloseDevice (XN_USB_DEV_HANDLE pDevHandle)
XN_C_API XnStatus xnUSBCloseEndPoint (XN_USB_EP_HANDLE pEPHandle)
XN_C_API XnStatus xnUSBFinishReadEndPoint (XN_USB_EP_HANDLE pEPHandle, XnUInt32 *pnBytesReceived, XnUInt32 nTimeOut)
XN_C_API XnStatus xnUSBFlushEndPoint (XN_USB_EP_HANDLE pEPHandle)
XN_C_API XnStatus xnUSBGetConfig (XN_USB_DEV_HANDLE pDevHandle, XnUInt8 *pnConfig)
XN_C_API XnStatus xnUSBGetDeviceSpeed (XN_USB_DEV_HANDLE pDevHandle, XnUSBDeviceSpeed *pDevSpeed)
XN_C_API XnStatus xnUSBGetEndPointMaxPacketSize (XN_USB_EP_HANDLE pEPHandle, XnUInt32 *pnMaxPacketSize)
XN_C_API XnStatus xnUSBGetInterface (XN_USB_DEV_HANDLE pDevHandle, XnUInt8 *pnInterface, XnUInt8 *pnAltInterface)
XN_C_API XnStatus xnUSBInit ()
XN_C_API XnStatus xnUSBInitReadThread (XN_USB_EP_HANDLE pEPHandle, XnUInt32 nBufferSize, XnUInt32 nNumBuffers, XnUInt32 nTimeOut, XnUSBReadCallbackFunctionPtr pCallbackFunction, void *pCallbackData)
XN_C_API XnStatus xnUSBIsDevicePresent (XnUInt16 nVendorID, XnUInt16 nProductID, void *pExtraParam, XnBool *pbDevicePresent)
XN_C_API XnStatus xnUSBOpenDevice (XnUInt16 nVendorID, XnUInt16 nProductID, void *pExtraParam, void *pExtraParam2, XN_USB_DEV_HANDLE *pDevHandlePtr)
XN_C_API XnStatus xnUSBOpenEndPoint (XN_USB_DEV_HANDLE pDevHandle, XnUInt16 nEndPointID, XnUSBEndPointType nEPType, XnUSBDirectionType nDirType, XN_USB_EP_HANDLE *pEPHandlePtr)
XN_C_API XnStatus xnUSBQueueReadEndPoint (XN_USB_EP_HANDLE pEPHandle, XnUChar *pBuffer, XnUInt32 nBufferSize, XnUInt32 nTimeOut)
XN_C_API XnStatus xnUSBReadEndPoint (XN_USB_EP_HANDLE pEPHandle, XnUChar *pBuffer, XnUInt32 nBufferSize, XnUInt32 *pnBytesReceived, XnUInt32 nTimeOut)
XN_C_API XnStatus xnUSBReceiveControl (XN_USB_DEV_HANDLE pDevHandle, XnUSBControlType nType, XnUInt8 nRequest, XnUInt16 nValue, XnUInt16 nIndex, XnUChar *pBuffer, XnUInt32 nBufferSize, XnUInt32 *pnBytesReceived, XnUInt32 nTimeOut)
XN_C_API XnStatus xnUSBResetEndPoint (XN_USB_EP_HANDLE pEPHandle)
XN_C_API XnStatus xnUSBSendControl (XN_USB_DEV_HANDLE pDevHandle, XnUSBControlType nType, XnUInt8 nRequest, XnUInt16 nValue, XnUInt16 nIndex, XnUChar *pBuffer, XnUInt32 nBufferSize, XnUInt32 nTimeOut)
XN_C_API XnStatus xnUSBSetCallbackHandler (XnUInt16 nVendorID, XnUInt16 nProductID, void *pExtraParam, XnUSBEventCallbackFunctionPtr pCallbackFunction, void *pCallbackData)
XN_C_API XnStatus xnUSBSetConfig (XN_USB_DEV_HANDLE pDevHandle, XnUInt8 nConfig)
XN_C_API XnStatus xnUSBSetInterface (XN_USB_DEV_HANDLE pDevHandle, XnUInt8 nInterface, XnUInt8 nAltInterface)
XN_C_API XnStatus xnUSBShutdown ()
XN_C_API XnStatus xnUSBShutdownReadThread (XN_USB_EP_HANDLE pEPHandle)
XN_C_API XnStatus xnUSBWriteEndPoint (XN_USB_EP_HANDLE pEPHandle, XnUChar *pBuffer, XnUInt32 nBufferSize, XnUInt32 nTimeOut)

Typedef Documentation

typedef XnUSBDeviceHandle* XN_USB_DEV_HANDLE

Definition at line 66 of file XnUSB.h.

typedef XnUSBEndPointHandle* XN_USB_EP_HANDLE

Definition at line 69 of file XnUSB.h.

typedef XnBool(XN_CALLBACK_TYPE* XnUSBEventCallbackFunctionPtr)(XnUSBEventType USBEventType, XnChar *cpDevPath, void *pCallbackData)

Definition at line 72 of file XnUSB.h.

typedef XnBool(XN_CALLBACK_TYPE* XnUSBReadCallbackFunctionPtr)(XnUChar *pBuffer, XnUInt32 nBufferSize, void *pCallbackData)

Definition at line 71 of file XnUSB.h.


Enumeration Type Documentation

Enumerator:
XN_USB_CONTROL_TYPE_STANDARD 
XN_USB_CONTROL_TYPE_CLASS 
XN_USB_CONTROL_TYPE_VENDOR 

Definition at line 54 of file XnUSB.h.

Enumerator:
XN_USB_DEVICE_LOW_SPEED 
XN_USB_DEVICE_FULL_SPEED 
XN_USB_DEVICE_HIGH_SPEED 

Definition at line 37 of file XnUSB.h.

Enumerator:
XN_USB_DIRECTION_IN 
XN_USB_DIRECTION_OUT 

Definition at line 49 of file XnUSB.h.

Enumerator:
XN_USB_EP_BULK 
XN_USB_EP_ISOCHRONOUS 
XN_USB_EP_INTERRUPT 

Definition at line 43 of file XnUSB.h.

Enumerator:
XN_USB_EVENT_DEVICE_CONNECT 
XN_USB_EVENT_DEVICE_DISCONNECT 

Definition at line 60 of file XnUSB.h.


Function Documentation

XN_C_API XnStatus xnUSBFinishReadEndPoint ( XN_USB_EP_HANDLE  pEPHandle,
XnUInt32 pnBytesReceived,
XnUInt32  nTimeOut 
)
XN_C_API XnStatus xnUSBGetConfig ( XN_USB_DEV_HANDLE  pDevHandle,
XnUInt8 pnConfig 
)
XN_C_API XnStatus xnUSBGetInterface ( XN_USB_DEV_HANDLE  pDevHandle,
XnUInt8 pnInterface,
XnUInt8 pnAltInterface 
)
XN_C_API XnStatus xnUSBInitReadThread ( XN_USB_EP_HANDLE  pEPHandle,
XnUInt32  nBufferSize,
XnUInt32  nNumBuffers,
XnUInt32  nTimeOut,
XnUSBReadCallbackFunctionPtr  pCallbackFunction,
void pCallbackData 
)
XN_C_API XnStatus xnUSBIsDevicePresent ( XnUInt16  nVendorID,
XnUInt16  nProductID,
void pExtraParam,
XnBool pbDevicePresent 
)
XN_C_API XnStatus xnUSBOpenDevice ( XnUInt16  nVendorID,
XnUInt16  nProductID,
void pExtraParam,
void pExtraParam2,
XN_USB_DEV_HANDLE pDevHandlePtr 
)
XN_C_API XnStatus xnUSBOpenEndPoint ( XN_USB_DEV_HANDLE  pDevHandle,
XnUInt16  nEndPointID,
XnUSBEndPointType  nEPType,
XnUSBDirectionType  nDirType,
XN_USB_EP_HANDLE pEPHandlePtr 
)
XN_C_API XnStatus xnUSBQueueReadEndPoint ( XN_USB_EP_HANDLE  pEPHandle,
XnUChar pBuffer,
XnUInt32  nBufferSize,
XnUInt32  nTimeOut 
)
XN_C_API XnStatus xnUSBReadEndPoint ( XN_USB_EP_HANDLE  pEPHandle,
XnUChar pBuffer,
XnUInt32  nBufferSize,
XnUInt32 pnBytesReceived,
XnUInt32  nTimeOut 
)
XN_C_API XnStatus xnUSBReceiveControl ( XN_USB_DEV_HANDLE  pDevHandle,
XnUSBControlType  nType,
XnUInt8  nRequest,
XnUInt16  nValue,
XnUInt16  nIndex,
XnUChar pBuffer,
XnUInt32  nBufferSize,
XnUInt32 pnBytesReceived,
XnUInt32  nTimeOut 
)
XN_C_API XnStatus xnUSBSendControl ( XN_USB_DEV_HANDLE  pDevHandle,
XnUSBControlType  nType,
XnUInt8  nRequest,
XnUInt16  nValue,
XnUInt16  nIndex,
XnUChar pBuffer,
XnUInt32  nBufferSize,
XnUInt32  nTimeOut 
)
XN_C_API XnStatus xnUSBSetCallbackHandler ( XnUInt16  nVendorID,
XnUInt16  nProductID,
void pExtraParam,
XnUSBEventCallbackFunctionPtr  pCallbackFunction,
void pCallbackData 
)
XN_C_API XnStatus xnUSBSetConfig ( XN_USB_DEV_HANDLE  pDevHandle,
XnUInt8  nConfig 
)
XN_C_API XnStatus xnUSBSetInterface ( XN_USB_DEV_HANDLE  pDevHandle,
XnUInt8  nInterface,
XnUInt8  nAltInterface 
)
XN_C_API XnStatus xnUSBWriteEndPoint ( XN_USB_EP_HANDLE  pEPHandle,
XnUChar pBuffer,
XnUInt32  nBufferSize,
XnUInt32  nTimeOut 
)


nao_openni
Author(s): Bener SUAY
autogenerated on Mon Jan 6 2014 11:27:51