Motorola USB08 User Manual

Page of 244
Source Code Files
Contents
USB08 Evaluation Board
Designer Reference Manual
 
MOTOROLA
Source Code Files
 95
//----------------------------------------------------------------------------
// USB Standard Device Request Codes
// according to USB1.1 spec page 187
//
#define GET_STATUS
0x00
#define CLEAR_FEATURE
0x01
#define SET_FEATURE
0x03
#define SET_ADDRESS
0x05
#define GET_DESCRIPTOR
0x06
#define SET DESCRIPTOR
0x07
// optional
#define GET_CONFIGURATION
0x08
#define SET_CONFIGURATION
0x09
#define GET_INTERFACE
0x0a
#define SET_INTERFACE
0x0b
#define SYNCH_FRAME
0x0c
// optional
#define REQUEST_COMPLETE
0xff
// not part of the Standard - just
// a Flag to indicate that the recent
// Request has been finished
//----------------------------------------------------------------------------
// Descriptor Types
// according to USB1.1 spec page 187
//
#define DT_DEVICE
1
#define DT_CONFIGURATION
2
#define DT_STRING
3
#define DT_INTERFACE
4
#define DT_ENDPOINT
5
//----------------------------------------------------------------------------
// Function Prototypes
//
void initUSB();
uchar getUSB();
void putUSB(uchar c);
@interrupt void isrUSB();
//============================================================================