PlayerEmbedded.h
- Committer:
- daan
- Date:
- 2011-10-31
- Revision:
- 0:01be2d5eaf72
- Child:
- 2:ce4c7e5ab241
File content as of revision 0:01be2d5eaf72:
#ifndef PLAYER_EMBEDDED_H #define PLAYER_EMBEDDED_H #include "stdint.h" #include "PlayerBase.h" #include "RingBuffer.h" // #include <iostream> namespace olc { class PlayerEmbedded : public PlayerBase { public: PlayerEmbedded(fou::RingBuffer2k &aBuffer) : mBuffer(aBuffer) {}; // void setGalvo(uint16_t x, uint16_t y); // void setLaserPower(uint16_t power); // void wait(uint16_t ms); protected: inline int bytesLeft() { // std::cout << "buffer size" << mBuffer.size() << std::endl; return mBuffer.size(); }; inline uint8_t get() { uint8_t d = mBuffer.front(); mBuffer.popFront(); return d; }; fou::RingBuffer2k& mBuffer; }; }; // end namespace ol #endif // PLAYER_BASE_H