chap_9.h

来自「此為philip 1362 USB DOS下的驅動程式包, 已經共測試並內含有說」· C头文件 代码 · 共 72 行

H
72
字号
/*
   //*************************************************************************
   //
   //                  P H I L I P S   P R O P R I E T A R Y
   //
   //           COPYRIGHT (c)   2000 BY PHILIPS SINGAPORE.
   //                     --  ALL RIGHTS RESERVED  --
   //
   // File Name:		CHAP_9.H
   // Author:			ZhenYu Zhang
   // Created:        	Jun. 8, 2000
   // Modified:
   // Revision:			0.0
   //
   //*************************************************************************
   //
   //*************************************************************************
*/


#ifndef __CHAP_9_H__
#define __CHAP_9_H__

//#include "BasicTyp.h"

/*
   //*************************************************************************
   // basic #defines
   //*************************************************************************
*/

#define USB_CLASS_CODE_UNKNOWN                              0x00
#define USB_SUBCLASS_CODE_UNKNOWN		                    0x00
#define USB_PROTOCOL_CODE_UNKNOWN							0x00

#define MAX_ENDPOINTS      0x0F

/*
   //*************************************************************************
   // USB Protocol Layer
   //*************************************************************************
*/

/*
   //*************************************************************************
   // USB standard device requests
   //*************************************************************************
*/
void Chap9_GetStatus(void);
void Chap9_ClearFeature(void);
void Chap9_SetFeature(void);
void Chap9_SetAddress(void);
void Chap9_GetDescriptor(void);
void Chap9_GetConfiguration(void);
void Chap9_SetConfiguration(void);
void Chap9_GetInterface(void);
void Chap9_SetInterface(void);

/*
   //*************************************************************************
   // Chap9 support functions
   //*************************************************************************
*/
void Chap9sup_BurstTransmitEP0(PUSHORT pData, USHORT wLength);
void Chap9sup_SingleTransmitEP0(PUSHORT ptrBuf, USHORT wLength);
void Chap9sup_StallEP0InControlRead(void);
void Chap9sup_StallEP0InControlWrite(void);
void Chap9sup_StallEP0(void);


#endif

⌨️ 快捷键说明

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