📄 if_multdevice.h
字号:
/*****************************************************************************\
* efs - General purpose Embedded Filesystem library *
* --------------------------------------------------------- *
* *
* Filename : sd.h *
* Revision : Initial developement *
* Description : Headerfile for sd.c *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2.1 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* (c)2005 Michael De Nil *
* (c)2005 Lennart Yseboodt *
\*****************************************************************************/
#ifndef __IF_MULT_DEVICE_H__
#define __IF_MULT_DEVICE_H__
/*****************************************************************************/
#include "config.h"
#include "types.h"
#include "debug.h"
#include "file_control.h"
/*****************************************************************************/
//#define FS_CD_USB_TIME_TEST
#ifdef FS_CD_USB_TIME_TEST
extern u32 au32FsCdTestTimeStamp1[8];
extern u32 au32FsCdTestTimeStamp2[8];
extern u32 au32FsCdTestTimeGap[8];
#endif // FS_CD_USB_TIME_TEST
/*****************************************************************************/
struct hwInterface
{
EN_DEVICE_TYPE enDevice;
u32 sectorCount;
u32 u32BytesPerSector;
};
typedef struct hwInterface hwInterface;
/*****************************************************************************/
esint8 if_readBuf(hwInterface* pstHwDev, euint32 u32Addr, euint8* pu8Buf);
esint8 if_readBufWithLength(hwInterface* pstHwDev, euint32 u32Addr, euint16 u16SectorLength, euint8* pu8Buf);
esint8 if_writeBuf(hwInterface* pstHwDev, euint32 u32Addr, euint8* pu8Buf);
esint8 if_writeBufWithLength(hwInterface* pstHwDev, euint32 u32Addr, euint16 u16SectorLength, euint8* pu8Buf);
esint8 if_ProtectInterface(hwInterface* pstHwDev);
esint8 if_initInterface(hwInterface* pstHwDev, euint8* pu8Opts);
/*****************************************************************************/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -