ReactOS  0.4.14-dev-593-g1793dcc
usbdi.h File Reference
#include <usb.h>
#include <usbioctl.h>
Include dependency graph for usbdi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __GNU_EXTENSION
 
#define USBD_STATUS_CANCELLING   ((USBD_STATUS)0x00020000L)
 
#define USBD_STATUS_CANCELING   ((USBD_STATUS)0x00020000L)
 
#define USBD_STATUS_NO_MEMORY   ((USBD_STATUS)0x80000100L)
 
#define USBD_STATUS_ERROR   ((USBD_STATUS)0x80000000L)
 
#define USBD_STATUS_REQUEST_FAILED   ((USBD_STATUS)0x80000500L)
 
#define USBD_STATUS_HALTED   ((USBD_STATUS)0xC0000000L)
 
#define USBD_HALTED(Status)   ((ULONG)(Status) >> 30 == 3)
 
#define USBD_STATUS(Status)   ((ULONG)(Status) & 0x0FFFFFFFL)
 
#define URB_FUNCTION_RESERVED0   0x0016
 
#define URB_FUNCTION_RESERVED   0x001D
 
#define URB_FUNCTION_LAST   0x0029
 
#define USBD_PF_DOUBLE_BUFFER   0x00000002
 
#define USBD_PF_VALID_MASK
 
#define USBD_TRANSFER_DIRECTION_BIT   0
 
#define USBD_SHORT_TRANSFER_OK_BIT   1
 
#define USBD_START_ISO_TRANSFER_ASAP_BIT   2
 
#define USBD_TRANSFER_DIRECTION(x)   ((x) & USBD_TRANSFER_DIRECTION_IN)
 

Macro Definition Documentation

◆ __GNU_EXTENSION

#define __GNU_EXTENSION

Definition at line 32 of file usbdi.h.

◆ URB_FUNCTION_LAST

#define URB_FUNCTION_LAST   0x0029

Definition at line 56 of file usbdi.h.

◆ URB_FUNCTION_RESERVED

#define URB_FUNCTION_RESERVED   0x001D

Definition at line 55 of file usbdi.h.

◆ URB_FUNCTION_RESERVED0

#define URB_FUNCTION_RESERVED0   0x0016

Definition at line 54 of file usbdi.h.

◆ USBD_HALTED

#define USBD_HALTED (   Status)    ((ULONG)(Status) >> 30 == 3)

Definition at line 51 of file usbdi.h.

◆ USBD_PF_DOUBLE_BUFFER

#define USBD_PF_DOUBLE_BUFFER   0x00000002

Definition at line 58 of file usbdi.h.

◆ USBD_PF_VALID_MASK

#define USBD_PF_VALID_MASK
Value:
USBD_PF_ENABLE_RT_THREAD_ACCESS | USBD_PF_MAP_ADD_TRANSFERS)
#define USBD_PF_MAP_ADD_TRANSFERS
Definition: usb.h:272
#define USBD_PF_DOUBLE_BUFFER
Definition: usbdi.h:58
#define USBD_PF_CHANGE_MAX_PACKET
Definition: usb.h:269

Definition at line 64 of file usbdi.h.

◆ USBD_SHORT_TRANSFER_OK_BIT

#define USBD_SHORT_TRANSFER_OK_BIT   1

Definition at line 68 of file usbdi.h.

◆ USBD_START_ISO_TRANSFER_ASAP_BIT

#define USBD_START_ISO_TRANSFER_ASAP_BIT   2

Definition at line 69 of file usbdi.h.

◆ USBD_STATUS

#define USBD_STATUS (   Status)    ((ULONG)(Status) & 0x0FFFFFFFL)

Definition at line 52 of file usbdi.h.

◆ USBD_STATUS_CANCELING

#define USBD_STATUS_CANCELING   ((USBD_STATUS)0x00020000L)

Definition at line 44 of file usbdi.h.

◆ USBD_STATUS_CANCELLING

#define USBD_STATUS_CANCELLING   ((USBD_STATUS)0x00020000L)

Definition at line 43 of file usbdi.h.

◆ USBD_STATUS_ERROR

#define USBD_STATUS_ERROR   ((USBD_STATUS)0x80000000L)

Definition at line 46 of file usbdi.h.

◆ USBD_STATUS_HALTED

#define USBD_STATUS_HALTED   ((USBD_STATUS)0xC0000000L)

Definition at line 48 of file usbdi.h.

◆ USBD_STATUS_NO_MEMORY

#define USBD_STATUS_NO_MEMORY   ((USBD_STATUS)0x80000100L)

Definition at line 45 of file usbdi.h.

◆ USBD_STATUS_REQUEST_FAILED

#define USBD_STATUS_REQUEST_FAILED   ((USBD_STATUS)0x80000500L)

Definition at line 47 of file usbdi.h.

◆ USBD_TRANSFER_DIRECTION

#define USBD_TRANSFER_DIRECTION (   x)    ((x) & USBD_TRANSFER_DIRECTION_IN)

Definition at line 75 of file usbdi.h.

◆ USBD_TRANSFER_DIRECTION_BIT

#define USBD_TRANSFER_DIRECTION_BIT   0

Definition at line 67 of file usbdi.h.