4 /* Global sector buffer, data for read/write actions is stored here
\r
6 * Any operation (init, open, seek and read) will clobber it. If you
\r
7 * modify this buffer content, you _MUST_ either follow with a
\r
8 * fat_file_write or a fat_inval_cache _BEFORE_ any other open, read
\r
11 extern unsigned char secbuf[512];
\r
13 /* Initialize, find first partition */
\r
14 unsigned char fat_init(void);
\r
16 /* Open a file by name, one open file at a time, replace the previous one */
\r
17 long fat_open(const unsigned char *name);
\r
19 /* Seek into file WARNING: Can clobber secbuf ! */
\r
20 unsigned char fat_file_seek(unsigned long sector);
\r
21 unsigned char fat_file_next_sector(void);
\r
23 /* Read and write current file sector */
\r
24 unsigned char fat_file_read(void);
\r
25 unsigned char fat_file_write(void);
\r
27 /* Invalidate sector cache */
\r
28 void fat_inval_cache(void);
\r
30 #endif /* __FAT16_H__ */
\r