3 static int silvercrest_callback(bitbuffer_t *bitbuffer) {
4 bitrow_t *bb = bitbuffer->bb;
5 /* FIXME validate the received message better */
6 if (bb[1][0] == 0xF8 &&
14 /* Pretty sure this is a Silvercrest remote */
15 fprintf(stdout, "Remote button event:\n");
16 fprintf(stdout, "model = Silvercrest, %d bits\n",bitbuffer->bits_per_row[1]);
17 fprintf(stdout, "%02x %02x %02x %02x %02x\n",bb[1][0],bb[0][1],bb[0][2],bb[0][3],bb[0][4]);
24 r_device silvercrest = {
25 .name = "Silvercrest Remote Control",
26 .modulation = OOK_PULSE_PWM_RAW,
30 .json_callback = &silvercrest_callback,
32 .demod_arg = 1, // Remove startbit