17#include <SerialFlash.h>
25 SerialFlashFile _file;
27 uint8_t _flash_delay = 100;
28 uint8_t _file_pointer = 0;
32 DataLogger(uint8_t cs_pin, uint8_t led_pin,
char* filename, SerialFlashFile
file, uint32_t filesize);
38 void loggerRead(uint8_t file_pointer,
char buffer);
bool loggerInit()
Initialize the flash memory.
Definition logger.cpp:76
void loggerWrite(telemetry_type_t)
write the provided data to the file created
Definition logger.cpp:159
void loggerRead(uint8_t file_pointer, char buffer)
Read data from the start of the file to the end of the file.
Definition logger.cpp:225
void loggerFormat()
format the flash memory
Definition logger.cpp:37
void loggerTest()
test the flash memory write and read function by reading and writing a variable to it
Definition logger.cpp:147
void loggerInfo()
print the data about the flash memory
Definition logger.cpp:236
DataLogger(uint8_t cs_pin, uint8_t led_pin, char *filename, SerialFlashFile file, uint32_t filesize)
class constructor pass the chip select pin as a parameter for that class instance
Definition logger.cpp:23
void loggerSpaces()
helper function to print spaces for data formatting
Definition logger.cpp:250
void loggerEquals()
helper function to print = for data formatting
Definition logger.cpp:259
defines the data types, structs and typedefs used to store flight data
struct Telemetry_Data telemetry_type_t
SerialFlashFile file
Definition main.cpp:144