; ><USBLibrary$Dir>.USBDefs
;
; (c) 2002 Simtec Electronics
;
; This Library file is part of the Simtec Electronics USB Stack
; development suite. Specific licence is granted to use this file
; by third parties for the development of USB device drivers.
;
; this file is autogenerated from the relevant C headers, and was
; converted Tue Dec  2 13:38:03 2003 from:
;    usb/defs.h ($Id: class.h,v 1.4 2003/08/06 15:56:11 ben Exp $)
;

; types for reference registration and de-registration

                            USB_REFERENCE_ENDPOINT * 0x00000000
                              USB_REFERENCE_DEVICE * 0x00000001
                          USB_REFERENCE_CONTROLLER * 0x00000002

; types for find call

                           USB_FIND_KEEP_REFERENCE * 0x00000001
                              USB_FIND_NEXT_OBJECT * 0x00000002

; types for pipes

                             USB_PIPE_TYPE_CONTROL * 0x00000000
                          USB_PIPE_TYPE_ISOCHRONUS * 0x00000001
                                USB_PIPE_TYPE_BULK * 0x00000002
                           USB_PIPE_TYPE_INTERRUPT * 0x00000003
                                 USB_PIPE_TYPE_MAX * 0x00000004

; masks for device/pipe addresses

                             USB_PIPE_ADDRESS_MASK * 0x3fffffff
                             USB_PIPE_ADDRESS_BOTH * 0x40000000
                               USB_PIPE_ADDRESS_IN * 0x80000000
                              USB_PIPE_ADDRESS_OUT * 0x00000000

; other pipe constants

                                  USB_PIPE_DEFAULT * 0x40000000
                           USB_PIPE_CLEAR_ACTIVATE * 0x00000001
                             USB_PIPE_CLEAR_TOGGLE * 0x10000000
                              USB_PIPE_OPEN_SHARED * 0x00000001

; device speeds

                             USB_DEVICE_SPEED_SLOW * 0x00000000
                           USB_DEVICE_SPEED_NORMAL * 0x00000001

; USB device states (from specification)

                        USB_DEVICE_STATE_UNPLUGGED * 0x00000000
                         USB_DEVICE_STATE_ATTACHED * 0x00000001
                          USB_DEVICE_STATE_POWERED * 0x00000002
                          USB_DEVICE_STATE_DEFAULT * 0x00000003
                          USB_DEVICE_STATE_ADDRESS * 0x00000004
                       USB_DEVICE_STATE_CONFIGURED * 0x00000005
; Results from an USB transaction

                         USB_TRANSACTION_RESULT_OK * 0x00000000
                     USB_TRANSACTION_RESULT_HALTED * 0xffffffff
                    USB_TRANSACTION_RESULT_ABORTED * 0xfffffffe
        USB_TRANSACTION_RESULT_TRANSMISSION_FAILED * 0xfffffffd
               USB_TRANSACTION_RESULT_INVALID_SIZE * 0xfffffffc
                    USB_TRANSACTION_RESULT_WORKING * 0xfffffffb
               USB_TRANSACTION_RESULT_BUSPROTO_ERR * 0xfffffffa
                      USB_TRANSACTION_RESULT_STALL * 0xfffffff9
                 USB_TRANSACTION_RESULT_NORESPONSE * 0xfffffff8
                USB_TRANSACTION_RESULT_HC_BUFF_ERR * 0xfffffff7
                 USB_TRANSACTION_RESULT_BUS_DATASZ * 0xfffffff6
                   USB_TRANSACTION_RESULT_INTERNAL * 0xfffffff5
                    USB_TRANSACTION_RESULT_TIMEOUT * 0xfffffff4
; the end
