USB Request Pocket.
typedef struct DEVICE_REQUEST
{
UINT8 RequestType; //0
UINT8 Request; //1
UINT8 ValueL; //2
UINT8 ValueH; //3
UINT8 IndexL; //4
UINT8 IndexH; //5
UINT8 LengthL; //6
UINT8 LengthH; //7
} DEVICE_REQUEST;
Request Code:
GET_STATUS 0
CLEAR_FEATURE 1
RESERVED_1 2
SET_FEATURE 3
RESERVED_2 4
SET_ADDRESS 5
GET_DESCRIPTOR 6
SET_DESCRIPTOR 7
GET_CONFIGURATION 8
SET_CONFIGURATION 9
GET_INTERFACE 10
SET_INTERFACE 11
SYNCH_FRAME 12
沒有留言:
張貼留言