DIR

DIR構造体は、f_opendir(), f_readdir()のワーク・エリアとして使用されます。

typedef struct _DIR {
    WORD    id;        /* Owner file system mount ID */
    WORD    index;     /* Current index number */
    FATFS*  fs;        /* Pointer to the owner file system object */
    DWORD   sclust;    /* Table start cluster (0:Static table) */
    DWORD   clust;     /* Current cluster */
    DWORD   sect;      /* Current sector */
    BYTE*   dir;       /* Pointer to the current SFN entry in the win[] */
    BYTE*   fn;        /* Pointer to the SFN (in/out) {file[8],ext[3],status[1]} */
#if _USE_LFN
    WCHAR*  lfn;       /* Pointer to the LFN working buffer */
    WORD    lfn_idx;   /* Last matched LFN index (0xFFFF:No LFN) */
#endif
} DIR;

戻る