Contents From Microchip MDD File System Interface previous page next page MDDFS Interface Library Help Contents | Index | Home Contents Microchip MDD File System Interface Library Getting Help Getting Started Terminology Boot sector Cluster Current Working Directory Directory FAT Master Boot Record Root directory Sector Directory Structure Configuring Hardware Explorer 16 with PICtail for SD and MMC HPC Explorer with PICtail for SD and MMC Software Configuration The SD Card Demo The SD Data Logger Demo APIs File Manipulation Layer (FSIO) Public Members FindFirst Function FindFirstpgm Function FindNext Function FSattrib Function FSchdir Function FSchdirpgm Function FSCreateMBR Function FSerror Function FSfclose Function FSfeof Function FSfopen Function FSfopenpgm Function FSformat Function FSfprintf Function FSfread Function FSfseek Function FSftell Function FSfwrite Function FSgetcwd Function FSInit Function FSmkdir Function FSmkdirpgm Function FSremove Function FSremovepgm Function FSrename Function FSrenamepgm Function FSrewind Function FSrmdir Function FSrmdirpgm Function SetClockVars Function ALLOW_DIRS Macro ALLOW_FILESEARCH Macro ALLOW_FSFPRINTF Macro ALLOW_FORMATS Macro ALLOW_PGMFUNCTIONS Macro ALLOW_WRITES Macro APPEND Macro APPENDPLUS Macro ATTR_ARCHIVE Macro ATTR_DIRECTORY Macro ATTR_HIDDEN Macro ATTR_MASK Macro ATTR_READ_ONLY Macro ATTR_SYSTEM Macro ATTR_VOLUME Macro EOF Macro FALSE Macro FS_DYNAMIC_MEM Macro FS_MAX_FILES_OPEN Macro INCREMENTTIMESTAMP Macro intmax_t Macro MDD_MediaDetect Macro MEDIA_SECTOR_SIZE Macro NEAR_MODEL Macro READ Macro READPLUS Macro SEEK_CUR Macro SEEK_END Macro SEEK_SET Macro SUPPORT_FAT32 Macro TRUE Macro USE_CF_INTERFACE_WITH_PMP Macro USE_MANUAL_CF_INTERFACE Macro USE_SD_INTERFACE_WITH_SPI Macro USE_USB_INTERFACE Macro USERDEFINEDCLOCK Macro USEREALTIMECLOCK Macro WRITE Macro WRITEPLUS Macro FSFILE Structure SearchRec Structure Library Members ReadByte Function ReadDWord Function ReadWord Function ATTR_LONG_NAME Macro BSI_BOOTSIG Macro BSI_BPS Macro BSI_FAT32_BOOTSIG Macro BSI_FAT32_FSTYPE Macro BSI_FATCOUNT Macro BSI_FATSZ32 Macro BSI_FSTYPE Macro BSI_RESRVSEC Macro BSI_ROOTCLUS Macro BSI_ROOTDIRENTS Macro BSI_SPC Macro BSI_SPF Macro BSI_TOTSEC16 Macro BSI_TOTSEC32 Macro CE_EOF Macro CE_FAT_EOF Macro CLUSTER_EMPTY Macro CLUSTER_FAIL_FAT16 Macro CLUSTER_FAIL_FAT32 Macro DIR_DEL Macro DIR_EMPTY Macro DIR_EXTENSION Macro DIR_NAMECOMP Macro DIR_NAMESIZE Macro END_CLUSTER_FAT12 Macro END_CLUSTER_FAT16 Macro END_CLUSTER_FAT32 Macro FAT_GOOD_SIGN_0 Macro FAT_GOOD_SIGN_1 Macro FAT12 Macro FAT16 Macro FAT32 Macro FILE_NAME_SIZE Macro FO_MBR Macro FOUND Macro GetInstructionClock Macro GetPeripheralClock Macro GetSystemClock Macro INPUT Macro LAST_CLUSTER_FAT12 Macro LAST_CLUSTER_FAT16 Macro LAST_CLUSTER_FAT32 Macro MASK_MAX_FILE_ENTRY_LIMIT_BITS Macro MDD_InitIO Macro MDD_MediaInitialize Macro MDD_ReadCapacity Macro MDD_ReadSectorSize Macro MDD_SectorRead Macro MDD_SectorWrite Macro MDD_ShutdownMedia Macro MDD_WriteProtectState Function NO_MORE Macro NOT_FOUND Macro NUMBER_OF_BYTES_IN_DIR_ENTRY Macro OUTPUT Macro RAMread Macro RAMreadD Macro RAMreadW Macro RAMwrite Macro TOTAL_FILE_SIZE Macro VALUE_BASED_ON_ENTRIES_PER_CLUSTER Macro VALUE_DOTDOT_CLUSTER_VALUE_FOR_ROOT Macro _BootSec Structure _BPB_FAT12 Structure _BPB_FAT16 Structure _BPB_FAT32 Structure _PT_MBR Structure BootSec Type CETYPE Enumeration DISK Structure FILEFLAGS Structure PT_MBR Type PTE_MBR Structure SALLOC Type SEARCH_TYPE Enumeration Internal Members _SRAMmerge Function Cache_File_Entry Function CacheTime Function chdirhelper Function Cluster2Sector Function CreateDIR Function CreateFileEntry Function CreateFirstCluster Function DISKmount Function EraseCluster Function FAT_erase_cluster_chain Function FATfindEmptyCluster Function FILEallocate_new_cluster Function FILECreateHeadCluster Function FILEerase Function FILEfind Function FILEget_next_cluster Function FileObjectCopy Function FILEopen Function Fill_File_Object Function FindEmptyEntries Function flushData Function FormatDirName Function FormatFileName Function FSputc Function FSvfprintf Function GetFullClusterNumber Function GetPreviousEntry Function IncrementTimeStamp Function LoadBootSector Function LoadDirAttrib Function LoadMBR Function mkdirhelper Function PopulateEntries Function ReadFAT Function rmdirhelper Function SRAMInitHeap Function str_put_n_chars Function ValidateChars Function Write_File_Entry Function writeDotEntries Function WriteFAT Function _FLAG_MINUS Macro _FLAG_OCTO Macro _FLAG_PLUS Macro _FLAG_SIGNED Macro _FLAG_SPACE Macro _FLAG_ZERO Macro _FMT_BYTE Macro _FMT_LONG Macro _FMT_LONGLONG Macro _FMT_SHRTLONG Macro _FMT_UNSPECIFIED Macro _MAX_HEAP_SIZE Macro _MAX_SEGMENT_SIZE Macro DIRECTORY Macro DIRENTRIES_PER_SECTOR Macro NEAR Macro _DIRENTRY Structure DIRENTRY Type FILEOBJ Type _uDynamicHeap Variable cwd Variable cwdptr Variable defaultArray Variable defaultString Variable dirCleared Variable FatRootDirClusterValue Variable FSerrno Variable gBufferOwner Variable gBufferZeroed Variable gDataBuffer Variable gDiskData Variable gFATBuffer Variable gFileArray Variable gFileSlotOpen Variable gFileTemp Variable gLastDataSectorRead Variable gLastFATSectorRead Variable gNeedDataWrite Variable gNeedFATWrite Variable gTimeAccDate Variable gTimeCrtDate Variable gTimeCrtMS Variable gTimeCrtTime Variable gTimeWrtDate Variable gTimeWrtTime Variable nextClusterIsLast Variable recache Variable s_digits Variable tempArray Variable TempClusterCalc Variable tempCWDobj Variable SD-SPI Physical Layer Public Members SD_CD Macro SD_CD_TRIS Macro SD_CS Macro SD_CS_TRIS Macro SD_WE Macro SD_WE_TRIS Macro SPI_INTERRUPT_FLAG Macro SPIBRG Macro SPIBUF Macro SPICLOCK Macro SPICLOCKPORT Macro SPICLOCKLAT Macro SPICON1 Macro SPICON1bits Macro SPIENABLE Macro SPIIN Macro SPIINPORT Macro SPIINLAT Macro SPIOUT Macro SPIOUTPORT Macro SPIOUTLAT Macro SPISTAT Macro SPISTAT_RBF Macro SPISTATbits Macro Library Members MDD_SDSPI_InitIO Function MDD_SDSPI_MediaDetect Function MDD_SDSPI_MediaInitialize Function MDD_SDSPI_ReadCapacity Function MDD_SDSPI_ReadMedia Function MDD_SDSPI_ReadSectorSize Function MDD_SDSPI_SectorWrite Function MDD_SDSPI_SectorRead Function MDD_SDSPI_ShutdownMedia Function cmdAPP_CMD Macro cmdCRC_ON_OFF Macro cmdERASE Macro cmdGO_IDLE_STATE Macro cmdREAD_MULTI_BLOCK Macro cmdREAD_OCR Macro cmdREAD_SINGLE_BLOCK Macro cmdSEND_CID Macro cmdSEND_CSD Macro cmdSEND_OP_COND Macro cmdSEND_STATUS Macro cmdSET_BLOCKLEN Macro cmdSTOP_TRANSMISSION Macro cmdTAG_SECTOR_END Macro cmdTAG_SECTOR_START Macro cmdWRITE_MULTI_BLOCK Macro cmdWRITE_SINGLE_BLOCK Macro DATA_ACCEPTED Macro DATA_START_TOKEN Macro DELAY_OVERHEAD Macro DELAY_PRESCALER Macro MASTER_ENABLE_ON Macro MILLISECDELAY Macro MMC_BAD_RESPONSE Macro MMC_FLOATING_BUS Macro MOREDATA Macro mReadCRC Macro mSend8ClkCycles Macro mSendCRC Macro NODATA Macro PRI_PRESCAL_1_1 Macro SEC_PRESCAL_1_1 Macro SYNC_MODE_FAST Macro SYNC_MODE_MED Macro SYNC_MODE_SLOW Macro CID Union CMD_PACKET Union CSD Union RESPONSE_1 Union RESPONSE_2 Union MMC_RESPONSE Union RESP Enumeration sdmmc_cmd Enumeration typMMC_CMD Structure Internal Members Delayms Function CloseSPIM Function OpenSPIM Function ReadMediaManual Function SendMMCCmd Function SendMMCCmdManual Function WriteSPIM Function WriteSPIManual Function MANUAL_SPI_CLOCK_VALUE Macro sdmmc_cmdtable Variable MDD_SDSPI_finalLBA Variable CF Physical Layer Public Members MDD_CFBT_DATABIN Macro MDD_CFBT_DATABOUT Macro MDD_CFBT_DATADIR Macro MDD_CFBT_MediaDetect Function MDD_CFPMP_DATADIR Macro MDD_CFPMP_MediaDetect Function MDD_CFread Macro MDD_CFwait Macro MDD_CFwrite Macro ADDBL Macro ADDDIR Macro ADDR0 Macro ADDR1 Macro ADDR2 Macro ADDR3 Macro ADRTRIS0 Macro ADRTRIS1 Macro ADRTRIS2 Macro ADRTRIS3 Macro CF_BT_CD1 Macro CF_BT_CD1DIR Macro CF_BT_RDY Macro CF_BT_READYDIR Macro CF_BT_RESETDIR Macro CF_BT_RST Macro CF_CE Macro CF_CEDIR Macro CF_OE Macro CF_OEDIR Macro CF_PMP_CD1 Macro CF_PMP_CD1DIR Macro CF_PMP_RDY Macro CF_PMP_READYDIR Macro CF_PMP_RESETDIR Macro CF_PMP_RST Macro CF_WE Macro CF_WEDIR Macro Library Members MDD_CFBT_CFread Function MDD_CFBT_CFwait Function MDD_CFBT_CFwrite Function MDD_CFBT_DATABinput Macro MDD_CFBT_DATABoutput Macro MDD_CFBT_InitIO Function MDD_CFBT_MediaInitialize Macro MDD_CFBT_SectorRead Function MDD_CFBT_SectorWrite Function MDD_CFBT_WriteProtectState Function MDD_CFPMP_CFread Function MDD_CFPMP_CFwait Function MDD_CFPMP_CFwrite Function MDD_CFPMP_DATABinput Macro MDD_CFPMP_DATABoutput Macro MDD_CFPMP_InitIO Function MDD_CFPMP_MediaInitialize Macro MDD_CFPMP_SectorRead Function MDD_CFPMP_SectorWrite Function MDD_CFPMP_WriteProtectState Function R_CMD Macro R_COUNT Macro R_CYHI Macro R_CYLO Macro R_DATA Macro R_DRIVE Macro R_ERROR Macro R_SECT Macro R_STATUS Macro C_DRIVE_DIAG Macro C_DRIVE_IDENT Macro C_SECTOR_READ Macro C_SECTOR_WRITE Macro S_ERROR Macro S_READY Macro Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]Copyright © 2008 Microchip Technology, Inc. All rights reserved. Contents | Index | Home previous page start next page