ARM FAT32 源代码 1 --hdinterface.h

/*!
 *@file     hdinterface.h
 *
 *
 *
 *@version    v1.0.0
 *@date        2007
 *@author     jacky291@126.com
 */
#ifndef    __DISK_H
#define   __DISK_H

#ifndef    __CONFIG_H
#include "config.h"
#endif

 


 /*!
*@brief
*               diskRead()
*               read the data from the sd card
*               when the addr is block_start addr and the len is READ_BL_LEN it will be the *               fast!
*@param  uint32 addr:start address
*@param  uint32 len:the lenth read
*@param  uint8 *buff:the receive buff
*@retval return the readed byte length
*/

extern uint32 diskRead(uint32 addr,uint32 len,uint8 *buff);

 

 

 

 /*!
*@brief
*               diskWrite()
*               write the data to the sd card
*               when the addr is block_start addr and the len is READ_BL_LEN it will be the *               fast!
*@param  uint32 addr:start address
*@param  uint32 len:the lenth write
*@param  uint8 *buff:the write buff
*@retval return the writed byte length
*/
extern uint32 diskWrite(uint32 addr,uint32 len,uint8 *buff);

 

 

 

/*!
*@brief
*                diskEraser()
*                eraser the data from the sd card
*                when the addr is block_start addr and the len is READ_BL_LEN it will be the *                fast!
*@param  uint32 addr:start address
*@param  uint32 len:the lenth eraser
*@retval   return the erasered byte length
*/
extern uint32 diskEraser(uint32 addr,uint32 len);

 

 

#endif

投 票

觉得本文不错,投一票   

评 论


验证码: 看不清?换一张