mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-05 20:40:25 -08:00
40 lines
723 B
C++
40 lines
723 B
C++
#ifndef SDInterface_h
|
|
#define SDInterface_h
|
|
|
|
#include "SD.h"
|
|
#include "Buffer.h"
|
|
#include "Display.h"
|
|
#include <Update.h>
|
|
|
|
extern Buffer buffer_obj;
|
|
extern Display display_obj;
|
|
|
|
#define SD_CS 12
|
|
|
|
class SDInterface {
|
|
|
|
private:
|
|
|
|
public:
|
|
uint8_t cardType;
|
|
//uint64_t cardSizeBT;
|
|
//uint64_t cardSizeKB;
|
|
uint64_t cardSizeMB;
|
|
//uint64_t cardSizeGB;
|
|
bool supported = false;
|
|
bool do_save = true;
|
|
|
|
String card_sz;
|
|
|
|
bool initSD();
|
|
|
|
void addPacket(uint8_t* buf, uint32_t len);
|
|
void openCapture(String file_name = "");
|
|
void runUpdate();
|
|
void performUpdate(Stream &updateSource, size_t updateSize);
|
|
void main();
|
|
//void savePacket(uint8_t* buf, uint32_t len);
|
|
};
|
|
|
|
#endif
|