Added Samsung protocol

This commit is contained in:
sstefanov
2014-05-23 12:20:39 +03:00
parent 46b4e1084e
commit 0de2d18bdb
3 changed files with 116 additions and 41 deletions

View File

@@ -45,6 +45,7 @@ public:
#define JVC 8
#define SANYO 9
#define MITSUBISHI 10
#define SAMSUNG 11
#define UNKNOWN -1
// Decoded value for NEC when a repeat code is received
@@ -70,6 +71,7 @@ private:
long decodeRC6(decode_results *results);
long decodePanasonic(decode_results *results);
long decodeJVC(decode_results *results);
long decodeSAMSUNG(decode_results *results);
long decodeHash(decode_results *results);
int compare(unsigned int oldval, unsigned int newval);
@@ -100,6 +102,7 @@ public:
void sendPanasonic(unsigned int address, unsigned long data);
void sendJVC(unsigned long data, int nbits, int repeat); // *Note instead of sending the REPEAT constant if you want the JVC repeat signal sent, send the original code value and change the repeat argument from 0 to 1. JVC protocol repeats by skipping the header NOT by sending a separate code value like NEC does.
// private:
void sendSAMSUNG(unsigned long data, int nbits);
void enableIROut(int khz);
VIRTUAL void mark(int usec);
VIRTUAL void space(int usec);