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

📄 sdcmd.h__.htm

📁 周立功的SD卡源代码,请大家参考,希望对大家有所帮助,
💻 HTM
字号:
<html><head><title>SD卡读写模块.rar - sdcmd.h</title></head><body>
<script language="JavaScript">
function openwin(url)
{
 window.open(url, 'ProgramSourceCode');
}
</script>
<textarea cols=105 rows=17>文件头:
/****************************************Copyright (c)**************************************************

**                               Guangzhou ZLG-MCU Development Co.,LTD.

**                                      graduate school

**                                 http://www.zlgmcu.com

**

**--------------File Info-------------------------------------------------------------------------------

** File name:			sddriver.c

** Last modified Date:	2005-1-6

** Last Version:		V1.0

** Descriptions:		sd 卡驱动软件包: SD卡物理层 ---- SD卡SPI模式支持的命令(头文件) 

**						Soft Packet of SD Card Driver: commands that sd card supported in spi mode(header file)

**

**------------------------------------------------------------------------------------------------------

** Created by:			Ming Yuan Zheng

** Created date:		2005-1-6

** Version:				V1.0

** Descriptions:		The original version

**

**--------------------------------------------------------------------------------------------</textarea><BR>
<table width=756 border=0>
<tr><td width=1 bgcolor=#B0B0B0></td><td>
<script type="text/javascript"><!--
google_ad_client = "pub-8055710228382273";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "333333";
google_color_url = "666666";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td width=15 bgcolor=#E4E0D8></td></tr></table>
<textarea cols=105 rows=12>文件尾:
					// 擦块起始地址

INT8U SD_EraseEndBlock(INT32U endblock);						// 擦块终止地址

INT8U SD_EraseSelectedBlock(void);								// 擦除所选的块





INT8U SD_ReadOCR(INT8U ocrlen,INT8U *recbuf);					// 读OCR			read OCR register

INT8U SD_EnableCRC(INT8U bEnable);								// 使能CRC校验		enable CRC





// 特殊应用命令

INT8U SD_ReadSD_Status(INT8U sdslen, INT8U *recbuf);			// 读SD_Status  read SD_Status 

INT8U SD_GetNumWRBlcoks(INT32U *blocknum);						// 得到正确写入块数

INT8U SD_ReadSCR(INT8U scrlen, INT8U *recbuf);					// 读SCR 		read SCR register





// 数据流函数

INT8U SD_ReadRegister(INT32U len, INT8U *recbuf);						// 读数据

INT8U SD_ReadBlockData(INT32U len, INT8U *recbuf);						// 读块数据

INT8U SD_WriteBlockData(INT8U bmulti, INT32U len, INT8U *sendbuf);		// 写块数据



// 其它函数

void SD_StopMultiToken(void);									// 停止多块写令牌

INT8U SD_WaitBusy(INT8U waittype);								// 忙

void SD_SPIDelay(INT8U value);									// 发生SPI时钟

































</textarea><BR>
<a href=http://www.pudn.com><small><font color=#A0A0A0>程序员联合开发网</font></small></a>&nbsp;&nbsp;<a href="/downloads28\sourcecode\embed/detail90300.html"><small><font color=#A0A0A0>返回SD卡读写模块.rar</font></small></a>
&nbsp;&nbsp;<a href="javascript:openwin('/view_src.asp?id=90300&f=SD卡读写模块/SD/sdcmd.h');"><small><font color=#A00000>在线阅读整个文件</font></small></a>
</body></html>

⌨️ 快捷键说明

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