sd_stdio_c_iface.h
Go to the documentation of this file.
1 /******************************************************************************/
38 /******************************************************************************/
39 
40 #if !defined(SD_STDIO_C_IFACE_H_)
41 #define SD_STDIO_C_IFACE_H_
42 
43 #include "../key_value/kv_system.h"
44 
45 #if defined(ARDUINO)
46 
47 #include <Arduino.h>
48 
49 #if defined(__cplusplus)
50 extern "C" {
51 #endif
52 
53 #include "kv_stdio_intercept.h"
54 
58 typedef struct _SD_File SD_FILE;
59 
67 int
68 sd_fclose(
69  SD_FILE *stream
70 );
71 
81 int
82 sd_feof(
83  SD_FILE *stream
84 );
85 
93 int
94 sd_fflush(
95  SD_FILE *stream
96 );
97 
109 int
110 sd_fgetpos(
111  SD_FILE *stream,
112  ion_fpos_t *pos
113 );
114 
126 SD_FILE *
127 sd_fopen(
128  char *filename,
129  char *mode
130 );
131 
149 size_t
150 sd_fread(
151  void *ptr,
152  size_t size,
153  size_t nmemb,
154  SD_FILE *stream
155 );
156 
171 int
172 sd_fseek(
173  SD_FILE *stream,
174  long int offset,
175  int whence
176 );
177 
189 int
190 sd_fsetpos(
191  SD_FILE *stream,
192  ion_fpos_t *pos
193 );
194 
200 void
202  int i
203 );
204 
213 long int
214 sd_ftell(
215  SD_FILE *stream
216 );
217 
233 size_t
234 sd_fwrite(
235  void *ptr,
236  size_t size,
237  size_t nmemb,
238  SD_FILE *stream
239 );
240 
249 int
250 sd_remove(
251  char *filename
252 );
253 
261 void
262 sd_rewind(
263  SD_FILE *stream
264 );
265 
274 int
276  uint8_t csPin
277 );
278 
286 int
288  char *filepath
289 );
290 
295 int
297 );
298 
299 #if defined(__cplusplus)
300 }
301 #endif
302 
303 #endif /* Clause ARDUINO */
304 
305 #endif
long int sd_ftell(SD_FILE *stream)
size_t sd_fread(void *ptr, size_t size, size_t nmemb, SD_FILE *stream)
int sd_fgetpos(SD_FILE *stream, ion_fpos_t *pos)
A structure that translates a file object to a C-compatible struct.
int sd_fclose(SD_FILE *stream)
size_t sd_fwrite(void *ptr, size_t size, size_t nmemb, SD_FILE *stream)
int sd_fseek(SD_FILE *stream, long int offset, int whence)
int SD_File_Delete_All()
int SD_File_Begin(uint8_t csPin)
int SD_File_Exists(char *filepath)
int sd_feof(SD_FILE *stream)
void sd_printint(int i)
int sd_fflush(SD_FILE *stream)
void sd_rewind(SD_FILE *stream)
int sd_remove(char *filename)
SD_FILE * sd_fopen(char *filename, char *mode)
int sd_fsetpos(SD_FILE *stream, ion_fpos_t *pos)
Intercepts stdio.h defined functions for use on AVR platform.
long ion_fpos_t
A file position type.
Definition: kv_system.h:237