/*
 * David Muller; Germán Alfaro
 * davehmuller@gmail.com; alfaro.germanevera@gmail.com
 */


#ifndef MPHOX_SDCARD_H_
#define MPHOX_SDCARD_H_

#include "System.h"
#include "SDCard.h"
#include "user_IO.h"
#include "fatfs/src/diskio.h"
#include "fatfs/src/ff.h" 	// FRESULT is defined in this file
#include "utils/cmdline.h"


// SDCard.c function prototypes:
void Init_SDCard(void);
void closeSDCard(void);
void viewFiles(void);
void appendBufferToSDCard(char *buffer);
const char *StringFromFresult(FRESULT fresult);  //For decoding SD card error messages
int sd_fprintf(FIL *fil, const char *format, ...);
void sd_format(void);

#endif /* SEAPHOX_MFET_SDCARD_H_ */
