⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 request.h

📁 用SL811做USB主机的源码
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -