Skip to contentSkip to conversation

keytable: add support for iMON RSC remote pointer

PATCH New Sean Young 1 participant 1 message Jan 9, 2019 Media (V4L/DVB)

lore
Share & tools
lore

Sean Young

author
#0 lore raw

PATCH 1/1 keytable: add support for iMON RSC remote pointer

This remote has a small joystick which acts like a mouse. Support decoding this.

---
 utils/keytable/bpf_protocols/Makefile.am      |   2 +-
 utils/keytable/bpf_protocols/bpf_helpers.h    | 192 +++++++++++-------
 utils/keytable/bpf_protocols/imon_rsc.c       | 156 ++++++++++++++
 utils/keytable/rc_keymaps/imon_rsc.toml       |   2 +
 .../rc_keymaps_userspace/imon_rsc.toml        |  50 +++++
 5 files changed, 330 insertions(+), 72 deletions(-)
 create mode 100644 utils/keytable/bpf_protocols/imon_rsc.c
 create mode 100644 utils/keytable/rc_keymaps_userspace/imon_rsc.toml
utils/keytable/bpf_protocols/Makefile.am +1 -1
index d1f04cb4..123b64ec 100644
@@ -10,7 +10,7 @@ CLANG_SYS_INCLUDES := $(shell $(CLANG) -v -E - </dev/null 2>&1 \
 %.o: %.c bpf_helpers.h
 	$(CLANG) $(CLANG_SYS_INCLUDES) -D__linux__ -I$(top_srcdir)/include -target bpf -O2 -c $<
 
-PROTOCOLS = grundig.o pulse_distance.o pulse_length.o rc_mm.o manchester.o xbox.o
+PROTOCOLS = grundig.o pulse_distance.o pulse_length.o rc_mm.o manchester.o xbox.o imon_rsc.o
 
 all: $(PROTOCOLS)
 
utils/keytable/bpf_protocols/bpf_helpers.h +121 -71

258 lines not on this page · raw message

utils/keytable/bpf_protocols/imon_rsc.c new file +156 -0

156 lines not on this page · raw message

utils/keytable/rc_keymaps/imon_rsc.toml +2 -0
index ace34860..4f20a54e 100644
@@ -46,3 +46,5 @@ variant = "necx"
 0x801052 = "KEY_REWIND"
 0x801053 = "KEY_FASTFORWARD"
 0x801089 = "KEY_ZOOM"
+[[protocols]]
+protocol = "imon_rsc"
utils/keytable/rc_keymaps_userspace/imon_rsc.toml new file +50 -0

50 lines not on this page · raw message

Signature · 1 line
2.20.1