1#ifndef __HID_ROCCAT_COMMON_H
2#define __HID_ROCCAT_COMMON_H
3
4
5
6
7
8
9
10
11
12
13
14
15#include <linux/usb.h>
16#include <linux/types.h>
17
18enum roccat_common2_commands {
19 ROCCAT_COMMON_COMMAND_CONTROL = 0x4,
20};
21
22struct roccat_common2_control {
23 uint8_t command;
24 uint8_t value;
25 uint8_t request;
26} __packed;
27
28int roccat_common2_receive(struct usb_device *usb_dev, uint report_id,
29 void *data, uint size);
30int roccat_common2_send(struct usb_device *usb_dev, uint report_id,
31 void const *data, uint size);
32int roccat_common2_send_with_status(struct usb_device *usb_dev,
33 uint command, void const *buf, uint size);
34
35#endif
36