sdcrc.h

来自「Read MP3 from sd,send vs1003 decode」· C头文件 代码 · 共 44 行

H
44
字号
/****************************************Copyright (c)**************************************************
**                               Guangzhou ZLG-MCU Development Co.,LTD.
**                                      graduate school
**                                 http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File name:			sdcrc.h
** Last modified Date:	2005-3-11
** Last Version:		V2.0
** Descriptions:		SD/MMC卡读写模块: 相关工具函数 ---- CRC校验头文件
**						Soft Packet of SD/MMC Card: tool funcitons  ---- crc check 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: 
**
********************************************************************************************************/

#include "sdconfig.h"

#ifndef __SDCRC_H__
#define __SDCRC_H__

extern uint16 SD_GetCRC16(uint8 *pSource,uint16 len);	//得到len个字节的CRC16

extern uint8 SD_GetCmdByte6(uint8 cmd,uint8 *param);	//得到SD命令的第6个字节: CRC7 + 停止位1

extern uint8 SD_GetCRC7(uint8 *pSource,uint16 len);		//得到len个字节的CRC7

#endif

⌨️ 快捷键说明

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