############################################################################### ############################################################################### #### ############################################# #### ezLCD SD Access Examples ############################################# #### ############################################# ############################################################################### ############################################################################### SD Source Code examples are provided to illustrate how to use SD access commands. The are provided on "as is" bases. There is no warranty whatsoever. ezLCD-004 Interface =================== All examples use USB interface. Development Environment ======================= All examples are written in 'C'. 'MS Visual C++ 6.0' and 'Borland C++ Builder 6.0' projects are provided with the examples, however any windows C compiler should be able to build the examples without any errors. Note: 'Borland C++ Builder 6.0' projects can also be opened and compiled by ----- the newest 'Borland Turbo C++ Explorer' available for FREE from: http://www.turboexplorer.com/cpp Directories =========== Exe - build executables Sources - 'C' sources VisualC - 'MS Visual C++ 6.0' projects Borland - 'Borland C++ Builder 6.0' projects Projects ======== SDicon - Displays a bitmap from the SD card on the ezLCD-004 screen. Sources: icon.c, ezLCDio.c, ezLCDdll.c Headers: mytypes.h, ezLCDio.h, ezLCDdll.h, CmdCodes.h SDsize - Reads and displays the size of the SD card. Sources: size.c, ezLCDio.c, ezLCDdll.c Headers: mytypes.h, ezLCDio.h, ezLCDdll.h, CmdCodes.h SDflist - Reads and prints the list the files which reside in the particular directory of the SD card. Sources: flist.c, ezLCDio.c, ezLCDdll.c Headers: mytypes.h, ezLCDio.h, ezLCDdll.h, CmdCodes.h SDfsize - Reads and displays the size of the file from formatted SD card. Sources: fsize.c, ezLCDio.c, ezLCDdll.c Headers: mytypes.h, ezLCDio.h, ezLCDdll.h, CmdCodes.h SDfget - Copies the file from SD Card to the PC. Sources: fget.c, ezLCDio.c, ezLCDdll.c Headers: mytypes.h, ezLCDio.h, ezLCDdll.h, CmdCodes.h SDfput - Copies the file from the PC to SD Card. Sources: fput.c, ezLCDio.c, ezLCDdll.c Headers: mytypes.h, ezLCDio.h, ezLCDdll.h, CmdCodes.h SDfdel - Deletes the file from the SD Card. Sources: fdel.c, ezLCDio.c, ezLCDdll.c Headers: mytypes.h, ezLCDio.h, ezLCDdll.h, CmdCodes.h SDrawrd - Reads the raw data from the SD Card and displys it on the PC screen. Sources: rawrd.c, ezLCDio.c, ezLCDdll.c Headers: mytypes.h, ezLCDio.h, ezLCDdll.h, CmdCodes.h SDformat - Formats the SD card in FAT16, displaying the progress on the ezLCD. Sources: rawrd.c, ezLCDio.c, ezLCDdll.c, fat16.c Headers: mytypes.h, ezLCDio.h, ezLCDdll.h, CmdCodes.h, fat16.h Common Files ============ ezLCDdll.c - This file is used to dynamically load the ezLCD.dll and initialize it's functions. The ezLCD.dll is a user-mode USB driver supplied with the ezLCD-004. ezLCDio.c - Contains functions, which handle the USB communication between ezLCD-004 and the PC using the ezLCD.dll routines. Project-specific Files ====================== icon.c - SDicon project main file. size.c - SDsize project main file. flist.c - SDflist project main file. fsize.c - SDfsize project main file. fget.c - SDfget project main file. fput.c - SDfput project main file. fdel.c - SDfdel project main file. rawrd.c - SDrawrd project main file. format.c - SDformat project main file. fat16.c - Contains functions, which map FAT16 structures. This file is used in the SDformat project only.