Files
Espresso/include/fs/fat32.h

23 lines
581 B
C
Raw Normal View History

2025-05-28 14:41:02 -05:00
#ifndef _FAT32_H
#define _FAT32_H
2025-06-13 18:03:39 -05:00
#include <types.h>
2025-05-28 14:41:02 -05:00
#define FAT32_MAX_FILENAME 11
#define FAT32_ATTR_DIRECTORY 0x10
int32_t fat32_init(int32_t drive); /* 0 = primary master */
int32_t fat32_list_root(void);
2025-06-27 14:48:06 -05:00
2025-05-28 14:41:02 -05:00
int32_t fat32_read_file(const char *name, uint8_t *buffer, uint32_t max_len);
int32_t fat32_write_file(const char *name, const uint8_t *buffer, uint32_t len);
2025-06-27 14:48:06 -05:00
2025-05-28 14:41:02 -05:00
int32_t fat32_create_file(const char *name);
int32_t fat32_create_directory(const char *name);
2025-06-27 14:48:06 -05:00
2025-05-28 14:41:02 -05:00
int32_t fat32_change_directory(const char *name);
2025-06-27 14:48:06 -05:00
void format_83_name(const char* input, char* output);
2025-05-28 14:41:02 -05:00
#endif