My Project
Functions
memory.h File Reference
#include "Arduino.h"
Include dependency graph for memory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint8_t initSDCard ()
 
bool SDCardPresent ()
 
uint8_t appendFileOnDisk (String path, String data)
 
template<typename T >
uint8_t appendFile (String path, T data)
 
uint8_t writeFileOnDisk (String path, String data)
 
template<typename T >
uint8_t writeFile (String path, T data)
 
void printFileSystem ()
 
void newDir (String path)
 
void deleteDir (String path)
 
bool fileExists (String path)
 
uint32_t fileSize (String path)
 
String readFile (String path)
 
void renameFile (String oldpath, String newpath)
 
void deleteFile (String path)
 

Function Documentation

◆ appendFile()

template<typename T >
uint8_t appendFile ( String  path,
data 
)

Definition at line 15 of file memory.h.

References appendFileOnDisk().

Here is the call graph for this function:

◆ appendFileOnDisk()

uint8_t appendFileOnDisk ( String  path,
String  data 
)

Definition at line 29 of file memory.cpp.

Referenced by appendFile().

Here is the caller graph for this function:

◆ deleteDir()

void deleteDir ( String  path)

Definition at line 78 of file memory.cpp.

◆ deleteFile()

void deleteFile ( String  path)

Definition at line 124 of file memory.cpp.

◆ fileExists()

bool fileExists ( String  path)

Definition at line 83 of file memory.cpp.

◆ fileSize()

uint32_t fileSize ( String  path)

Definition at line 88 of file memory.cpp.

◆ initSDCard()

uint8_t initSDCard ( )

Definition at line 11 of file memory.cpp.

References SD_CS, SD_DET, spi, SPI_CLK, SPI_MISO, and SPI_MOSI.

Referenced by CanSatInit().

Here is the caller graph for this function:

◆ newDir()

void newDir ( String  path)

Definition at line 74 of file memory.cpp.

◆ printFileSystem()

void printFileSystem ( )

Definition at line 63 of file memory.cpp.

References printDirectory().

Here is the call graph for this function:

◆ readFile()

String readFile ( String  path)

Definition at line 109 of file memory.cpp.

◆ renameFile()

void renameFile ( String  oldpath,
String  newpath 
)

Definition at line 119 of file memory.cpp.

◆ SDCardPresent()

bool SDCardPresent ( )

Definition at line 129 of file memory.cpp.

References SD_DET.

Referenced by CanSatInit().

Here is the caller graph for this function:

◆ writeFile()

template<typename T >
uint8_t writeFile ( String  path,
data 
)

Definition at line 23 of file memory.h.

References writeFileOnDisk().

Here is the call graph for this function:

◆ writeFileOnDisk()

uint8_t writeFileOnDisk ( String  path,
String  data 
)

Definition at line 97 of file memory.cpp.

Referenced by writeFile().

Here is the caller graph for this function: