SDFileSystem, slightly modified for the ExoController
Dependents: Data-Management-Honka
Fork of SDFileSystem_HelloWorld by
SDFile.h
- Committer:
- mzling
- Date:
- 2015-04-24
- Revision:
- 9:5bad923e18ce
- Parent:
- 4:99e9c9e0dfb0
- Child:
- 11:b47fb3344ed9
File content as of revision 9:5bad923e18ce:
/** * @file SDFile.h * @brief This header file contains read/write functions for the SDFile object * @author Michael Ling * @date 2/2/2015 */ #include <string> #include "mbed.h" #include "SDFileSystem.h" #ifndef SDFILE_H #define SDFILE_H class SDFile { public: SDFile(std::string path, std::string filename, bool readOnly); int *read(int length, int *array); int *read_from_start(int length, int *array); void write(int length, int *array); void write_to_index(int index, int value); void append(int length, int *array); // void changeAccess(std::string path, std::string filename); void open_for_read(std::string path, std::string filename); void open_for_write(std::string path, std::string filename); void close(); private: FILE *_fp; }; #endif