www.pudn.com > LPC2200_USB.rar > HostStack.h, change:2005-04-22,size:1106b


#ifndef __HOST_STACK_H  
#define __HOST_STACK_H 
 
#define		MASSSTRAGE_CLASS_INTERFACE				0x08	 
#include	"Mass.h" 
 
 
void 		USB_Host_Serve(void); 
void  		isr_USB_Hc( void ); 
void		USB_Host_Stack_Initialize( void ); 
 
#define find_mass_device(x)	find_class_interface(MASSSTRAGE_CLASS_INTERFACE,x) 
device_instance 	*find_class_interface(unsigned char InterfaceClassID, unsigned char DeviceIndex); 
hMedLUN * Creat_Medium(device_instance *dvi_ptr ,unsigned char LUNIndex); 
void 			Close_Medium(hMedLUN *hMedLUNPtr,unsigned char LUNIndex); 
 
unsigned short ReadBlockData(hMedLUN 	*MediumPtr, unsigned char *BufferPtr, 
							   unsigned int LBA, unsigned short TrBLength);		 
unsigned short WriteBlockData(hMedLUN 	*MediumPtr, unsigned char *BufferPtr, 
							   unsigned int LBA, unsigned short TrBLength);							   
 
void 			disable(void);	//禁止中断 
void 			enable(void);	//使能中断 
 
void 			Sys_Hc_RESET(void);			// 硬件复位 
void 			Sys_Hc_SetWAKEUP(void);		// 唤醒ISP116x 
unsigned char	Sys_Hc_GetSUSPEND(void);	// 获取ISP116x挂起状态 
void 			Sys_Hc_Ini(void);			// 主机初始化 
 
 
#endif