- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
sdhal.h
资源名称:SD卡读写模块.rar [点击查看]
上传用户:pudewen666
上传日期:2007-06-08
资源大小:75k
文件大小:2k
源码类别:
微处理器开发
开发平台:
Windows_Unix
- /****************************************Copyright (c)**************************************************
- ** Guangzhou ZLG-MCU Development Co.,LTD.
- ** graduate school
- ** http://www.zlgmcu.com
- **
- **--------------File Info-------------------------------------------------------------------------------
- ** File name: sdhal.h
- ** Last modified Date: 2005-1-6
- ** Last Version: V1.0
- ** Descriptions: sd 卡驱动软件包: 硬件抽象层 ---- SPI操作函数头文件
- ** Soft Packet of SD Card Driver: hard abstrast layer ---- function of SPI operation
- ** header file
- **------------------------------------------------------------------------------------------------------
- ** Created by: Ming Yuan Zheng
- ** Created date: 2005-1-6
- ** Version: V1.0
- ** Descriptions: The original version
- **
- **------------------------------------------------------------------------------------------------------
- ** Modified by:
- ** Modified date:
- ** Version:
- ** Descriptions:
- **
- **------------------------------------------------------------------------------------------------------
- ** Modified by:
- ** Modified date:
- ** Version:
- ** Descriptions:
- **
- ********************************************************************************************************/
- /* 检测卡是否完全插入 check weather card is insert entirely */
- extern INT8U SD_ChkCard(void);
- extern INT8U SD_ChkCardWP(void);
- /* 初始化访问SD卡的硬件初始化 initialize the hardware that access sd card */
- extern void SD_HardWareInit(void);
- /* 设置SPI的时钟小于400kHZ set the clock of SPI less than 400kHZ */
- extern void SPI_Clk400k(void);
- /* 设置SPI的clock到最大值 set the clock of SPI to maximum */
- extern void SPI_ClkToMax(void);
- /* 通过SPI接口发送一个字节 send a byte by SPI interface */
- extern void SPI_SendByte(INT8U byte);
- /* 从SPI接口接收一个字节 receive a byte from SPI interface */
- extern INT8U SPI_RecByte(void);
- /* 片选SPI从机 select the SPI slave */
- extern void SPI_CS_Assert(void);
- /* 不片选SPI从机 not select the SPI slave */
- extern void SPI_CS_Deassert(void);