1#ifndef OFR_TEENSY_SD_PRESET_H
2#define OFR_TEENSY_SD_PRESET_H
10 File f = SD.open(filename, mode);
16 ((File *)stream)->close();
20 return ((File *)stream)->read((uint8_t *)ptr, size * nmemb);
24 return ((File *)stream)->seek(offset, (SeekMode)whence);
28 return ((File *)stream)->position();
#define FT_FILE
Definition: FileSupport.h:16
int OFR_fseek(FT_FILE *stream, long int offset, int whence)
Moves the cursor to the specified position.
Definition: Teensy_SD_Preset.h:23
long int OFR_ftell(FT_FILE *stream)
Get file cursor position.
Definition: Teensy_SD_Preset.h:27
size_t OFR_fread(void *ptr, size_t size, size_t nmemb, FT_FILE *stream)
Read data from a file and store it in a buffer.
Definition: Teensy_SD_Preset.h:19
FT_FILE * OFR_fopen(const char *filename, const char *mode)
Open file and get file pointer.
Definition: Teensy_SD_Preset.h:9
std::list< File > ofr_file_list
Definition: Teensy_SD_Preset.h:7
void OFR_fclose(FT_FILE *stream)
Close file.
Definition: Teensy_SD_Preset.h:15