📄 usbh_ide_if.h
字号:
/*
* description: USBH IDE Interface Definition(global)
* Maker : Shuichi Yanagihara
* Copyright : (C)2005,SEIKO EPSON Corp. All Rights Reserved.
*/
#ifndef USBH_IDE_IF_H
#define USBH_IDE_IF_H
#ifdef __cplusplus
extern "C" {
#endif /* cplusplus */
/*****************************************
* constants define
*****************************************/
/* Device type setting */
#define USBH_IDE_FUNC_HDD (1)
#define USBH_IDE_FUNC_CD (2)
#define USBH_IDE_FUNC_MO (3)
/* TransfeMode setting */
#define USBH_IDE_FUNC_PIO (1)
#define USBH_IDE_FUNC_DMA (2)
#define USBH_IDE_FUNC_DIRECT_COPY (3)
/* Direction setting */
#define USBH_IDE_FUNC_IN (1)
#define USBH_IDE_FUNC_OUT (2)
/* DMA Status setting */
#define USBH_IDE_FUNC_DMA_EXEC (1)
#define USBH_IDE_FUNC_DMA_STOP (2)
#define USBH_IDE_FUNC_DMA_COMP (3)
/* Device Status setting */
#define USBH_IDE_FUNC_CMD_STOP (1)
#define USBH_IDE_FUNC_CMD_EXEC (2)
#define USBH_IDE_FUNC_CMD_COMP (3)
#define USBH_IDE_FUNC_STATUS_BSY (4)
#define USBH_IDE_FUNC_STATUS_TRAN_READY (5)
#define USBH_IDE_FUNC_STATUS_DEVICE_ERR (6)
#define USBH_IDE_FUNC_STATUS_CRC_ERR (7)
#define USBH_IDE_FUNC_STATUS_WP_ERR (8)
#define USBH_IDE_FUNC_STATUS_MC_ERR (9)
#define USBH_IDE_FUNC_STATUS_IDNF_ERR (10)
#define USBH_IDE_FUNC_STATUS_ABORT_ERR (11)
#define USBH_IDE_FUNC_STATUS_NM_ERR (12)
/*****************************************
* Callback function definition
*****************************************/
/*****************************************
* Enumeration type definition
*****************************************/
/*****************************************
* structures defination
*****************************************/
/*****************************************
* Function prototype declaration
*****************************************/
extern LONG USBH_IDE_IFReset( void );
extern LONG USBH_IDE_IFDeviceReset( USHORT deviceNo );
extern LONG USBH_IDE_IFGetDeviceList( UCHAR *pList );
extern LONG USBH_IDE_IFGetDeviceParameter( USHORT deviceNo, UCHAR *pDataPtr);
extern LONG USBH_IDE_IFCommandOut( USHORT deviceNo, UCHAR transferMode, DRIVEACCESS_FUNCCMDPARA *pCmdBlock );
extern LONG USBH_IDE_IFCommandStop( USHORT deviceNo);
extern LONG USBH_IDE_IFDMAStartA( USHORT deviceNo, UCHAR transferMode, DRIVEACCESS_FUNCTRANPARA *pTranPara );
extern LONG USBH_IDE_IFDMAStop( USHORT deviceNo );
extern LONG USBH_IDE_IFGetStatus( USHORT deviceNo, ULONG *pStatus, ULONG *pTransferSize, UCHAR *pSenseData );
extern LONG USBH_IDE_IFSyncCommand( USHORT deviceNo, UCHAR transferMode, DRIVEACCESS_FUNCCMDPARA *pCmdBlock, DRIVEACCESS_FUNCTRANPARA *pTranPara, ULONG *pStatus, UCHAR *pSenseData );
extern LONG USBH_IDE_IFRegisterCBRDMAComp( USHORT deviceNo, CALLBACK_PROC pfnNotifyDMAComp );
extern LONG USBH_IDE_IFUnregisterCBRDMAComp( USHORT deviceNo, CALLBACK_PROC pfnNotifyDMAComp );
extern LONG USBH_IDE_IFRegisterCBRIntrqComp( USHORT deviceNo, CALLBACK_PROC pfnNotifyIntrqComp );
extern LONG USBH_IDE_IFUnregisterCBRIntrqComp( USHORT deviceNo, CALLBACK_PROC pfnNotifyIntrqComp );
#ifdef __cplusplus
}
#endif /* cplusplus */
#endif /* USBH_IDE_IF_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -