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

📄 partition.h

📁 Philips LPC2138 Demo Application with Keil C
💻 H
字号:
/*****************************************************************************\*              efs - General purpose Embedded Filesystem library              **          ---------------------------------------------------------          **                                                                             ** Filename : partition.h                                                      ** Description : Headerfile for partition.c                                    **                                                                             ** This library is free software; you can redistribute it and/or               ** modify it under the terms of the GNU Lesser General Public                  ** License as published by the Free Software Foundation; either                ** version 2.1 of the License, or (at your option) any later version.          **                                                                             ** This library is distributed in the hope that it will be useful,             ** but WITHOUT ANY WARRANTY; without even the implied warranty of              ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU           ** Lesser General Public License for more details.                             **                                                                             **                                                    (c)2004 Lennart Yseboodt **                                                    (c)2004 Michael De Nil   *\*****************************************************************************/#ifndef __PARTITION_H__#define __PARTITION_H__/*****************************************************************************/#include "config.h"#include "error.h"#include "interface.h"#include "disc.h"#include "types.h"/*****************************************************************************/#define PT_FAT12  0x01#define PT_FAT16A 0x04#define PT_FAT16  0x06#define PT_FAT32  0x0B#define PT_FAT32A 0x5C#define PT_FAT16B 0x5E/*************************************************************************************\              Partition               -------* Disc*		disc				Pointer to disc containing this partition.* eint8		activePartition	 	Array subscript for disc->partitions[activePartition]\*************************************************************************************/struct Partition{	Disc *disc; 	esint8 activePartition;};typedef struct Partition Partition;void part_initPartition(Partition *part,Disc* refDisc);eint16 part_isFatPart(euint8 type);esint8 part_readBuf(Partition *part, euint32 address, euint8* buf);esint8 part_readPartBuf(Partition *part, euint32 address, euint8* buf, euint32 offset, euint16 len);eint16 part_writeBuf(Partition *part,euint32 address,euint8* buf);euint8* part_getSect(Partition *part, euint32 address,euint8 mode);esint8 part_relSect(Partition *part, euint8* buf);esint8 part_flushPart(Partition *part,euint32 addr_l, euint32 addr_h);esint8 part_directSectorRead(Partition *part, euint32 address, euint8* buf);esint8 part_directSectorWrite(Partition *part, euint32 address, euint8* buf);euint32 part_getRealLBA(Partition *part,euint32 address);#include "extract.h"#endif

⌨️ 快捷键说明

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