CARME-M4 BSP  V1.5
Private definitions

Module Private Definitions. More...

+ Collaboration diagram for Private definitions:

Modules

 Private work area
 Module private work area.
 

Macros

#define SS(fs)   ((fs)->ssize)
 
#define ENTER_FF(fs)
 Enter in a thread-safe state.
 
#define LEAVE_FF(fs, res)   return res
 Exit from a thread-safe state.
 
#define ABORT(fs, res)   { fp->err = (BYTE)(res); LEAVE_FF(fs, res); }
 Abort.
 
#define IsUpper(c)   (((c)>='A')&&((c)<='Z'))
 
#define IsLower(c)   (((c)>='a')&&((c)<='z'))
 
#define IsDigit(c)   (((c)>='0')&&((c)<='9'))
 
#define IsDBCS1(c)   0
 
#define IsDBCS2(c)   0
 
#define NS   11
 
#define NS_LOSS   0x01
 
#define NS_LFN   0x02
 
#define NS_LAST   0x04
 
#define NS_BODY   0x08
 
#define NS_EXT   0x10
 
#define NS_DOT   0x20
 
#define MIN_FAT16   4086U
 
#define MIN_FAT32   65526U
 
#define BS_jmpBoot   0
 
#define BS_OEMName   3
 
#define BPB_BytsPerSec   11
 
#define BPB_SecPerClus   13
 
#define BPB_RsvdSecCnt   14
 
#define BPB_NumFATs   16
 
#define BPB_RootEntCnt   17
 
#define BPB_TotSec16   19
 
#define BPB_Media   21
 
#define BPB_FATSz16   22
 
#define BPB_SecPerTrk   24
 
#define BPB_NumHeads   26
 
#define BPB_HiddSec   28
 
#define BPB_TotSec32   32
 
#define BS_DrvNum   36
 
#define BS_BootSig   38
 
#define BS_VolID   39
 
#define BS_VolLab   43
 
#define BS_FilSysType   54
 
#define BPB_FATSz32   36
 
#define BPB_ExtFlags   40
 
#define BPB_FSVer   42
 
#define BPB_RootClus   44
 
#define BPB_FSInfo   48
 
#define BPB_BkBootSec   50
 
#define BS_DrvNum32   64
 
#define BS_BootSig32   66
 
#define BS_VolID32   67
 
#define BS_VolLab32   71
 
#define BS_FilSysType32   82
 
#define FSI_LeadSig   0
 
#define FSI_StrucSig   484
 
#define FSI_Free_Count   488
 
#define FSI_Nxt_Free   492
 
#define MBR_Table   446
 
#define SZ_PTE   16
 
#define BS_55AA   510
 
#define DIR_Name   0
 
#define DIR_Attr   11
 
#define DIR_NTres   12
 
#define DIR_CrtTimeTenth   13
 
#define DIR_CrtTime   14
 
#define DIR_CrtDate   16
 
#define DIR_LstAccDate   18
 
#define DIR_FstClusHI   20
 
#define DIR_WrtTime   22
 
#define DIR_WrtDate   24
 
#define DIR_FstClusLO   26
 
#define DIR_FileSize   28
 
#define LDIR_Ord   0
 
#define LDIR_Attr   11
 
#define LDIR_Type   12
 
#define LDIR_Chksum   13
 
#define LDIR_FstClusLO   26
 
#define SZ_DIR   32
 
#define LLE   0x40
 
#define DDE   0xE5
 
#define NDDE   0x05
 

Detailed Description

Module Private Definitions.

< Declarations of FatFs API < Declarations of disk I/O functions

Macro Definition Documentation

#define BPB_BkBootSec   50

Offset of backup boot sector (2)

Definition at line 476 of file ff.c.

#define BPB_BytsPerSec   11

Sector size [byte] (2)

Definition at line 450 of file ff.c.

#define BPB_ExtFlags   40

Extended flags (2)

Definition at line 472 of file ff.c.

#define BPB_FATSz16   22

FAT size [sector] (2)

