storage_sd_api.h 526 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <furi.h>
  3. #include "filesystem_api_defines.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #define SD_LABEL_LENGTH 34
  8. typedef enum {
  9. FST_UNKNOWN,
  10. FST_FAT12,
  11. FST_FAT16,
  12. FST_FAT32,
  13. FST_EXFAT,
  14. } SDFsType;
  15. typedef struct {
  16. SDFsType fs_type;
  17. uint32_t kb_total;
  18. uint32_t kb_free;
  19. uint16_t cluster_size;
  20. uint16_t sector_size;
  21. char label[SD_LABEL_LENGTH];
  22. FS_Error error;
  23. } SDInfo;
  24. const char* sd_api_get_fs_type_text(SDFsType fs_type);
  25. #ifdef __cplusplus
  26. }
  27. #endif