Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hid-roccat-kovaplus.h
Go to the documentation of this file.
1 #ifndef __HID_ROCCAT_KOVAPLUS_H
2 #define __HID_ROCCAT_KOVAPLUS_H
3 
4 /*
5  * Copyright (c) 2010 Stefan Achatz <[email protected]>
6  */
7 
8 /*
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by the Free
11  * Software Foundation; either version 2 of the License, or (at your option)
12  * any later version.
13  */
14 
15 #include <linux/types.h>
16 
18  /* write; value = profile number range 0-4 */
20  /* write; value = profile number range 0-4 */
22 };
23 
25  uint8_t command; /* KOVAPLUS_COMMAND_ACTUAL_PROFILE */
26  uint8_t size; /* always 3 */
27  uint8_t actual_profile; /* Range 0-4! */
28 } __packed;
29 
31  uint8_t command; /* KOVAPLUS_COMMAND_PROFILE_SETTINGS */
32  uint8_t size; /* 16 */
33  uint8_t profile_index; /* range 0-4 */
35  uint8_t sensitivity_x; /* range 1-10 */
36  uint8_t sensitivity_y; /* range 1-10 */
38  uint8_t cpi_startup_level; /* range 1-4 */
40 } __packed;
41 
43  uint8_t command; /* KOVAPLUS_COMMAND_PROFILE_BUTTONS */
44  uint8_t size; /* 23 */
45  uint8_t profile_index; /* range 0-4 */
47 } __packed;
48 
49 struct kovaplus_info {
50  uint8_t command; /* KOVAPLUS_COMMAND_INFO */
51  uint8_t size; /* 6 */
54 } __packed;
55 
56 /* writes 1 on plugin */
57 struct kovaplus_a {
58  uint8_t command; /* KOVAPLUS_COMMAND_A */
59  uint8_t size; /* 3 */
61 } __packed;
62 
69 };
70 
76 };
77 
79  uint8_t report_number; /* KOVAPLUS_MOUSE_REPORT_NUMBER_BUTTON */
84 } __packed;
85 
87  /* data1 = profile_number range 1-5; no release event */
89  /* data1 = profile_number range 1-5; no release event */
91  /* data1 = button_number range 1-18; data2 = action */
93  /* data1 = button_number range 1-18; data2 = action */
95  /* data1 = button_number range 1-18; data2 = action */
97  /* data1 = button_number range 1-18; data2 = action */
99  /* data1 = 1 = 400, 2 = 800, 4 = 1600, 7 = 3200; no release event */
101  /* data1 + data2 = sense range 1-10; no release event */
103  /* data1 = type as in profile_buttons; data2 = action */
105 };
106 
110 };
111 
118 } __packed;
119 
131 };
132 
133 #endif