-
Notifications
You must be signed in to change notification settings - Fork 16
/
readme.html
55 lines (45 loc) · 2.21 KB
/
readme.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<p>It is an open source software to implement FAT file system to
small embedded systems. This is a free software and is opened for education,
research and commercial developments under license policy of following trems.</p>
<p></p>
<p>(C) 2013 vinxru</p>
<p>(C) 2010, ChaN, all right reserved.</p>
<h2>Features</h2>
<img align=right src="icon.png"><h1>VinxFS File System Module</h1>
<li>Very small RAM consumption (64 bytes work area + 33 bytes for second opened file + certain stack)</li>
<li>512 byte temporary buffer. Used only while the function run.</li>
<li>Very small code size. Full version ~6400 bytes (80% of FLASH AMEGA8), </li>
<li>Supports FAT16, FAT32.</li>
<li>Single volume and <b>two opened files</b>.</li>
<li><b>File write function with out restrictions.</b></li>
<li><b>Can create, delete, rename, resize, move, file and directory</b></li>
<h2>Application Interface</h2>
<p>VinxFS module provides following functions.</p>
<li>fs_init - Mount a volume</li>
<li>fs_check - If user changed a drive, when mount it</li>
<li>fs_opendir - Open a directory</li>
<li>fs_readdir - Read a directory item</li>
<li>fs_delete - Delete a file or directory</li>
<li>fs_open - Open a File</li>
<li>fs_openany - Open a file or directory</li>
<li>fs_create - Create a file;</li>
<li>fs_createdir - Create a directory</li>
<li>fs_move0, fs_move - Move or rename a file or directory</li>
<li>fs_lseek - Move read/write pointer</li>
<li>fs_tell - Get read/write pointer</li>
<li>fs_getfilesize - Get file size</li>
<li>fs_read0, fs_read - Read file</li>
<li>fs_write - Write File</li>
<li>fs_write_eof - Truncate file</li>
<li>fs_write_start, fs_write_end - Write temporary buffer to a file</li>
<li>fs_swap - Swap opened files (work with two files)</li>
<li>fs_gettotal - Get total drive space</li>
<li>fs_getfree - Get free drive space</li>
<h2>Drive I/O Interface</h2>
<p>Since the VinxFS module is completely separated from disk I/O layer, it requires
following functions to lower layer to read the physical disk.</p>
<li>sd_init - Initialize disk drive</li>
<li>sd_check - Check if user changed a drive</li>
<li>sd_read - Read partial sector</li>
<li>sd_write512 - Write sector</li>
<p>The module contains driver SD Card connected at ATMega8</p>