Operating System
Classes | Macros | Typedefs | Functions | Variables
FATMacro.h File Reference

all the macro needed by FAT inner implementation More...

#include <stdint.h>

Go to the source code of this file.

Classes

struct  FAT_ITEM
 

Macros

#define S_UNUSED   ((uint8_t)0x00)
 item unused More...
 
#define S_DOTS   ((uint8_t)0x2E)
 it is '.' or '..' More...
 
#define S_DEL   ((uint8_t)0xE5)
 has been deleted, can be reused More...
 
#define FAT_rw   (0)
 readable and writable More...
 
#define FAT_ro   (1)
 read only More...
 
#define FAT_hid   (1 << 1)
 hidden file More...
 
#define FAT_sys   (1 << 2)
 system file More...
 
#define FAT_fldr   (1 << 4)
 folder More...
 
#define FAT_doc   (1 << 5)
 partition reserved doc More...
 
#define FAT_ITEM_EMPTY   {0,0,0,0,0,0,0,0,0,0,0,0,0}
 
#define FAT_ITEM_SIZE   (32)
 

Typedefs

typedef uint16_t FAT_ITEM_T
 
typedef struct FAT_ITEM FAT_ITEM
 

Functions

struct FAT_ITEM __attribute__ ((packed))
 

Variables

uint8_t filename [8]
 
uint8_t extendname [3]
 
uint8_t mod
 
uint8_t res
 reserved More...
 
uint8_t created_time
 ms More...
 
uint16_t hms
 hour minute second More...
 
uint16_t ymd
 year month day More...
 
uint16_t recent_access_ymd
 
uint16_t bhigh_cluster
 
uint16_t modify_hms
 
uint16_t modify_ymd
 
uint16_t blow_cluster
 
uint32_t filesize
 in bytes More...
 

Detailed Description

all the macro needed by FAT inner implementation

Definition in file FATMacro.h.

Typedef Documentation

◆ FAT_ITEM

typedef struct FAT_ITEM FAT_ITEM

Definition at line 39 of file FATMacro.h.

◆ FAT_ITEM_T

typedef uint16_t FAT_ITEM_T

Definition at line 9 of file FATMacro.h.

Function Documentation

◆ __attribute__()

struct FAT_ITEM __attribute__ ( (packed)  )

Variable Documentation

◆ bhigh_cluster

uint16_t bhigh_cluster

Definition at line 19 of file FATMacro.h.

◆ blow_cluster

uint16_t blow_cluster

Definition at line 23 of file FATMacro.h.

◆ created_time

uint8_t created_time

ms

Definition at line 15 of file FATMacro.h.

◆ extendname

uint8_t extendname[3]

Definition at line 11 of file FATMacro.h.

◆ filename

uint8_t filename[8]

Definition at line 10 of file FATMacro.h.

◆ filesize

uint32_t filesize

in bytes

Definition at line 24 of file FATMacro.h.

◆ hms

uint16_t hms

hour minute second

Definition at line 16 of file FATMacro.h.

◆ mod

uint8_t mod

Definition at line 12 of file FATMacro.h.

◆ modify_hms

uint16_t modify_hms

Definition at line 21 of file FATMacro.h.

◆ modify_ymd

uint16_t modify_ymd

Definition at line 22 of file FATMacro.h.

◆ recent_access_ymd

uint16_t recent_access_ymd

Definition at line 18 of file FATMacro.h.

◆ res

uint8_t res

reserved

Definition at line 14 of file FATMacro.h.

◆ ymd

uint16_t ymd

year month day

Definition at line 17 of file FATMacro.h.