Begin generating the Brother bitstream and convert it to a fluxmap.

This commit is contained in:
David Given
2019-01-03 01:37:37 +01:00
parent d38952df2e
commit c564e6e14d
9 changed files with 151 additions and 14 deletions

View File

@@ -19,12 +19,14 @@ public:
return NULL;
}
Fluxmap& appendIntervals(std::vector<uint8_t>& intervals);
Fluxmap& appendIntervals(const std::vector<uint8_t>& intervals);
Fluxmap& appendIntervals(const uint8_t* ptr, size_t len);
nanoseconds_t guessClock() const;
std::vector<bool> decodeToBits(nanoseconds_t clock_period) const;
Fluxmap& appendBits(const std::vector<bool>& bits, nanoseconds_t clock);
private:
nanoseconds_t _duration = 0;
int _ticks = 0;