request.h

来自「用SL811做USB主机的源码」· C头文件 代码 · 共 16 行

H
16
字号
#include "comm_def.h"

#define USBA_BASEADDRESS 	0x10
#define USBB_BASEADDRESS 	0x90

const uint8 TEST_PACKET[] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08};
const uint8 Get_Device_Descriptor1[] = { 0x80, 0x06, 0x00, 0x01, 0x00, 0x00, 0x40, 0x00};
const uint8 Get_Device_Descriptor2[] = { 0x80, 0x06, 0x00, 0x01, 0x00, 0x00, 0x12, 0x00};
const uint8 Get_Config_Descriptor1[] = { 0x80, 0x06, 0x00, 0x02, 0x00, 0x00, 0x09, 0x00};
const uint8 Get_Config_Descriptor2[] = { 0x80, 0x06, 0x00, 0x02, 0x00, 0x00, 0xFF, 0x00};
const uint8 Set_Configuration[] = { 0x00, 0x09, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00};
const uint8 Set_Address[] = { 0x00, 0x05, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00};

const uint8 Reset_MassStorageDevice[] = { 0x21, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
const uint8 Get_MaxLUN[] = { 0xa1, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00};
uint8 Clear_EndPFeature[] = { 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?