sdmmc.h

来自「SD卡的其本操作函数」· C头文件 代码 · 共 30 行

H
30
字号
extern	data	U8	gc_CurrentCard;
extern	data	U8	gc_ReadWriteTimeOut;
extern	data	U8	gc_ReadWriteDataArea;

extern	xdata	U8	gc_SD_OCR[4];
extern	xdata	U8	gc_SD_RCA[2];
extern	xdata	U8	gc_SD_CID[16];
extern	xdata	U8	gc_SD_CSD[16];
extern	xdata	U16	gw_SD_BlockSize;
extern	xdata	U32	gw_SD_BlockNum;	

extern	void	SD_SetClock(U8 ClockValue);
extern	void	SdDetect(void);
extern	void	CommandToSd(U8 *ComBuff);
extern	void	SdTxDummy(void); 
extern	void	SDWaitIdle(void);
extern	void	SD_SetBlockLen(U16 BlockSize);
extern	bit		STORAGE_Detect();
extern	U8		SD_SetInterface(U8 tc_CurrCard);
extern	U8		SDIdentification(U8 tc_CurrCard);
extern	U8		SDToRespond(U8 *tc_RespBuff,U8 tc_RespType,U8 tc_CRC);
extern	U8		SDCheckDat0(void);
extern	U8		SD_SetBusWidth(U8 tc_BusMode);
extern	U8		SD_Initializes(U8 tc_CurrCard);
extern	U8		SD_StandByToTrans(void);
extern	U8		SD_STORAGE_Initialize(void);
extern	U8		SD_Read_LogicSector (U32 tdw_LogicSectorAddr,U32 tdw_ReadSectorNumber);
extern	U8		SD_Write_LogicSector(U32 tdw_LogicSectorAddr,U32 tdw_WriteSectorNumber);

⌨️ 快捷键说明

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