ReactOS  0.4.15-dev-489-g75a0787
usbscan.h File Reference

Go to the source code of this file.

Classes

struct  _DRV_VERSION
 
struct  _IO_BLOCK
 
struct  _IO_BLOCK_EX
 
struct  _CHANNEL_INFO
 
struct  _USBSCAN_GET_DESCRIPTOR
 
struct  _DEVICE_DESCRIPTOR
 
struct  _USBSCAN_PIPE_INFORMATION
 
struct  _USBSCAN_PIPE_CONFIGURATION
 
struct  _USBSCAN_TIMEOUT
 

Macros

#define MAX_NUM_PIPES   8
 
#define BULKIN_FLAG   0x80
 
#define FILE_DEVICE_USB_SCAN   0x8000
 
#define IOCTL_INDEX   0x0800
 
#define IOCTL_GET_VERSION   CTL_CODE(FILE_DEVICE_USB_SCAN, IOCTL_INDEX + 0, METHOD_BUFFERED,FILE_ANY_ACCESS)
 
#define IOCTL_CANCEL_IO   CTL_CODE(FILE_DEVICE_USB_SCAN, IOCTL_INDEX + 1, METHOD_BUFFERED,FILE_ANY_ACCESS)
 
#define IOCTL_WAIT_ON_DEVICE_EVENT   CTL_CODE(FILE_DEVICE_USB_SCAN, IOCTL_INDEX + 2, METHOD_BUFFERED,FILE_ANY_ACCESS)
 
#define IOCTL_READ_REGISTERS   CTL_CODE(FILE_DEVICE_USB_SCAN, IOCTL_INDEX + 3, METHOD_BUFFERED,FILE_ANY_ACCESS)
 
#define IOCTL_WRITE_REGISTERS   CTL_CODE(FILE_DEVICE_USB_SCAN, IOCTL_INDEX + 4, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define IOCTL_GET_CHANNEL_ALIGN_RQST   CTL_CODE(FILE_DEVICE_USB_SCAN, IOCTL_INDEX + 5, METHOD_BUFFERED,FILE_ANY_ACCESS)
 
#define IOCTL_GET_DEVICE_DESCRIPTOR   CTL_CODE(FILE_DEVICE_USB_SCAN, IOCTL_INDEX + 6, METHOD_BUFFERED,FILE_ANY_ACCESS)
 
#define IOCTL_RESET_PIPE   CTL_CODE(FILE_DEVICE_USB_SCAN, IOCTL_INDEX + 7, METHOD_BUFFERED,FILE_ANY_ACCESS)
 
#define IOCTL_GET_USB_DESCRIPTOR   CTL_CODE(FILE_DEVICE_USB_SCAN, IOCTL_INDEX + 8, METHOD_BUFFERED,FILE_ANY_ACCESS)
 
#define IOCTL_SEND_USB_REQUEST   CTL_CODE(FILE_DEVICE_USB_SCAN, IOCTL_INDEX + 9, METHOD_BUFFERED,FILE_ANY_ACCESS)
 
#define IOCTL_GET_PIPE_CONFIGURATION   CTL_CODE(FILE_DEVICE_USB_SCAN, IOCTL_INDEX + 10,METHOD_BUFFERED,FILE_ANY_ACCESS)
 
#define IOCTL_SET_TIMEOUT   CTL_CODE(FILE_DEVICE_USB_SCAN, IOCTL_INDEX + 11,METHOD_BUFFERED,FILE_ANY_ACCESS)
 

Typedefs

typedef struct _DRV_VERSION DRV_VERSION
 
typedef struct _DRV_VERSIONPDRV_VERSION
 
typedef struct _IO_BLOCK IO_BLOCK
 
typedef struct _IO_BLOCKPIO_BLOCK
 
typedef struct _IO_BLOCK_EX IO_BLOCK_EX
 
typedef struct _IO_BLOCK_EXPIO_BLOCK_EX
 
typedef struct _CHANNEL_INFO CHANNEL_INFO
 
typedef struct _CHANNEL_INFOPCHANNEL_INFO
 
typedef enum _PIPE_TYPE PIPE_TYPE
 
typedef struct _USBSCAN_GET_DESCRIPTOR USBSCAN_GET_DESCRIPTOR
 
typedef struct _USBSCAN_GET_DESCRIPTORPUSBSCAN_GET_DESCRIPTOR
 
typedef struct _DEVICE_DESCRIPTOR DEVICE_DESCRIPTOR
 
typedef struct _DEVICE_DESCRIPTORPDEVICE_DESCRIPTOR
 
typedef enum _RAW_PIPE_TYPE RAW_PIPE_TYPE
 
typedef struct _USBSCAN_PIPE_INFORMATION USBSCAN_PIPE_INFORMATION
 
typedef struct _USBSCAN_PIPE_INFORMATIONPUSBSCAN_PIPE_INFORMATION
 
typedef struct _USBSCAN_PIPE_CONFIGURATION USBSCAN_PIPE_CONFIGURATION
 
typedef struct _USBSCAN_PIPE_CONFIGURATIONPUSBSCAN_PIPE_CONFIGURATION
 
typedef struct _USBSCAN_TIMEOUT USBSCAN_TIMEOUT
 
typedef struct _USBSCAN_TIMEOUTPUSBSCAN_TIMEOUT
 

Enumerations

enum  _PIPE_TYPE { EVENT_PIPE, READ_DATA_PIPE, WRITE_DATA_PIPE, ALL_PIPE }
 
enum  _RAW_PIPE_TYPE { USBSCAN_PIPE_CONTROL, USBSCAN_PIPE_ISOCHRONOUS, USBSCAN_PIPE_BULK, USBSCAN_PIPE_INTERRUPT }
 

Macro Definition Documentation

◆ BULKIN_FLAG

#define BULKIN_FLAG   0x80

Definition at line 37 of file usbscan.h.

◆ FILE_DEVICE_USB_SCAN

#define FILE_DEVICE_USB_SCAN   0x8000

Definition at line 115 of file usbscan.h.

◆ IOCTL_CANCEL_IO

Definition at line 121 of file usbscan.h.

◆ IOCTL_GET_CHANNEL_ALIGN_RQST

Definition at line 133 of file usbscan.h.

◆ IOCTL_GET_DEVICE_DESCRIPTOR

Definition at line 136 of file usbscan.h.

◆ IOCTL_GET_PIPE_CONFIGURATION

Definition at line 148 of file usbscan.h.

◆ IOCTL_GET_USB_DESCRIPTOR

Definition at line 142 of file usbscan.h.

◆ IOCTL_GET_VERSION

Definition at line 118 of file usbscan.h.

◆ IOCTL_INDEX

#define IOCTL_INDEX   0x0800

Definition at line 116 of file usbscan.h.

◆ IOCTL_READ_REGISTERS

Definition at line 127 of file usbscan.h.

◆ IOCTL_RESET_PIPE

Definition at line 139 of file usbscan.h.

◆ IOCTL_SEND_USB_REQUEST

Definition at line 145 of file usbscan.h.

◆ IOCTL_SET_TIMEOUT

Definition at line 152 of file usbscan.h.

◆ IOCTL_WAIT_ON_DEVICE_EVENT

Definition at line 124 of file usbscan.h.

◆ IOCTL_WRITE_REGISTERS

Definition at line 130 of file usbscan.h.

◆ MAX_NUM_PIPES

#define MAX_NUM_PIPES   8

Definition at line 34 of file usbscan.h.

Typedef Documentation

◆ CHANNEL_INFO

◆ DEVICE_DESCRIPTOR

◆ DRV_VERSION

◆ IO_BLOCK

◆ IO_BLOCK_EX

◆ PCHANNEL_INFO

◆ PDEVICE_DESCRIPTOR

◆ PDRV_VERSION

◆ PIO_BLOCK

◆ PIO_BLOCK_EX

◆ PIPE_TYPE

◆ PUSBSCAN_GET_DESCRIPTOR

◆ PUSBSCAN_PIPE_CONFIGURATION

◆ PUSBSCAN_PIPE_INFORMATION

◆ PUSBSCAN_TIMEOUT

◆ RAW_PIPE_TYPE

◆ USBSCAN_GET_DESCRIPTOR

◆ USBSCAN_PIPE_CONFIGURATION

◆ USBSCAN_PIPE_INFORMATION

◆ USBSCAN_TIMEOUT

Enumeration Type Documentation

◆ _PIPE_TYPE

Enumerator
EVENT_PIPE 
READ_DATA_PIPE 
WRITE_DATA_PIPE 
ALL_PIPE 

Definition at line 68 of file usbscan.h.

68  {
69  EVENT_PIPE,
72  ALL_PIPE
73 } PIPE_TYPE;
enum _PIPE_TYPE PIPE_TYPE

◆ _RAW_PIPE_TYPE

Enumerator
USBSCAN_PIPE_CONTROL 
USBSCAN_PIPE_ISOCHRONOUS 
USBSCAN_PIPE_BULK 
USBSCAN_PIPE_INTERRUPT 

Definition at line 88 of file usbscan.h.