Definition at line 459 of file ff.c.

#define BPB_FATSz32   36

FAT size [sector] (4)

Definition at line 471 of file ff.c.

#define BPB_FSInfo   48

Offset of FSINFO sector (2)

Definition at line 475 of file ff.c.

#define BPB_FSVer   42

File system version (2)

Definition at line 473 of file ff.c.

#define BPB_HiddSec   28

Number of special hidden sectors (4)

Definition at line 462 of file ff.c.

#define BPB_Media   21

Media descriptor (1)

Definition at line 458 of file ff.c.

#define BPB_NumFATs   16

Number of FAT copies (1)

Definition at line 453 of file ff.c.

#define BPB_NumHeads   26

Number of heads (2)

Definition at line 461 of file ff.c.

#define BPB_RootClus   44

Root directory first cluster (4)

Definition at line 474 of file ff.c.

#define BPB_RootEntCnt   17

Number of root directory entries for FAT12/16 (2)

Definition at line 454 of file ff.c.

#define BPB_RsvdSecCnt   14

Size of reserved area [sector] (2)

Definition at line 452 of file ff.c.

#define BPB_SecPerClus   13

Cluster size [sector] (1)

Definition at line 451 of file ff.c.

#define BPB_SecPerTrk   24

Track size [sector] (2)

Definition at line 460 of file ff.c.

#define BPB_TotSec16   19

Volume size [sector] (2)

Definition at line 457 of file ff.c.

#define BPB_TotSec32   32

Volume size [sector] (4)

Definition at line 465 of file ff.c.

#define BS_55AA   510

Boot sector signature (2)

Definition at line 490 of file ff.c.

#define BS_BootSig   38

Extended boot signature (1)

Definition at line 467 of file ff.c.

#define BS_BootSig32   66

Extended boot signature (1)

Definition at line 478 of file ff.c.

#define BS_DrvNum   36

Physical drive number (2)

Definition at line 466 of file ff.c.

#define BS_DrvNum32   64

Physical drive number (2)

Definition at line 477 of file ff.c.

#define BS_FilSysType   54

File system type (1)

Definition at line 470 of file ff.c.

#define BS_FilSysType32   82

File system type (1)

Definition at line 481 of file ff.c.

#define BS_jmpBoot   0

Jump instruction (3)

Definition at line 448 of file ff.c.

#define BS_OEMName   3

OEM name (8)

Definition at line 449 of file ff.c.

#define BS_VolID   39

Volume serial number (4)

Definition at line 468 of file ff.c.

#define BS_VolID32   67

Volume serial number (4)

Definition at line 479 of file ff.c.

#define BS_VolLab   43

Volume label (8)

Definition at line 469 of file ff.c.

#define BS_VolLab32   71

Volume label (8)

Definition at line 480 of file ff.c.

#define DDE   0xE5

Deleted directory entry mark in DIR_Name[0]

Definition at line 511 of file ff.c.

#define DIR_Attr   11

Attribute (1)

Definition at line 493 of file ff.c.

#define DIR_CrtDate   16

Created date (2)

Definition at line 497 of file ff.c.

#define DIR_CrtTime   14

Created time (2)

Definition at line 496 of file ff.c.

#define DIR_CrtTimeTenth   13

Created time sub-second (1)

Definition at line 495 of file ff.c.

#define DIR_FileSize   28

File size (4)

Definition at line 503 of file ff.c.

#define DIR_FstClusHI   20

Higher 16-bit of first cluster (2)

Definition at line 499 of file ff.c.

#define DIR_FstClusLO   26

Lower 16-bit of first cluster (2)

Definition at line 502 of file ff.c.

#define DIR_LstAccDate   18

Last accessed date (2)

Definition at line 498 of file ff.c.

#define DIR_Name   0

Short file name (11)

Definition at line 492 of file ff.c.

#define DIR_NTres   12

NT flag (1)

Definition at line 494 of file ff.c.

#define DIR_WrtDate   24

Modified date (2)

Definition at line 501 of file ff.c.

