mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-13 00:00:44 -08:00
* Adding new library, changing way of displaying texts (#118) * Adding custom icon for language button * Adding new library, changing way of displaying texts Added new library to make incoming translation possible to exists at the same time. * Prepare for flipper integration * More flipper wifi dev board work * Add command parse * Add set channel * Create bins for release v0.9.6 Co-authored-by: mlodawy <105587112+mlodawy@users.noreply.github.com>
49 lines
846 B
C++
49 lines
846 B
C++
#ifndef SDInterface_h
|
|
#define SDInterface_h
|
|
|
|
#include "configs.h"
|
|
|
|
#include "SD.h"
|
|
#include "Buffer.h"
|
|
#ifdef HAS_SCREEN
|
|
#include "Display.h"
|
|
#endif
|
|
#include <Update.h>
|
|
|
|
extern Buffer buffer_obj;
|
|
#ifdef HAS_SCREEN
|
|
extern Display display_obj;
|
|
#endif
|
|
|
|
#ifdef KIT
|
|
#define SD_DET 4
|
|
#endif
|
|
|
|
class SDInterface {
|
|
|
|
private:
|
|
bool checkDetectPin();
|
|
|
|
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
|