...

Dependencies:   SmartRemote

Committer:
cardenb
Date:
Tue Dec 08 03:09:39 2015 +0000
Revision:
1:19b95e12c3ab
Parent:
0:20c3ba3a78d0
...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cardenb 0:20c3ba3a78d0 1 #include "mbed.h"
cardenb 0:20c3ba3a78d0 2 #include "IR.h"
cardenb 0:20c3ba3a78d0 3
cardenb 0:20c3ba3a78d0 4 #include <string>
cardenb 0:20c3ba3a78d0 5
cardenb 0:20c3ba3a78d0 6 class Command {
cardenb 0:20c3ba3a78d0 7 public:
cardenb 0:20c3ba3a78d0 8 Command();
cardenb 0:20c3ba3a78d0 9 explicit Command(const std::string &name);
cardenb 0:20c3ba3a78d0 10 bool LearnCommand(Serial &pc);
cardenb 0:20c3ba3a78d0 11 bool TransmitCommand();
cardenb 0:20c3ba3a78d0 12
cardenb 0:20c3ba3a78d0 13 private:
cardenb 0:20c3ba3a78d0 14 std::string command_name_;
cardenb 0:20c3ba3a78d0 15 uint8_t cmd_buf_[32];
cardenb 0:20c3ba3a78d0 16 RemoteIR::Format format_;
cardenb 0:20c3ba3a78d0 17 bool learned_command_;
cardenb 0:20c3ba3a78d0 18 int bitlength_;
cardenb 0:20c3ba3a78d0 19 static const int kmax_fail_count_ = 3;
cardenb 0:20c3ba3a78d0 20 };
cardenb 0:20c3ba3a78d0 21
cardenb 0:20c3ba3a78d0 22