HP85 GPIB Disk Emulator  1.0
HP85GPIBDiskEmulator
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
fatfs_sup.h
Go to the documentation of this file.
1 
30 #ifndef _FATFS_SUP_H_
31 #define _FATFS_SUP_H_
32 
33 #if FF_MULTI_PARTITION != 0
34 extern const PARTITION Drives[] =
35 {
36  {
37  0,0
38  }
39  ,
40  {
41  0,1
42  }
43 };
44 #endif
45 
46 extern DWORD AccSize; // Total file space used
47 extern WORD AccFiles, AccDirs; // Total files and directories
48 extern FATFS Fatfs[FF_VOLUMES]; // File system object for each logical drive
49 
50 /* fatfs_sup.c */
51 MEMSPACE uint32_t tm_to_fat ( tm_t *t );
52 MEMSPACE DWORD get_fattime ( void );
53 MEMSPACE void put_rc ( int rc );
54 MEMSPACE char *fatfs_fstype ( int type );
55 MEMSPACE int fatfs_status ( char *name );
56 MEMSPACE void fatfs_filinfo_list ( FILINFO *info );
57 
58 #endif
FATFS
Definition: ff.h:132
AccDirs
WORD AccDirs
Definition: fatfs_sup.h:47
MEMSPACE
#define MEMSPACE
Definition: user_config.h:17
get_fattime
MEMSPACE DWORD get_fattime(void)
Read time and convert to FAT32 time.
Definition: fatfs_sup.c:129
fatfs_fstype
MEMSPACE char * fatfs_fstype(int type)
return a string with the file system type
Definition: fatfs_sup.c:222
FF_VOLUMES
#define FF_VOLUMES
Definition: ffconf.h:169
put_rc
MEMSPACE void put_rc(int rc)
display FatFs return code as ascii string
Definition: fatfs_sup.c:145
fatfs_filinfo_list
MEMSPACE void fatfs_filinfo_list(FILINFO *info)
Display FILINFO structure in a readable format.
Definition: fatfs_sup.c:340
AccFiles
WORD AccFiles
Total number or Files and Directories.
Definition: fatfs_sup.c:164
AccSize
DWORD AccSize
Total file space used.
Definition: fatfs_sup.c:161
fatfs_status
MEMSPACE int fatfs_status(char *name)
Compute space used, number of directories and files contained used by a drive.
Definition: fatfs_sup.c:259
tm
POSIX struct tm.
Definition: time.h:40
WORD
unsigned short WORD
Definition: ff.h:55
Fatfs
FATFS Fatfs[FF_VOLUMES]
FatFs Drive Volumes.
Definition: fatfs_sup.c:42
FILINFO
Definition: ff.h:247
DWORD
unsigned long DWORD
Definition: ff.h:56
tm_to_fat
MEMSPACE uint32_t tm_to_fat(tm_t *t)
FAT time structer reference.
Definition: fatfs_sup.c:110