19 CPhidgetIR_set_OnCode_Handler(ir_handle_,
CodeHandler,
this);
23 int IR::CodeHandler(CPhidgetIRHandle ,
void *userptr,
unsigned char *data,
int dataLength,
int bitCount,
int repeat)
25 ((
IR*)userptr)->codeHandler(data, dataLength, bitCount, repeat);
29 void IR::codeHandler(
unsigned char *data,
int dataLength,
int bitCount,
int repeat)
32 printf(
"DataLength: %d, Bit Count: %d, Repeat: %d\n", dataLength, bitCount, repeat);
34 for(i = 0; i < dataLength; i++)
36 printf(
"%02x", data[i]);
virtual void codeHandler(unsigned char *data, int dataLength, int bitCount, int repeat)
virtual void registerHandlers()
static int CodeHandler(CPhidgetIRHandle ir, void *userPtr, unsigned char *data, int dataLength, int bitCount, int repeat)
void init(CPhidgetHandle handle)
CPhidgetIRHandle ir_handle_