3 static int silvercrest_callback(uint8_t bb[BITBUF_ROWS][BITBUF_COLS],int16_t bits_per_row[BITBUF_ROWS]) {
4 /* FIXME validate the received message better */
5 if (bb[1][0] == 0xF8 &&
13 /* Pretty sure this is a Silvercrest remote */
14 fprintf(stderr, "Remote button event:\n");
15 fprintf(stderr, "model = Silvercrest, %d bits\n",bits_per_row[1]);
16 fprintf(stderr, "%02x %02x %02x %02x %02x\n",bb[1][0],bb[0][1],bb[0][2],bb[0][3],bb[0][4]);
19 debug_callback(bb, bits_per_row);
26 r_device silvercrest = {
28 /* .name = */ "Silvercrest Remote Control",
29 /* .modulation = */ OOK_PWM_P,
30 /* .short_limit = */ 600/4,
31 /* .long_limit = */ 5000/4,
32 /* .reset_limit = */ 15000/4,
33 /* .json_callback = */ &silvercrest_callback,