added CDTV support

This commit is contained in:
salocinx
2017-02-02 14:18:57 +01:00
committed by GitHub
parent db9cf55188
commit 69c4503209

View File

@@ -79,6 +79,9 @@
#define DECODE_LEGO_PF 0 // NOT WRITTEN #define DECODE_LEGO_PF 0 // NOT WRITTEN
#define SEND_LEGO_PF 1 #define SEND_LEGO_PF 1
#define DECODE_CDTV 1
#define SEND_CDTV 1
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// When sending a Pronto code we request to send either the "once" code // When sending a Pronto code we request to send either the "once" code
// or the "repeat" code // or the "repeat" code
@@ -119,6 +122,7 @@ typedef
DENON, DENON,
PRONTO, PRONTO,
LEGO_PF, LEGO_PF,
CDTV,
} }
decode_type_t; decode_type_t;
@@ -247,9 +251,13 @@ class IRrecv
# if DECODE_DENON # if DECODE_DENON
bool decodeDenon (decode_results *results) ; bool decodeDenon (decode_results *results) ;
# endif # endif
//...................................................................... //......................................................................
# if DECODE_LEGO_PF # if DECODE_LEGO_PF
bool decodeLegoPowerFunctions (decode_results *results) ; bool decodeLegoPowerFunctions (decode_results *results) ;
# endif
//......................................................................
# if DECODE_CDTV
bool decodeCDTV (decode_results *results) ;
# endif # endif
} ; } ;
@@ -335,9 +343,13 @@ class IRsend
# if SEND_PRONTO # if SEND_PRONTO
void sendPronto (char* code, bool repeat, bool fallback) ; void sendPronto (char* code, bool repeat, bool fallback) ;
# endif # endif
//...................................................................... //......................................................................
# if SEND_LEGO_PF # if SEND_LEGO_PF
void sendLegoPowerFunctions (uint16_t data, bool repeat = true) ; void sendLegoPowerFunctions (uint16_t data, bool repeat = true) ;
# endif
//......................................................................
# if SEND_CDTV
void sendCDTV (unsigned long data, int nbits) ;
# endif # endif
} ; } ;