资源简介
a portable FAT decoder class which is hardware independent.All hardware specific operations are abstracted with the class HALayer. The FATLib class operates with only the buffer which it passes to the class HALayer!!!

代码片段和文件信息
/**
* FATLib.c: implementation of the FATLib class.
* class FATLib: a portable FAT decoder class which is hardware independent.
* All hardware specific operations are abstracted with the
* class HAlayer. The FATLib class operates with only the buffer
* which it passes to the class HAlayer
*
* Author: Ivan Sham
* Date: July 1 2004
* Version: 2.0
* Note: Developed for William Hue and Pete Rizun
*
*****************************************************************
* Change Log
*----------------------------------------------------------------
* Date | Author | Reason for change
*----------------------------------------------------------------
* Aug31/04 William Hue Changed char types to
* unsigned char.
*
* Jul18/04 Alex Jiang Made local variables and functions
* static and moved to fatlib.c.
* Prefixed public functions with
* “fat_“.
*
* Jan02/05 William Hue Various bugfixes and clean-up for
* Circuit Cellar article.
**/
#include “FATLib.h“
//------------------
// private member variables:
//------------------
/**
* defines the structure of a opened file
**/
typedef struct
{
unsigned long currentCluster;
unsigned int byteCount;
unsigned long firstCluster;
unsigned long fileSize;
unsigned long dirLocation;
unsigned char sectorCount;
signed char fileHandle;
unsigned char updateDir;
} file;
/**
* array of size BUFFER_SIZE of pointers to nodes of
* struct file opened for reading
**/
static file openedRead[BUFFER_SIZE];
/**
* array of size BUFFER_SIZE of pointers to nodes of
* struct file opened for writing
**/
static file openedWrite[BUFFER_SIZE];
/**
* sectors offset from absolute sector 0 in the MMC/SD.
* All operations with the MMC/SD card are offseted with
* this variable in a microcontroller application
* ****this equals zero in Windows application
**/
unsigned long sectorZero;
/**
* the sector in the MMC/SD card where data starts.
* This is right after the root directory sectors in FAT16
**/
static unsigned long dataStarts;
/**
* the first sector where entries in the root directory is
* stored in FAT16.
**/
static unsigned long rootDirectory;
/**
* the number of sectors per File Allocation Table (FAT)
**/
static unsigned long sectorsPerFAT;
/**
* the number of sectors per cluster for the MMC/SD card
**/
static unsigned int sectorsPerCluster;
/**
* the number of reserved sectors in the MMC/SD card
**/
static unsigned int reservedSectors;
/**
* the number of File Allocation Table (FAT) on the MMC/SD.
* this is usually 2
**/
static unsigned int numOfFATs;
/**
* the number of sectors in the section for root directory
* entries.
**/
st
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 61602 2008-06-07 18:48 MSP430_FAT16源码\Debug\Exe\fat16.d43
文件 321 2008-11-15 19:08 MSP430_FAT16源码\Debug\Obj\fat16.pbd
文件 149069 2008-06-06 23:42 MSP430_FAT16源码\Debug\Obj\fatLib.r43
文件 55874 2008-06-06 23:42 MSP430_FAT16源码\Debug\Obj\HAla
文件 15630 2008-06-06 23:42 MSP430_FAT16源码\Debug\Obj\lcd_ch.r43
文件 39563 2008-06-07 18:48 MSP430_FAT16源码\Debug\Obj\main.r43
文件 6230 2008-06-06 23:42 MSP430_FAT16源码\Debug\Obj\USART.r43
文件 5201 2008-11-15 19:25 MSP430_FAT16源码\fat16.dep
文件 11915 2008-05-29 00:47 MSP430_FAT16源码\fat16.ewd
文件 44377 2008-06-06 23:42 MSP430_FAT16源码\fat16.ewp
文件 159 2008-06-25 12:46 MSP430_FAT16源码\fat16.eww
文件 37565 2008-06-06 23:31 MSP430_FAT16源码\fatLib.c
文件 5182 2005-01-02 20:54 MSP430_FAT16源码\fatlib.h
文件 14853 2008-05-29 20:52 MSP430_FAT16源码\HAla
文件 9107 2008-05-29 20:06 MSP430_FAT16源码\HAla
文件 618 2008-04-12 15:42 MSP430_FAT16源码\LCD.h
文件 3208 2008-05-30 22:53 MSP430_FAT16源码\LCD_source\lcd_ch.c
文件 867 2008-04-13 15:09 MSP430_FAT16源码\LCD_source\lcd_ch.h
文件 618 2008-04-12 15:42 MSP430_FAT16源码\LCD_source\main_include\LCD.h
文件 6076 2008-06-07 18:48 MSP430_FAT16源码\main.c
文件 6459 2008-11-15 19:25 MSP430_FAT16源码\settings\fat16.dbgdt
文件 901 2008-11-15 19:25 MSP430_FAT16源码\settings\fat16.dni
文件 3543 2008-06-25 12:46 MSP430_FAT16源码\settings\fat16.wsdt
文件 1300 2004-08-06 11:07 MSP430_FAT16源码\typedefs.h
文件 295 2008-04-27 21:16 MSP430_FAT16源码\USART.h
文件 295 2008-04-27 21:16 MSP430_FAT16源码\USART_source\main_include\USART.h
文件 2418 2008-06-03 00:46 MSP430_FAT16源码\USART_source\USART.c
文件 1242 2008-05-24 00:55 MSP430_FAT16源码\USART_source\USART_ch.h
目录 0 2009-03-11 23:43 MSP430_FAT16源码\Debug\Exe
目录 0 2009-03-11 23:43 MSP430_FAT16源码\Debug\List
............此处省略11个文件信息
- 上一篇:beckhoff ADS
- 下一篇:GPS开发资料
相关资源
- IAR FOR 430 破解工具
- IAR for MSP430 v7.10.1 注册机
- 基于MSP430G2553的蓝牙控制小车
- 利用DS1302和msp430进行闹钟和万年历的
- msp430F149操作红外接收模块源码
- [免费]msp430f149控制PS2键盘并用1602显示
- MSP430f149读sd FAT txt
- 430系列单片机USBFET下载驱动
- 详细图解联想Y430\\Y530笔记本SLIC表2.
- 用8位spi实现16位spi
- 基于MSP430单片机的实时多任务操作系
- Promise FastTrak SX4300产品手册
- 基于ZigBee的温室花房环境监测系统设
- DELL T430 H330 08R2驱动
- 惠普hp designjet430打印机驱动 官方版
- MSP430系列单片机例程(msp430f235)
- MSP430控制AD9850产生频率可调的方波及
- msp430f449程序
- AFE4300参考资料
- 基于MSP430的数控直流电压源
- MSP430F5438A Timer_B 操作实验
- MSP430F5438 UCS 时钟操作实验
- MSP430F5438A Timer_A 操作实验
- MSP430F5438 看门狗实验
- IAR EW430连接仿真器在线仿真
- 初识畅学系列MSP430F149单片机开发板
- 畅学多功能实验箱 MSP430F5438 RTC 操作实
- MSP430F5438A RAM操作实验
- msp430f5438a技术资料
- MSP430 JTAGUSB的和并口的与目标板连接的
评论
共有 条评论