Peter Hutterer
aadfefe752
hidpp10: convert enable_specific_feature into proper functions
...
This also changes from the "toggle" to a plain "set". If a caller needs to
toggle a specific function, it can run get + set instead.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-25 11:21:32 +10:00
Peter Hutterer
18f4e13b59
hidpp10: add set_led_status
...
Only enabled for 4 leds and I'm not even sure they're the same on all
devices. Still, works on the G500s so that's a good enough start.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-25 11:21:32 +10:00
Peter Hutterer
0891510d32
hidpp10: convert get_led_status to a proper function
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-25 11:21:32 +10:00
Peter Hutterer
d1aec43c18
hidpp10: switch get current resolution to a proper function
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-25 11:21:32 +10:00
Peter Hutterer
40ea55729c
hidpp10: split pairing information into a proper function
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-25 11:21:32 +10:00
Peter Hutterer
268fbbbf40
hidpp10: convert fw information fetching into a proper function
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-25 11:21:32 +10:00
Peter Hutterer
33455a3245
hidpp10: store the resolution/refresh rate in the hidpp device
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-24 17:00:33 +10:00
Peter Hutterer
50d97bb33e
hidpp10: mark the message struct as __attribute__((packed))
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-24 16:13:55 +10:00
Peter Hutterer
8aefa83b81
hidpp10: remove outdated comment
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-24 16:13:16 +10:00
Peter Hutterer
61377554ef
hidpp10: move the various defines into the c file
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-24 15:04:30 +10:00
Peter Hutterer
872d522364
hidpp: move the shared defines into a generic header
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-24 15:03:29 +10:00
Peter Hutterer
a0d882d2e5
hidpp10: implement refresh rate
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-24 14:41:46 +10:00
Peter Hutterer
adf1b9a99d
hidpp10: add Optical sensor settings command
...
From:
https://github.com/cvuchener/g500/blob/master/doc/report.md
but we don't know what the return value is...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-24 14:41:46 +10:00
Peter Hutterer
ed320bcdea
hidpp10: add resolution and LED status
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-24 14:41:46 +10:00
Peter Hutterer
58585bfb19
hidpp10: switch the idx base to 1, not 0
...
Only two receiver-specific requests have a 0-based index, everything else
wants 1-indexed devices. This currently makes it impossible to address wired
devices with a device index of 0. Switch it around, so that we use a 1-based
index.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-24 14:41:46 +10:00
Peter Hutterer
e5df589c84
hidpp10: fix up coding style a bit
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-24 13:38:14 +10:00
Peter Hutterer
4c7fb6f803
hidpp10: Add support for the HID++1.0 Notifications request
...
They're off by default, but I have to start testing somewhere...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-24 13:37:43 +10:00
Benjamin Tissoires
1112a46d87
hidpp10: remove the hard dependency on struct hidpp10_device for hidpp10_toggle_individual_feature
...
Starting with kernel v3.19, the hidraw node associated to the input node
talks the the actual device, no matter which device index is given.
There is no need to really know which device has which index thus.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2015-08-20 13:08:39 -04:00
Benjamin Tissoires
9df3cd4128
hidpp10: various __u8 __u16 hunt
...
replaced by uint8_t and uint16_t
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2015-08-20 12:14:17 -04:00
Benjamin Tissoires
c32c1471cb
hidpp10: switch to libratbag debug system
...
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2015-08-20 12:13:45 -04:00
Benjamin Tissoires
29b72c1a94
hidpp10: use ratbag_hidraw* commands, not plain access to the fd
...
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2015-08-20 10:46:21 -04:00
Peter Hutterer
279bceb2d7
Drop unifying src files, use hidpp10 instead
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-20 14:59:46 +10:00
Peter Hutterer
f36f4d22a7
Start moving uLogitech files into libratbag proper
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2015-08-20 14:59:46 +10:00