Phoenard
Classes | Typedefs | Variables
PHNSDMinimal_fat.h File Reference
#include <stdint.h>

Go to the source code of this file.

Classes

struct  SDMINFAT::partitionTable
 MBR partition table entry. More...
 
struct  SDMINFAT::masterBootRecord
 Master Boot Record. More...
 
struct  SDMINFAT::biosParmBlock
 BIOS parameter block. More...
 
struct  SDMINFAT::fat32BootSector
 Boot sector for a FAT16 or FAT32 volume. More...
 
struct  SDMINFAT::directoryEntry
 FAT short directory entry. More...
 
union  SDMINFAT::cache_t
 

Typedefs

typedef struct partitionTable SDMINFAT::part_t
 
typedef struct masterBootRecord SDMINFAT::mbr_t
 
typedef struct biosParmBlock SDMINFAT::bpb_t
 
typedef struct fat32BootSector SDMINFAT::fbs_t
 
typedef struct directoryEntry SDMINFAT::dir_t
 

Variables

uint8_t const SDMINFAT::SD_CARD_TYPE_SD1 = 1
 
uint8_t const SDMINFAT::SD_CARD_TYPE_SD2 = 2
 
uint8_t const SDMINFAT::SD_CARD_TYPE_SDHC = 3
 
uint16_t const SDMINFAT::FAT_DEFAULT_DATE = ((2000 - 1980) << 9) | (1 << 5) | 1
 
uint16_t const SDMINFAT::FAT_DEFAULT_TIME = (1 << 11)
 
uint8_t const SDMINFAT::BOOTSIG0 = 0X55
 
uint8_t const SDMINFAT::BOOTSIG1 = 0XAA
 
uint16_t const SDMINFAT::FAT16EOC = 0XFFFF
 
uint16_t const SDMINFAT::FAT16EOC_MIN = 0XFFF8
 
uint32_t const SDMINFAT::FAT32EOC = 0X0FFFFFFF
 
uint32_t const SDMINFAT::FAT32EOC_MIN = 0X0FFFFFF8
 
uint32_t const SDMINFAT::FAT32MASK = 0X0FFFFFFF
 
uint8_t const SDMINFAT::DIR_NAME_DELETED = 0XE5
 
uint8_t const SDMINFAT::DIR_NAME_FREE = 0X00
 
uint8_t const SDMINFAT::DIR_ATT_READ_ONLY = 0X01
 
uint8_t const SDMINFAT::DIR_ATT_HIDDEN = 0X02
 
uint8_t const SDMINFAT::DIR_ATT_SYSTEM = 0X04
 
uint8_t const SDMINFAT::DIR_ATT_VOLUME_ID = 0X08
 
uint8_t const SDMINFAT::DIR_ATT_DIRECTORY = 0X10
 
uint8_t const SDMINFAT::DIR_ATT_NOT_FILE_MASK = (DIR_ATT_VOLUME_ID | DIR_ATT_DIRECTORY)
 
uint8_t const SDMINFAT::CMD0 = 0X00
 
uint8_t const SDMINFAT::CMD8 = 0X08
 
uint8_t const SDMINFAT::CMD9 = 0X09
 
uint8_t const SDMINFAT::CMD10 = 0X0A
 
uint8_t const SDMINFAT::CMD13 = 0X0D
 
uint8_t const SDMINFAT::CMD17 = 0X11
 
uint8_t const SDMINFAT::CMD24 = 0X18
 
uint8_t const SDMINFAT::CMD25 = 0X19
 
uint8_t const SDMINFAT::CMD32 = 0X20
 
uint8_t const SDMINFAT::CMD33 = 0X21
 
uint8_t const SDMINFAT::CMD38 = 0X26
 
uint8_t const SDMINFAT::CMD55 = 0X37
 
uint8_t const SDMINFAT::CMD58 = 0X3A
 
uint8_t const SDMINFAT::ACMD23 = 0X17
 
uint8_t const SDMINFAT::ACMD41 = 0X29
 
uint8_t const SDMINFAT::R1_READY_STATE = 0X00
 
uint8_t const SDMINFAT::R1_IDLE_STATE = 0X01
 
uint8_t const SDMINFAT::R1_ILLEGAL_COMMAND = 0X04
 
uint8_t const SDMINFAT::DATA_IDLE_BLOCK = 0xFF
 
uint8_t const SDMINFAT::DATA_START_BLOCK = 0XFE
 
uint8_t const SDMINFAT::STOP_TRAN_TOKEN = 0XFD
 
uint8_t const SDMINFAT::WRITE_MULTIPLE_TOKEN = 0XFC
 
uint8_t const SDMINFAT::DATA_RES_MASK = 0X1F
 
uint8_t const SDMINFAT::DATA_RES_ACCEPTED = 0X05
 

Detailed Description

FAT file structures