Loading...
Searching...
No Matches
storage_sd_api.h
1#pragma once
2#include <furi.h>
3#include "filesystem_api_defines.h"
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9#define SD_LABEL_LENGTH 34
10
11typedef enum {
12 FST_UNKNOWN,
13 FST_FAT12,
14 FST_FAT16,
15 FST_FAT32,
16 FST_EXFAT,
17} SDFsType;
18
19typedef struct {
20 SDFsType fs_type;
21 uint32_t kb_total;
22 uint32_t kb_free;
23 uint16_t cluster_size;
24 uint16_t sector_size;
25 char label[SD_LABEL_LENGTH];
26
27 uint8_t manufacturer_id;
28 char oem_id[3];
29 char product_name[6];
30 uint8_t product_revision_major;
31 uint8_t product_revision_minor;
32 uint32_t product_serial_number;
33 uint8_t manufacturing_month;
34 uint16_t manufacturing_year;
35} SDInfo;
36
37const char* sd_api_get_fs_type_text(SDFsType fs_type);
38
39#ifdef __cplusplus
40}
41#endif
Definition storage_sd_api.h:19