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

📄 mmcapi.h

📁 老外的一个开源项目
💻 H
字号:
// Copyright (c) David Vescovi.  All rights reserved.
// Part of Project DrumStix
// Windows Embedded Developers Interest Group (WE-DIG) community project.
// http://www.we-dig.org
// Copyright (c) Microsoft Corporation.  All rights reserved.
//------------------------------------------------------------------------------
//
//  File: mmcapi.h
//
//  This file contains definitions specific to the MMC API.
//
//
//------------------------------------------------------------------------------
#ifndef __MMCAPI_H__
#define __MMCAPI_H__


#ifdef __cplusplus
extern "C" {
#endif

#include "bsp.h"

// Drive geometry structure
typedef struct drv_geometry_desc
{
	UINT32	totalLBA;			// Total drive logical blocks
	UINT16	dfltCyl;			// Number of cylinders
	UINT16	dfltHd;				// Number of Heads
	UINT16	dfltSct;			// Sectors per track
	UINT16	dfltBytesPerSect;	// Bytes per sector
	UCHAR	serialNum[16];		// Drive serial	number in ASCII	mode
	UCHAR	modelNum[32];		// Drive model number in ASCII mode
} DRV_GEOMETRY_DESC, *PDRV_GEOMETRY_DESC;

BOOL mmc_init(void);
BOOL mmc_drive_open(void);
BOOL mmc_drive_close(void);
BOOL mmc_read_serial(PDRV_GEOMETRY_DESC idDrvPtr);
BOOL mmc_read(ULONG sector, USHORT count, UCHAR *buffer);
BOOL mmc_write(ULONG sector, UCHAR *buffer, USHORT count);
BOOL mmc_erase(ULONG sector, USHORT count);

#ifdef __cplusplus
}
#endif

#endif



⌨️ 快捷键说明

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