...
command.h
- Committer:
- cardenb
- Date:
- 2015-12-08
- Revision:
- 1:19b95e12c3ab
- Parent:
- 0:20c3ba3a78d0
File content as of revision 1:19b95e12c3ab:
#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; };