Classes | Defines | Typedefs
Usb.h File Reference
#include <Max3421e.h>
#include "ch9.h"
Include dependency graph for Usb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DEV_RECORD
struct  EP_RECORD
struct  SETUP_PKT
class  USB

Defines

#define bmREQ_CL_GET_INTF   USB_SETUP_DEVICE_TO_HOST|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE
#define bmREQ_GET_DESCR   USB_SETUP_DEVICE_TO_HOST|USB_SETUP_TYPE_STANDARD|USB_SETUP_RECIPIENT_DEVICE
#define bmREQ_HIDIN   USB_SETUP_DEVICE_TO_HOST|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE
#define bmREQ_HIDOUT   USB_SETUP_HOST_TO_DEVICE|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE
#define bmREQ_HIDREPORT   USB_SETUP_DEVICE_TO_HOST|USB_SETUP_TYPE_STANDARD|USB_SETUP_RECIPIENT_INTERFACE
#define bmREQ_SET   USB_SETUP_HOST_TO_DEVICE|USB_SETUP_TYPE_STANDARD|USB_SETUP_RECIPIENT_DEVICE
#define USB_ATTACHED_SUBSTATE_GET_DEVICE_DESCRIPTOR_SIZE   0x60
#define USB_ATTACHED_SUBSTATE_RESET_DEVICE   0x30
#define USB_ATTACHED_SUBSTATE_SETTLE   0x20
#define USB_ATTACHED_SUBSTATE_WAIT_RESET_COMPLETE   0x40
#define USB_ATTACHED_SUBSTATE_WAIT_SOF   0x50
#define USB_DETACHED_SUBSTATE_ILLEGAL   0x13
#define USB_DETACHED_SUBSTATE_INITIALIZE   0x11
#define USB_DETACHED_SUBSTATE_WAIT_FOR_DEVICE   0x12
#define USB_NAK_LIMIT   32000
#define USB_NAK_NOWAIT   1
#define USB_NUMDEVICES   2
#define USB_RETRY_LIMIT   3
#define USB_SETTLE_DELAY   200
#define USB_STATE_ADDRESSING   0x70
#define USB_STATE_CONFIGURING   0x80
#define USB_STATE_DETACHED   0x10
#define USB_STATE_ERROR   0xa0
#define USB_STATE_MASK   0xf0
#define USB_STATE_RUNNING   0x90
#define USB_XFER_TIMEOUT   5000

Typedefs

typedef struct SETUP_PKTPSETUP_PKT

Define Documentation

Definition at line 40 of file Usb.h.

Definition at line 38 of file Usb.h.

Definition at line 43 of file Usb.h.

Definition at line 42 of file Usb.h.

Definition at line 44 of file Usb.h.

Definition at line 39 of file Usb.h.

Definition at line 66 of file Usb.h.

Definition at line 63 of file Usb.h.

#define USB_ATTACHED_SUBSTATE_SETTLE   0x20

Definition at line 62 of file Usb.h.

Definition at line 64 of file Usb.h.

#define USB_ATTACHED_SUBSTATE_WAIT_SOF   0x50

Definition at line 65 of file Usb.h.

#define USB_DETACHED_SUBSTATE_ILLEGAL   0x13

Definition at line 61 of file Usb.h.

Definition at line 59 of file Usb.h.

Definition at line 60 of file Usb.h.

#define USB_NAK_LIMIT   32000

Definition at line 47 of file Usb.h.

#define USB_NAK_NOWAIT   1

Definition at line 50 of file Usb.h.

#define USB_NUMDEVICES   2

Definition at line 52 of file Usb.h.

#define USB_RETRY_LIMIT   3

Definition at line 48 of file Usb.h.

#define USB_SETTLE_DELAY   200

Definition at line 49 of file Usb.h.

#define USB_STATE_ADDRESSING   0x70

Definition at line 67 of file Usb.h.

#define USB_STATE_CONFIGURING   0x80

Definition at line 68 of file Usb.h.

#define USB_STATE_DETACHED   0x10

Definition at line 58 of file Usb.h.

#define USB_STATE_ERROR   0xa0

Definition at line 70 of file Usb.h.

#define USB_STATE_MASK   0xf0

Definition at line 56 of file Usb.h.

#define USB_STATE_RUNNING   0x90

Definition at line 69 of file Usb.h.

#define USB_XFER_TIMEOUT   5000

Definition at line 46 of file Usb.h.


Typedef Documentation

typedef struct SETUP_PKT * PSETUP_PKT


rosserial_adk_demo
Author(s): Adam Stambler
autogenerated on Mon Dec 2 2013 12:02:02