?? sdhal.h
字號:
/**--------------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: gan peng
** 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);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -