8 #ifndef GM_FATFS_STORAGE_HPP_
9 #define GM_FATFS_STORAGE_HPP_
15 #include <GmFatFs/ff.h>
16 #include "GmStorage.hpp"
29 #define GEO_MAX_FATFS_BLOCK_SIZE 1024
30 #define GEO_MIN_FATFS_BLOCK_SIZE 256
31 #define GEO_SD_FATFS_BLOCK_SIZE 1024
32 #define GEO_USB_FATFS_BLOCK_SIZE 512
42 virtual int Open (
const char* szName,
43 const char* szReadWrite);
44 int Seek (UInt32 uiLocation);
45 bool EndOfFile () {
return FALSE; };
46 int Verify (
int iMarker);
48 virtual int Shutdown () = 0;
50 int FileSize (
const char *strFileName,
52 int ReadStr (
char *strBuffer,
54 int ReadRaw (
int dummy,
57 UInt32 *uiActualLengthRead);
58 virtual int Close (
int iFileIndex);
59 virtual int WriteData (
const char* pcData,
60 unsigned int iDataSize,
65 virtual const char *GetDrive () = 0;
66 virtual int IsFileStorage () {
return TRUE; };
67 virtual int IsDataStorage () {
return TRUE; };
76 char m_caCurrentOpenFileName [50];
77 int m_iCurrentOpenFile,
81 int m_iFatFsBlockSize;
82 char m_caBlockBuffer[GEO_MAX_FATFS_BLOCK_SIZE];
83 virtual int GetFatFsBlockSize () = 0;
86 static int s_iLastError;
95 *s_pStorageFactoryZero,
96 *s_pStorageFactoryOne;
Definition: GeoFatFsStorage.hpp:89
Definition: GeoFatFsStorage.hpp:38
Definition: GmStorage.hpp:81
GmApp/GmLoggingApp.hpp>
Definition: Analogs.hpp:47