You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
536 B
C

#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_