?? mmcapi.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 + -