fat32_misc.h
来自「FAT32代码」· C头文件 代码 · 共 42 行
H
42 行
#include "..\define.h"
#include "FAT32_Definitions.h"
#include "FAT32_opts.h"
#ifndef __FATMISC_H__
#define __FATMISC_H__
//-----------------------------------------------------------------------------
// Defines
//-----------------------------------------------------------------------------
#define MAX_LONGFILENAME_ENTRIES 20
//-----------------------------------------------------------------------------
// Globals
//-----------------------------------------------------------------------------
struct
{
// Long File Name Structure (max 260 LFN length)
BYTE String[MAX_LONGFILENAME_ENTRIES][13];
BYTE no_of_strings;
} FAT32_LFN;
//-----------------------------------------------------------------------------
// Prototypes
//-----------------------------------------------------------------------------
void FATMisc_ClearLFN(BOOL wipeTable);
void FATMisc_CacheLFN(BYTE *entryBuffer);
void FATMisc_GetLFNCache(BYTE *strOut);
int FATMisc_If_LFN_TextOnly(FAT32_ShortEntry *entry);
int FATMisc_If_LFN_Invalid(FAT32_ShortEntry *entry);
int FATMisc_If_LFN_Exists(FAT32_ShortEntry *entry);
int FATMisc_If_noLFN_SFN_Only(FAT32_ShortEntry *entry);
int FATMisc_If_dir_entry(FAT32_ShortEntry *entry);
int FATMisc_If_file_entry(FAT32_ShortEntry *entry);
int FATMisc_LFN_to_entry_count(char *filename);
void FATMisc_LFN_to_lfn_entry(char *filename, BYTE *buffer, int entry, BYTE sfnChk);
void FATMisc_Create_sfn_entry(char *shortfilename, UINT32 size, UINT32 startCluster, FAT32_ShortEntry *entry);
BOOL FATMisc_CreateSFN(char *sfn_output, char *filename);
BOOL FATMisc_GenerateTail(char *sfn_output, char *sfn_input, UINT32 tailNum);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?