blob: 39d22f622d6a807259a84b76721dbd263de75945 (
plain)
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
|
#ifndef FAT32_H_
#define FAT32_H_
#include <stdint.h>
typedef struct {
uint32_t size;
uint32_t start;
} file_t;
/**
* Finds a FAT partition on the SD card.
* @return non-zero if partition found
*/
int fat_find(void);
/**
* Searches for the given file, returning necessary information to use it.
* @param name the file's name
* @return a file data structure, null if not found
*/
file_t *fat_findfile(const char *name);
/**
*
*/
char *fat_readfile(file_t *file);
char *fat_getname(uint32_t index);
#endif // FAT32_H_
|