Browse Source

DataFlash: added get_structures() API

used in Replay
master
Andrew Tridgell 9 years ago
parent
commit
d90a2f7deb
  1. 6
      libraries/DataFlash/DataFlash.h

6
libraries/DataFlash/DataFlash.h

@ -78,6 +78,12 @@ public: @@ -78,6 +78,12 @@ public:
bool NeedPrep();
void Prep();
// get a pointer to structures
const struct LogStructure *get_structures(uint8_t &num_types) {
num_types = _num_types;
return _structures;
}
/* Write a block of data at current offset */
void WriteBlock(const void *pBuffer, uint16_t size);
/* Write an *important* block of data at current offset */

Loading…
Cancel
Save