Shinichiro Nakamura / Mbed 2 deprecated SDCARD_PFF_CPP

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pff.h Source File

pff.h

00001 /*---------------------------------------------------------------------------/
00002 /  Petit FatFs - FAT file system module include file  R0.02    (C)ChaN, 2009
00003 /----------------------------------------------------------------------------/
00004 / Petit FatFs module is an open source software to implement FAT file system to
00005 / small embedded systems. This is a free software and is opened for education,
00006 / research and commercial developments under license policy of following trems.
00007 /
00008 /  Copyright (C) 2009, ChaN, all right reserved.
00009 /
00010 / * The Petit FatFs module is a free software and there is NO WARRANTY.
00011 / * No restriction on use. You can use, modify and redistribute it for
00012 /   personal, non-profit or commercial use UNDER YOUR RESPONSIBILITY.
00013 / * Redistributions of source code must retain the above copyright notice.
00014 /
00015 /----------------------------------------------------------------------------*/
00016 
00017 #include "integer.h"
00018 
00019 /*---------------------------------------------------------------------------/
00020 / Petit FatFs Configuration Options
00021 /
00022 / CAUTION! Do not forget to make clean the project after any changes to
00023 / the configuration options.
00024 /
00025 /----------------------------------------------------------------------------*/
00026 #ifndef _FATFS
00027 #define _FATFS
00028 
00029 #define    _USE_READ    1    /* pf_read(): 0:Remove ,1:Enable */
00030 
00031 #define    _USE_DIR    1    /* pf_opendir() and pf_readdir(): 0:Remove ,1:Enable */
00032 
00033 #define    _USE_LSEEK    1    /* pf_lseek(): 0:Remove ,1:Enable */
00034 
00035 #define    _USE_WRITE    1    /* pf_write(): 0:Remove ,1:Enable */
00036 
00037 #define _FS_FAT32    1    /* 0:Supports FAT12/16 only, 1:Enable FAT32 supprt */
00038 
00039 
00040 #define    _CODE_PAGE    1
00041 /* Defines which code page is used for path name. Supported code pages are:
00042 /  932, 936, 949, 950, 437, 720, 737, 775, 850, 852, 855, 857, 858, 862, 866,
00043 /  874, 1250, 1251, 1252, 1253, 1254, 1255, 1257, 1258 and 1 (ASCII only).
00044 /  SBCS configurations except for 1 requiers a case conversion table. This
00045 /  might occupy 128 bytes on the RAM on some platforms, e.g. avr-gcc. */
00046 
00047 
00048 #define _WORD_ACCESS    1
00049 /* The _WORD_ACCESS option defines which access method is used to the word
00050 /  data in the FAT structure.
00051 /
00052 /   0: Byte-by-byte access. Always compatible with all platforms.
00053 /   1: Word access. Do not choose this unless following condition is met.
00054 /
00055 /  When the byte order on the memory is big-endian or address miss-aligned
00056 /  word access results incorrect behavior, the _WORD_ACCESS must be set to 0.
00057 /  If it is not the case, the value can also be set to 1 to improve the
00058 /  performance and code efficiency. */
00059 
00060 
00061 /* End of configuration options. Do not change followings without care.     */
00062 /*--------------------------------------------------------------------------*/
00063 
00064 #if _FS_FAT32
00065 #define    CLUST    DWORD
00066 #else
00067 #define    CLUST    WORD
00068 #endif
00069 
00070 /*--------------------------------------------------------------*/
00071 /* Petit FatFs module application interface                     */
00072 
00073 class PetitFileSystem {
00074 public:
00075 
00076     /* File system object structure */
00077     typedef struct _FATFS_ {
00078         BYTE    fs_type;    /* FAT sub type */
00079         BYTE    csize;        /* Number of sectors per cluster */
00080         BYTE    flag;        /* File status flags */
00081         BYTE    csect;        /* File sector address in the cluster */
00082         WORD    n_rootdir;    /* Number of root directory entries (0 on FAT32) */
00083         BYTE*    buf;        /* Pointer to the disk access buffer */
00084         CLUST    max_clust;    /* Maximum cluster# + 1. Number of clusters is max_clust - 2 */
00085         DWORD    fatbase;    /* FAT start sector */
00086         DWORD    dirbase;    /* Root directory start sector (Cluster# on FAT32) */
00087         DWORD    database;    /* Data start sector */
00088         DWORD    fptr;        /* File R/W pointer */
00089         DWORD    fsize;        /* File size */
00090         CLUST    org_clust;    /* File start cluster */
00091         CLUST    curr_clust;    /* File current cluster */
00092         DWORD    dsect;        /* File current data sector */
00093     } FATFS;
00094 
00095 
00096 
00097     /* Directory object structure */
00098 
00099     typedef struct _DIR_ {
00100         WORD    index;        /* Current read/write index number */
00101         BYTE*    fn;            /* Pointer to the SFN (in/out) {file[8],ext[3],status[1]} */
00102         CLUST    sclust;        /* Table start cluster (0:Static table) */
00103         CLUST    clust;        /* Current cluster */
00104         DWORD    sect;        /* Current sector */
00105     } FATDIR;
00106 
00107     /* File status structure */
00108 
00109     typedef struct _FILINFO_ {
00110         DWORD    fsize;        /* File size */
00111         WORD    fdate;        /* Last modified date */
00112         WORD    ftime;        /* Last modified time */
00113         BYTE    fattrib;    /* Attribute */
00114         char    fname[13];    /* File name */
00115     } FILINFO;
00116 
00117 
00118 
00119     /* File function return code (FRESULT) */
00120 
00121     typedef enum {
00122         FR_OK = 0,            /* 0 */
00123         FR_DISK_ERR,        /* 1 */
00124         FR_NOT_READY,        /* 2 */
00125         FR_NO_FILE,            /* 3 */
00126         FR_NO_PATH,            /* 4 */
00127         FR_NOT_OPENED,        /* 5 */
00128         FR_NOT_ENABLED,        /* 6 */
00129         FR_NO_FILESYSTEM    /* 7 */
00130     } FRESULT;
00131 
00132     PetitFileSystem() {
00133     }
00134     ~PetitFileSystem() {
00135     }
00136     FRESULT unmount();
00137     FRESULT mount ();                        /* Mount/Unmount a logical drive */
00138     FRESULT open (const char*);                    /* Open a file */
00139     FRESULT read (void*, WORD, WORD*);            /* Read data from the open file */
00140     FRESULT write (const void*, WORD, WORD*);    /* Write data to the open file */
00141     FRESULT lseek (DWORD);                        /* Move file pointer of the open file */
00142     FRESULT opendir (const char*);            /* Open a directory */
00143     FRESULT readdir (FILINFO*);            /* Read a directory item from the open directory */
00144     DWORD getofs() {
00145         return FileSystemObject.fptr;
00146     }
00147 private:
00148     FATFS FileSystemObject;
00149     FATDIR DirectoryObject;
00150     FATFS *FatFs;    /* Pointer to the file system object (logical drive) */
00151     static void mem_set(void* dst, int val, int cnt);
00152     static int mem_cmp(const void* dst, const void* src, int cnt);
00153     static CLUST get_fat( FATFS *fs,CLUST clst);
00154     static DWORD clust2sect( FATFS *fs,CLUST clst);
00155     static FRESULT dir_rewind( FATFS *fs,FATDIR *dj);
00156     static FRESULT dir_next( FATFS *fs,FATDIR *dj);
00157     static FRESULT dir_find( FATFS *fs,FATDIR *dj);
00158     static FRESULT dir_read(FATFS *fs,FATDIR *dj);
00159     static FRESULT create_name(FATDIR *dj, const char **path);
00160     static void get_fileinfo(FATFS *fs,FATDIR *dj, FILINFO *fno);
00161     static FRESULT follow_path(FATFS *fs, FATDIR *dj, const char *path);
00162     static BYTE check_fs(BYTE *buf, DWORD sect);
00163 };
00164 
00165 /*--------------------------------------------------------------*/
00166 /* Flags and offset address                                     */
00167 
00168 /* File status flag (FATFS.flag) */
00169 
00170 #define    FA_OPENED    0x01
00171 #define    FA_WPRT        0x02
00172 #define    FA__WIP        0x40
00173 
00174 
00175 /* FAT sub type (FATFS.fs_type) */
00176 
00177 #define FS_FAT12    1
00178 #define FS_FAT16    2
00179 #define FS_FAT32    3
00180 
00181 
00182 /* File attribute bits for directory entry */
00183 
00184 #define    AM_RDO    0x01    /* Read only */
00185 #define    AM_HID    0x02    /* Hidden */
00186 #define    AM_SYS    0x04    /* System */
00187 #define    AM_VOL    0x08    /* Volume label */
00188 #define AM_LFN    0x0F    /* LFN entry */
00189 #define AM_DIR    0x10    /* Directory */
00190 #define AM_ARC    0x20    /* Archive */
00191 #define AM_MASK    0x3F    /* Mask of defined bits */
00192 
00193 
00194 /* FatFs refers the members in the FAT structures with byte offset instead
00195 / of structure member because there are incompatibility of the packing option
00196 / between various compilers. */
00197 
00198 #define BS_jmpBoot            0
00199 #define BS_OEMName            3
00200 #define BPB_BytsPerSec        11
00201 #define BPB_SecPerClus        13
00202 #define BPB_RsvdSecCnt        14
00203 #define BPB_NumFATs            16
00204 #define BPB_RootEntCnt        17
00205 #define BPB_TotSec16        19
00206 #define BPB_Media            21
00207 #define BPB_FATSz16            22
00208 #define BPB_SecPerTrk        24
00209 #define BPB_NumHeads        26
00210 #define BPB_HiddSec            28
00211 #define BPB_TotSec32        32
00212 #define BS_55AA                510
00213 
00214 #define BS_DrvNum            36
00215 #define BS_BootSig            38
00216 #define BS_VolID            39
00217 #define BS_VolLab            43
00218 #define BS_FilSysType        54
00219 
00220 #define BPB_FATSz32            36
00221 #define BPB_ExtFlags        40
00222 #define BPB_FSVer            42
00223 #define BPB_RootClus        44
00224 #define BPB_FSInfo            48
00225 #define BPB_BkBootSec        50
00226 #define BS_DrvNum32            64
00227 #define BS_BootSig32        66
00228 #define BS_VolID32            67
00229 #define BS_VolLab32            71
00230 #define BS_FilSysType32        82
00231 
00232 #define MBR_Table            446
00233 
00234 #define    DIR_Name            0
00235 #define    DIR_Attr            11
00236 #define    DIR_NTres            12
00237 #define    DIR_CrtTime            14
00238 #define    DIR_CrtDate            16
00239 #define    DIR_FstClusHI        20
00240 #define    DIR_WrtTime            22
00241 #define    DIR_WrtDate            24
00242 #define    DIR_FstClusLO        26
00243 #define    DIR_FileSize        28
00244 
00245 
00246 
00247 /*--------------------------------*/
00248 /* Multi-byte word access macros  */
00249 
00250 #if _WORD_ACCESS == 1    /* Enable word access to the FAT structure */
00251 #define    LD_WORD(ptr)        (WORD)(*(WORD*)(BYTE*)(ptr))
00252 #define    LD_DWORD(ptr)        (DWORD)(*(DWORD*)(BYTE*)(ptr))
00253 #define    ST_WORD(ptr,val)    *(WORD*)(BYTE*)(ptr)=(WORD)(val)
00254 #define    ST_DWORD(ptr,val)    *(DWORD*)(BYTE*)(ptr)=(DWORD)(val)
00255 #else                    /* Use byte-by-byte access to the FAT structure */
00256 #define    LD_WORD(ptr)        (WORD)(((WORD)*(BYTE*)((ptr)+1)<<8)|(WORD)*(BYTE*)(ptr))
00257 #define    LD_DWORD(ptr)        (DWORD)(((DWORD)*(BYTE*)((ptr)+3)<<24)|((DWORD)*(BYTE*)((ptr)+2)<<16)|((WORD)*(BYTE*)((ptr)+1)<<8)|*(BYTE*)(ptr))
00258 #define    ST_WORD(ptr,val)    *(BYTE*)(ptr)=(BYTE)(val); *(BYTE*)((ptr)+1)=(BYTE)((WORD)(val)>>8)
00259 #define    ST_DWORD(ptr,val)    *(BYTE*)(ptr)=(BYTE)(val); *(BYTE*)((ptr)+1)=(BYTE)((WORD)(val)>>8); *(BYTE*)((ptr)+2)=(BYTE)((DWORD)(val)>>16); *(BYTE*)((ptr)+3)=(BYTE)((DWORD)(val)>>24)
00260 #endif
00261 
00262 
00263 /*--------------------------------------------------------*/
00264 /* DBCS code ranges and SBCS extend char conversion table */
00265 
00266 #if _CODE_PAGE == 932    /* Japanese Shift-JIS */
00267 #define _DF1S    0x81    /* DBC 1st byte range 1 start */
00268 #define _DF1E    0x9F    /* DBC 1st byte range 1 end */
00269 #define _DF2S    0xE0    /* DBC 1st byte range 2 start */
00270 #define _DF2E    0xFC    /* DBC 1st byte range 2 end */
00271 #define _DS1S    0x40    /* DBC 2nd byte range 1 start */
00272 #define _DS1E    0x7E    /* DBC 2nd byte range 1 end */
00273 #define _DS2S    0x80    /* DBC 2nd byte range 2 start */
00274 #define _DS2E    0xFC    /* DBC 2nd byte range 2 end */
00275 
00276 #elif _CODE_PAGE == 936    /* Simplified Chinese GBK */
00277 #define _DF1S    0x81
00278 #define _DF1E    0xFE
00279 #define _DS1S    0x40
00280 #define _DS1E    0x7E
00281 #define _DS2S    0x80
00282 #define _DS2E    0xFE
00283 
00284 #elif _CODE_PAGE == 949    /* Korean */
00285 #define _DF1S    0x81
00286 #define _DF1E    0xFE
00287 #define _DS1S    0x41
00288 #define _DS1E    0x5A
00289 #define _DS2S    0x61
00290 #define _DS2E    0x7A
00291 #define _DS3S    0x81
00292 #define _DS3E    0xFE
00293 
00294 #elif _CODE_PAGE == 950    /* Traditional Chinese Big5 */
00295 #define _DF1S    0x81
00296 #define _DF1E    0xFE
00297 #define _DS1S    0x40
00298 #define _DS1E    0x7E
00299 #define _DS2S    0xA1
00300 #define _DS2E    0xFE
00301 
00302 #elif _CODE_PAGE == 437    /* U.S. (OEM) */
00303 #define _DF1S    0
00304 #define _EXCVT {0x80,0x9A,0x90,0x41,0x8E,0x41,0x8F,0x80,0x45,0x45,0x45,0x49,0x49,0x49,0x8E,0x8F,0x90,0x92,0x92,0x4F,0x99,0x4F,0x55,0x55,0x59,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \
00305                 0x41,0x49,0x4F,0x55,0xA5,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0x21,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00306                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00307                 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF}
00308 
00309 #elif _CODE_PAGE == 720    /* Arabic (OEM) */
00310 #define _DF1S    0
00311 #define _EXCVT {0x80,0x81,0x45,0x41,0x84,0x41,0x86,0x43,0x45,0x45,0x45,0x49,0x49,0x8D,0x8E,0x8F,0x90,0x92,0x92,0x93,0x94,0x95,0x49,0x49,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \
00312                 0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00313                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00314                 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF}
00315 
00316 #elif _CODE_PAGE == 737    /* Greek (OEM) */
00317 #define _DF1S    0
00318 #define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x92,0x92,0x93,0x94,0x95,0x96,0x97,0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, \
00319                 0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0xAA,0x92,0x93,0x94,0x95,0x96,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00320                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00321                 0x97,0xEA,0xEB,0xEC,0xE4,0xED,0xEE,0xE7,0xE8,0xF1,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF}
00322 
00323 #elif _CODE_PAGE == 775    /* Baltic (OEM) */
00324 #define _DF1S    0
00325 #define _EXCVT {0x80,0x9A,0x91,0xA0,0x8E,0x95,0x8F,0x80,0xAD,0xED,0x8A,0x8A,0xA1,0x8D,0x8E,0x8F,0x90,0x92,0x92,0xE2,0x99,0x95,0x96,0x97,0x97,0x99,0x9A,0x9D,0x9C,0x9D,0x9E,0x9F, \
00326                 0xA0,0xA1,0xE0,0xA3,0xA3,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00327                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xB5,0xB6,0xB7,0xB8,0xBD,0xBE,0xC6,0xC7,0xA5,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00328                 0xE0,0xE1,0xE2,0xE3,0xE5,0xE5,0xE6,0xE3,0xE8,0xE8,0xEA,0xEA,0xEE,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF}
00329 
00330 #elif _CODE_PAGE == 850    /* Multilingual Latin 1 (OEM) */
00331 #define _DF1S    0
00332 #define _EXCVT {0x80,0x9A,0x90,0xB6,0x8E,0xB7,0x8F,0x80,0xD2,0xD3,0xD4,0xD8,0xD7,0xDE,0x8E,0x8F,0x90,0x92,0x92,0xE2,0x99,0xE3,0xEA,0xEB,0x59,0x99,0x9A,0x9D,0x9C,0x9D,0x9E,0x9F, \
00333                 0xB5,0xD6,0xE0,0xE9,0xA5,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0x21,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00334                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC7,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00335                 0xE0,0xE1,0xE2,0xE3,0xE5,0xE5,0xE6,0xE7,0xE7,0xE9,0xEA,0xEB,0xED,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF}
00336 
00337 #elif _CODE_PAGE == 852    /* Latin 2 (OEM) */
00338 #define _DF1S    0
00339 #define _EXCVT {0x80,0x9A,0x90,0xB6,0x8E,0xDE,0x8F,0x80,0x9D,0xD3,0x8A,0x8A,0xD7,0x8D,0x8E,0x8F,0x90,0x91,0x91,0xE2,0x99,0x95,0x95,0x97,0x97,0x99,0x9A,0x9B,0x9B,0x9D,0x9E,0x9F, \
00340                 0xB5,0xD6,0xE0,0xE9,0xA4,0xA4,0xA6,0xA6,0xA8,0xA8,0xAA,0x8D,0xAC,0xB8,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBD,0xBF, \
00341                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC6,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD1,0xD1,0xD2,0xD3,0xD2,0xD5,0xD6,0xD7,0xB7,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00342                 0xE0,0xE1,0xE2,0xE3,0xE3,0xD5,0xE6,0xE6,0xE8,0xE9,0xE8,0xEB,0xED,0xED,0xDD,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xEB,0xFC,0xFC,0xFE,0xFF}
00343 
00344 #elif _CODE_PAGE == 855    /* Cyrillic (OEM) */
00345 #define _DF1S    0
00346 #define _EXCVT {0x81,0x81,0x83,0x83,0x85,0x85,0x87,0x87,0x89,0x89,0x8B,0x8B,0x8D,0x8D,0x8F,0x8F,0x91,0x91,0x93,0x93,0x95,0x95,0x97,0x97,0x99,0x99,0x9B,0x9B,0x9D,0x9D,0x9F,0x9F, \
00347                 0xA1,0xA1,0xA3,0xA3,0xA5,0xA5,0xA7,0xA7,0xA9,0xA9,0xAB,0xAB,0xAD,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB6,0xB6,0xB8,0xB8,0xB9,0xBA,0xBB,0xBC,0xBE,0xBE,0xBF, \
00348                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC7,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD1,0xD1,0xD3,0xD3,0xD5,0xD5,0xD7,0xD7,0xDD,0xD9,0xDA,0xDB,0xDC,0xDD,0xE0,0xDF, \
00349                 0xE0,0xE2,0xE2,0xE4,0xE4,0xE6,0xE6,0xE8,0xE8,0xEA,0xEA,0xEC,0xEC,0xEE,0xEE,0xEF,0xF0,0xF2,0xF2,0xF4,0xF4,0xF6,0xF6,0xF8,0xF8,0xFA,0xFA,0xFC,0xFC,0xFD,0xFE,0xFF}
00350 
00351 #elif _CODE_PAGE == 857    /* Turkish (OEM) */
00352 #define _DF1S    0
00353 #define _EXCVT {0x80,0x9A,0x90,0xB6,0x8E,0xB7,0x8F,0x80,0xD2,0xD3,0xD4,0xD8,0xD7,0x98,0x8E,0x8F,0x90,0x92,0x92,0xE2,0x99,0xE3,0xEA,0xEB,0x98,0x99,0x9A,0x9D,0x9C,0x9D,0x9E,0x9E, \
00354                 0xB5,0xD6,0xE0,0xE9,0xA5,0xA5,0xA6,0xA6,0xA8,0xA9,0xAA,0xAB,0xAC,0x21,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00355                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC7,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00356                 0xE0,0xE1,0xE2,0xE3,0xE5,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xDE,0x59,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF}
00357 
00358 #elif _CODE_PAGE == 858    /* Multilingual Latin 1 + Euro (OEM) */
00359 #define _DF1S    0
00360 #define _EXCVT {0x80,0x9A,0x90,0xB6,0x8E,0xB7,0x8F,0x80,0xD2,0xD3,0xD4,0xD8,0xD7,0xDE,0x8E,0x8F,0x90,0x92,0x92,0xE2,0x99,0xE3,0xEA,0xEB,0x59,0x99,0x9A,0x9D,0x9C,0x9D,0x9E,0x9F, \
00361                 0xB5,0xD6,0xE0,0xE9,0xA5,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0x21,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00362                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC7,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD1,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00363                 0xE0,0xE1,0xE2,0xE3,0xE5,0xE5,0xE6,0xE7,0xE7,0xE9,0xEA,0xEB,0xED,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF}
00364 
00365 #elif _CODE_PAGE == 862    /* Hebrew (OEM) */
00366 #define _DF1S    0
00367 #define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \
00368                 0x41,0x49,0x4F,0x55,0xA5,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0x21,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00369                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00370                 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF}
00371 
00372 #elif _CODE_PAGE == 866    /* Russian (OEM) */
00373 #define _DF1S    0
00374 #define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \
00375                 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00376                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00377                 0x90,0x91,0x92,0x93,0x9d,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F,0xF0,0xF0,0xF2,0xF2,0xF4,0xF4,0xF6,0xF6,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF}
00378 
00379 #elif _CODE_PAGE == 874    /* Thai (OEM, Windows) */
00380 #define _DF1S    0
00381 #define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \
00382                 0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00383                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00384                 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF}
00385 
00386 #elif _CODE_PAGE == 1250 /* Central Europe (Windows) */
00387 #define _DF1S    0
00388 #define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x8A,0x9B,0x8C,0x8D,0x8E,0x8F, \
00389                 0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xA3,0xB4,0xB5,0xB6,0xB7,0xB8,0xA5,0xAA,0xBB,0xBC,0xBD,0xBC,0xAF, \
00390                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00391                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xF7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xFF}
00392 
00393 #elif _CODE_PAGE == 1251 /* Cyrillic (Windows) */
00394 #define _DF1S    0
00395 #define _EXCVT {0x80,0x81,0x82,0x82,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x80,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x8A,0x9B,0x8C,0x8D,0x8E,0x8F, \
00396                 0xA0,0xA2,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB2,0xA5,0xB5,0xB6,0xB7,0xA8,0xB9,0xAA,0xBB,0xA3,0xBD,0xBD,0xAF, \
00397                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00398                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF}
00399 
00400 #elif _CODE_PAGE == 1252 /* Latin 1 (Windows) */
00401 #define _DF1S    0
00402 #define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0xAd,0x9B,0x8C,0x9D,0xAE,0x9F, \
00403                 0xA0,0x21,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00404                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00405                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xF7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0x9F}
00406 
00407 #elif _CODE_PAGE == 1253 /* Greek (Windows) */
00408 #define _DF1S    0
00409 #define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \
00410                 0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00411                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xA2,0xB8,0xB9,0xBA, \
00412                 0xE0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xF2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xFB,0xBC,0xFD,0xBF,0xFF}
00413 
00414 #elif _CODE_PAGE == 1254 /* Turkish (Windows) */
00415 #define _DF1S    0
00416 #define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x8A,0x9B,0x8C,0x9D,0x9E,0x9F, \
00417                 0xA0,0x21,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00418                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00419                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xF7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0x9F}
00420 
00421 #elif _CODE_PAGE == 1255 /* Hebrew (Windows) */
00422 #define _DF1S    0
00423 #define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \
00424                 0xA0,0x21,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00425                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00426                 0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF}
00427 
00428 #elif _CODE_PAGE == 1256 /* Arabic (Windows) */
00429 #define _DF1S    0
00430 #define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x8C,0x9D,0x9E,0x9F, \
00431                 0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00432                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00433                 0x41,0xE1,0x41,0xE3,0xE4,0xE5,0xE6,0x43,0x45,0x45,0x45,0x45,0xEC,0xED,0x49,0x49,0xF0,0xF1,0xF2,0xF3,0x4F,0xF5,0xF6,0xF7,0xF8,0x55,0xFA,0x55,0x55,0xFD,0xFE,0xFF}
00434 
00435 #elif _CODE_PAGE == 1257 /* Baltic (Windows) */
00436 #define _DF1S    0
00437 #define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,0x9D,0x9E,0x9F, \
00438                 0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xA8,0xB9,0xAA,0xBB,0xBC,0xBD,0xBE,0xAF, \
00439                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00440                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xF7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xFF}
00441 
00442 #elif _CODE_PAGE == 1258 /* Vietnam (OEM, Windows) */
00443 #define _DF1S    0
00444 #define _EXCVT {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0xAC,0x9D,0x9E,0x9F, \
00445                 0xA0,0x21,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, \
00446                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF, \
00447                 0xC0,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xEC,0xCD,0xCE,0xCF,0xD0,0xD1,0xF2,0xD3,0xD4,0xD5,0xD6,0xF7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xFE,0x9F}
00448 
00449 #elif _CODE_PAGE == 1    /* ASCII (for only non-LFN cfg) */
00450 #define _DF1S    0
00451 
00452 #else
00453 #error Unknown code page
00454 
00455 #endif
00456 
00457 
00458 
00459 /* Character code support macros */
00460 
00461 #define IsUpper(c)    (((c)>='A')&&((c)<='Z'))
00462 #define IsLower(c)    (((c)>='a')&&((c)<='z'))
00463 
00464 #if _DF1S        /* DBCS configuration */
00465 
00466 #ifdef _DF2S    /* Two 1st byte areas */
00467 #define IsDBCS1(c)    (((BYTE)(c) >= _DF1S && (BYTE)(c) <= _DF1E) || ((BYTE)(c) >= _DF2S && (BYTE)(c) <= _DF2E))
00468 #else            /* One 1st byte area */
00469 #define IsDBCS1(c)    ((BYTE)(c) >= _DF1S && (BYTE)(c) <= _DF1E)
00470 #endif
00471 
00472 #ifdef _DS3S    /* Three 2nd byte areas */
00473 #define IsDBCS2(c)    (((BYTE)(c) >= _DS1S && (BYTE)(c) <= _DS1E) || ((BYTE)(c) >= _DS2S && (BYTE)(c) <= _DS2E) || ((BYTE)(c) >= _DS3S && (BYTE)(c) <= _DS3E))
00474 #else            /* Two 2nd byte areas */
00475 #define IsDBCS2(c)    (((BYTE)(c) >= _DS1S && (BYTE)(c) <= _DS1E) || ((BYTE)(c) >= _DS2S && (BYTE)(c) <= _DS2E))
00476 #endif
00477 
00478 #else            /* SBCS configuration */
00479 
00480 #define IsDBCS1(c)    0
00481 #define IsDBCS2(c)    0
00482 
00483 #endif /* _DF1S */
00484 
00485 
00486 #endif /* _FATFS */