My Project
Functions | Variables
memory.cpp File Reference
#include "CanSatNeXTPins.h"
#include "FS.h"
#include "SD.h"
#include "SPI.h"
Include dependency graph for memory.cpp:

Go to the source code of this file.

Functions

uint8_t initSDCard ()
 
uint8_t appendFileOnDisk (String path, String data)
 
void printDirectory (File dir, int numTabs)
 
void printFileSystem ()
 
void newDir (String path)
 
void deleteDir (String path)
 
bool fileExists (String path)
 
uint32_t fileSize (String path)
 
uint8_t writeFileOnDisk (String path, String data)
 
String readFile (String path)
 
void renameFile (String oldpath, String newpath)
 
void deleteFile (String path)
 
bool SDCardPresent ()
 

Variables

SPIClass spi = SPIClass(VSPI)
 

Function Documentation

◆ 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.

◆ printDirectory()

void printDirectory ( File  dir,
int  numTabs 
)

Definition at line 41 of file memory.cpp.

Referenced by printFileSystem().

Here is the caller graph for this function:

◆ 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:

◆ 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:

Variable Documentation

◆ spi

SPIClass spi = SPIClass(VSPI)

Definition at line 9 of file memory.cpp.

Referenced by initSDCard().