1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #include "Marlin.h"
- #ifdef SDSUPPORT
- #include "SdBaseFile.h"
- #ifndef SdFile_h
- #define SdFile_h
- class SdFile : public SdBaseFile {
-
-
-
-
-
- const uint8_t *gfReadPtr;
-
- uint32_t gfBlock;
- uint16_t gfOffset;
- const uint8_t *gfBlockBuffBegin()const;
-
- void gfReset();
-
- bool gfEnsureBlock();
- bool gfComputeNextFileBlock();
- void gfUpdateCurrentPosition(uint16_t inc);
- public:
- SdFile() {}
- SdFile(const char* name, uint8_t oflag);
- #if ARDUINO >= 100
- size_t write(uint8_t b);
- #else
- void write(uint8_t b);
- #endif
-
- bool openFilteredGcode(SdBaseFile* dirFile, const char* path);
- int16_t readFilteredGcode();
- bool seekSetFilteredGcode(uint32_t pos);
- int16_t write(const void* buf, uint16_t nbyte);
- void write(const char* str);
- void write_P(PGM_P str);
- void writeln_P(PGM_P str);
- };
- #endif
- #endif
|