#define DIR_WrtTime   22

Modified time (2)

Definition at line 500 of file ff.c.

#define FSI_Free_Count   488

FSI: Number of free clusters (4)

Definition at line 484 of file ff.c.

#define FSI_LeadSig   0

FSI: Leading signature (4)

Definition at line 482 of file ff.c.

#define FSI_Nxt_Free   492

FSI: Last allocated cluster (4)

Definition at line 485 of file ff.c.

#define FSI_StrucSig   484

FSI: Structure signature (4)

Definition at line 483 of file ff.c.

#define IsDBCS1 (   c)    0

1st byte area(s)

Definition at line 426 of file ff.c.

#define IsDBCS2 (   c)    0

2nd byte area(s)

Definition at line 427 of file ff.c.

#define IsDigit (   c)    (((c)>='0')&&((c)<='9'))

Is char a digit

Definition at line 396 of file ff.c.

#define IsLower (   c)    (((c)>='a')&&((c)<='z'))

Is char a lower letter

Definition at line 395 of file ff.c.

#define IsUpper (   c)    (((c)>='A')&&((c)<='Z'))

< Japanese Shift-JIS < Simplified Chinese GBK < Korean < Traditional Chinese Big5 < U.S. (OEM) < Arabic (OEM) < Greek (OEM) < Baltic (OEM) < Multilingual Latin 1 (OEM) < Latin 2 (OEM) < Cyrillic (OEM) < Turkish (OEM) < Multilingual Latin 1 + Euro (OEM) < Hebrew (OEM) < Russian (OEM) < Thai (OEM, Windows) < Central Europe (Windows) < Cyrillic (Windows) < Latin 1 (Windows) < Greek (Windows) < Turkish (Windows) < Hebrew (Windows) < Arabic (Windows) < Baltic (Windows) < Vietnam (OEM, Windows) < ASCII (for only non-LFN cfg) Is char a upper letter

Definition at line 394 of file ff.c.

#define LDIR_Attr   11

LFN attribute (1)

Definition at line 505 of file ff.c.

#define LDIR_Chksum   13

Sum of corresponding SFN entry

Definition at line 507 of file ff.c.

#define LDIR_FstClusLO   26

Filled by zero (0)

Definition at line 508 of file ff.c.

#define LDIR_Ord   0

LFN entry order and LLE flag (1)

Definition at line 504 of file ff.c.

#define LDIR_Type   12

LFN type (1)

Definition at line 506 of file ff.c.

#define LLE   0x40

Last long entry flag in LDIR_Ord

Definition at line 510 of file ff.c.

#define MBR_Table   446

MBR: Partition table offset (2)

Definition at line 486 of file ff.c.

#define MIN_FAT16   4086U

Minimum number of clusters for FAT16

Definition at line 441 of file ff.c.

#define MIN_FAT32   65526U

Minimum number of clusters for FAT32

Definition at line 442 of file ff.c.

#define NDDE   0x05

Replacement of the character collides with DDE

Definition at line 514 of file ff.c.

#define NS   11

Index of name status byte in fn[]

Definition at line 432 of file ff.c.

#define NS_BODY   0x08

Lower case flag (body)

Definition at line 436 of file ff.c.

#define NS_DOT   0x20

Dot entry

Definition at line 438 of file ff.c.

#define NS_EXT   0x10

Lower case flag (ext)

Definition at line 437 of file ff.c.

#define NS_LAST   0x04

Last segment

Definition at line 435 of file ff.c.

#define NS_LFN   0x02

Force to create LFN entry

Definition at line 434 of file ff.c.

#define NS_LOSS   0x01

Out of 8.3 format

Definition at line 433 of file ff.c.

#define SS (   fs)    ((fs)->ssize)

< Revision ID Variable sector size

Definition at line 155 of file ff.c.

#define SZ_DIR   32

Size of a directory entry

Definition at line 509 of file ff.c.

#define SZ_PTE   16

MBR: Size of a partition table entry

Definition at line 487 of file ff.c.