SDInterface.h 546 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef SDInterface_h
  2. #define SDInterface_h
  3. #include "SD.h"
  4. #include "Buffer.h"
  5. extern Buffer buffer_obj;
  6. #define SD_CS 12
  7. class SDInterface {
  8. private:
  9. public:
  10. uint8_t cardType;
  11. //uint64_t cardSizeBT;
  12. //uint64_t cardSizeKB;
  13. uint64_t cardSizeMB;
  14. //uint64_t cardSizeGB;
  15. bool supported = false;
  16. bool do_save = true;
  17. String card_sz;
  18. bool initSD();
  19. void addPacket(uint8_t* buf, uint32_t len);
  20. void openCapture();
  21. void main();
  22. //void savePacket(uint8_t* buf, uint32_t len);
  23. };
  24. #endif