util: added keyboard defs for at wcass and original xwhatsit controller variants
[jackhill/qmk/firmware.git] / keyboards / xwhatsit / util_comm.h
CommitLineData
95520199
PA
1/* Copyright 2020 Purdea Andrei
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
38e6feca
PA
17#ifndef UTIL_COMM_H
18#define UTIL_COMM_H
19
ec75ada7
PA
20#define UTIL_COMM_VERSION_MAJOR 2
21#define UTIL_COMM_VERSION_MID 0
fd28099f 22#define UTIL_COMM_VERSION_MINOR 4
ec75ada7
PA
23
24
38e6feca
PA
25#define UTIL_COMM_MAGIC { 0x55, 0xAA }
26
27enum command {
28 UTIL_COMM_GET_VERSION = 0x11,
29 UTIL_COMM_ENTER_BOOTLOADER,
30 UTIL_COMM_DISABLE_KEYBOARD,
31 UTIL_COMM_ENABLE_KEYBOARD,
32 UTIL_COMM_GET_KEYSTATE,
33 UTIL_COMM_GET_THRESHOLDS,
34 UTIL_COMM_GET_KEYBOARD_FILENAME,
d48eeb39 35 UTIL_COMM_ERASE_EEPROM,
a171da13
PA
36 UTIL_COMM_GET_SIGNAL_VALUE,
37 UTIL_COMM_GET_KEYBOARD_DETAILS,
773b7610 38 UTIL_COMM_SHIFT_DATA,
fd28099f
PA
39 UTIL_COMM_SET_DAC_VALUE,
40 UTIL_COMM_GET_ROW_STATE,
38e6feca
PA
41};
42
43enum response {
44 UTIL_COMM_RESPONSE_OK = 0x22,
45 UTIL_COMM_RESPONSE_ERROR
46};
47
48#endif