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

📄 usbh_ide_api.h

📁 epson usb2.0 控制芯片 S1R72V05 固件程序。
💻 H
字号:
/*
 *	description: USBH IDE APIs Definition(global)
 *	Maker	   : Shuichi Yanagihara
 *	Copyright  : (C)2005,SEIKO EPSON Corp. All Rights Reserved.
 */


#ifndef USBH_IDE_API_H
#define USBH_IDE_API_H

#ifdef __cplusplus
	extern "C" {
#endif /* cplusplus */


/*****************************************
 * constants define
 *****************************************/

/* API return value */
#define USBH_IDE_STATUS_OPENED					(20L)
#define USBH_IDE_STATUS_ID_EXEC					(21L)
#define USBH_IDE_STATUS_DMA_EXEC				(22L)
#define USBH_IDE_STATUS_ID_ERR					(-20L)
#define USBH_IDE_STATUS_ALLOCIDERROR			(-21L)
#define USBH_IDE_STATUS_FREEIDERROR				(-22L)

#define USBH_IDE_MAX_DEVICE						(1)				/* The maximum device value that can be assigned. */

/* user defined constant */
#define USBH_IDE_MAX_ID							(1)				/* The maximum device ID that can be assigned. */

/*****************************************
 * Callback function definition
 *****************************************/

/*****************************************
 * Enumeration type definition
 *****************************************/

/*****************************************
 * structures defination
 *****************************************/

/*****************************************
 * Function prototype declaration
 *****************************************/
extern LONG USBH_IDE_FuncReset( void );
extern LONG USBH_IDE_FuncOpen( void );
extern LONG USBH_IDE_FuncClose( void );
extern LONG USBH_IDE_FuncAllocId( USHORT *pAllocId );
extern LONG USBH_IDE_FuncFreeId( USHORT id );
extern LONG USBH_IDE_FuncDeviceReset( USHORT id, USHORT deviceNo );
extern LONG USBH_IDE_FuncGetDeviceList( USHORT id, UCHAR *pList );
extern LONG USBH_IDE_FuncGetDeviceParameter( USHORT id, USHORT deviceNo, UCHAR *pDataPtr );
extern LONG USBH_IDE_FuncCommandOut( USHORT id, USHORT deviceNo, UCHAR transferMode, DRIVEACCESS_FUNCCMDPARA *pCmdBlock, DRIVEACCESS_FUNCTRANPARA *pTranPara );
extern LONG USBH_IDE_FuncCommandStop( USHORT id, USHORT deviceNo );
extern LONG USBH_IDE_FuncDMAStartA( USHORT id, USHORT deviceNo, UCHAR transferMode, DRIVEACCESS_FUNCTRANPARA *pTranPara );
extern LONG USBH_IDE_FuncDMAStop( USHORT id, USHORT deviceNo );
extern LONG USBH_IDE_FuncGetDMAStatus( USHORT id, USHORT deviceNo, ULONG *pStatus );
extern LONG USBH_IDE_FuncSoftDataTransfer( USHORT id, USHORT deviceNo, UCHAR transferMode, DRIVEACCESS_FUNCTRANPARA *pTranPara );
extern LONG USBH_IDE_FuncGetStatus( USHORT id, USHORT deviceNo, ULONG *pStatus, ULONG *pTransferSize, UCHAR *pSenseData );
extern LONG USBH_IDE_FuncSyncCommand( USHORT id, USHORT deviceNo, UCHAR transferMode, DRIVEACCESS_FUNCCMDPARA *pCmdBlock, DRIVEACCESS_FUNCTRANPARA *pTranPara, ULONG *pStatus, UCHAR *pSenseData );
extern LONG USBH_IDE_FuncRegisterCBRDMAComp( USHORT id, USHORT cbrID, USHORT deviceNo, CALLBACK_PROC pfnNotifyDMAComp );
extern LONG USBH_IDE_FuncUnregisterCBRDMAComp( USHORT id, USHORT cbrID, USHORT deviceNo, CALLBACK_PROC pfnNotifyDMAComp );
extern LONG USBH_IDE_FuncRegisterCBRIntrqComp( USHORT id, USHORT cbrID, USHORT deviceNo, CALLBACK_PROC pfnNotifyIntrqComp );
extern LONG USBH_IDE_FuncUnregisterCBRIntrqComp( USHORT id, USHORT cbrID, USHORT deviceNo, CALLBACK_PROC pfnNotifyIntrqComp );

#ifdef __cplusplus
	}
#endif /* cplusplus */

#endif /* USBH_IDE_API_H */

⌨️ 快捷键说明

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