...
command.h
- Committer:
- cardenb
- Date:
- 2015-12-08
- Revision:
- 0:20c3ba3a78d0
File content as of revision 0:20c3ba3a78d0:
#include "mbed.h" #include "IR.h" #include <string> class Command { public: Command(); explicit Command(const std::string &name); bool LearnCommand(Serial &pc); bool TransmitCommand(); private: std::string command_name_; uint8_t cmd_buf_[32]; RemoteIR::Format format_; bool learned_command_; int bitlength_; static const int kmax_fail_count_ = 3; };