SDInterface.h 516 B

123456789101112131415161718192021222324252627282930313233
  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 main();
  21. //void savePacket(uint8_t* buf, uint32_t len);
  22. };
  23. #endif