2021-06-17 16:10:06 -07:00
|
|
|
/* Copyright 2021 QMK
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
enum serial_transaction_id {
|
|
|
|
#ifdef USE_I2C
|
|
|
|
I2C_EXECUTE_CALLBACK,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // USE_I2C
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
GET_SLAVE_MATRIX_CHECKSUM,
|
|
|
|
GET_SLAVE_MATRIX_DATA,
|
|
|
|
|
|
|
|
#ifdef SPLIT_TRANSPORT_MIRROR
|
|
|
|
PUT_MASTER_MATRIX,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // SPLIT_TRANSPORT_MIRROR
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
#ifdef ENCODER_ENABLE
|
|
|
|
GET_ENCODERS_CHECKSUM,
|
|
|
|
GET_ENCODERS_DATA,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // ENCODER_ENABLE
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
#ifndef DISABLE_SYNC_TIMER
|
|
|
|
PUT_SYNC_TIMER,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // DISABLE_SYNC_TIMER
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
#if !defined(NO_ACTION_LAYER) && defined(SPLIT_LAYER_STATE_ENABLE)
|
|
|
|
PUT_LAYER_STATE,
|
|
|
|
PUT_DEFAULT_LAYER_STATE,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // !defined(NO_ACTION_LAYER) && defined(SPLIT_LAYER_STATE_ENABLE)
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
#ifdef SPLIT_LED_STATE_ENABLE
|
|
|
|
PUT_LED_STATE,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // SPLIT_LED_STATE_ENABLE
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
#ifdef SPLIT_MODS_ENABLE
|
|
|
|
PUT_MODS,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // SPLIT_MODS_ENABLE
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
#ifdef BACKLIGHT_ENABLE
|
|
|
|
PUT_BACKLIGHT,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // BACKLIGHT_ENABLE
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
#if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT)
|
|
|
|
PUT_RGBLIGHT,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT)
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
#if defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT)
|
|
|
|
PUT_LED_MATRIX,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // defined(LED_MATRIX_ENABLE) && defined(LED_MATRIX_SPLIT)
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
#if defined(RGB_MATRIX_ENABLE) && defined(RGB_MATRIX_SPLIT)
|
|
|
|
PUT_RGB_MATRIX,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT)
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
#if defined(WPM_ENABLE) && defined(SPLIT_WPM_ENABLE)
|
|
|
|
PUT_WPM,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // defined(WPM_ENABLE) && defined(SPLIT_WPM_ENABLE)
|
2021-06-17 16:10:06 -07:00
|
|
|
|
2021-08-23 23:28:26 -07:00
|
|
|
#if defined(OLED_ENABLE) && defined(SPLIT_OLED_ENABLE)
|
2021-08-14 22:39:08 -07:00
|
|
|
PUT_OLED,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // defined(OLED_ENABLE) && defined(SPLIT_OLED_ENABLE)
|
2021-08-14 22:39:08 -07:00
|
|
|
|
|
|
|
#if defined(ST7565_ENABLE) && defined(SPLIT_ST7565_ENABLE)
|
|
|
|
PUT_ST7565,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // defined(ST7565_ENABLE) && defined(SPLIT_ST7565_ENABLE)
|
2021-08-14 22:39:08 -07:00
|
|
|
|
2021-12-26 17:05:51 -08:00
|
|
|
#if defined(POINTING_DEVICE_ENABLE) && defined(SPLIT_POINTING_ENABLE)
|
|
|
|
GET_POINTING_CHECKSUM,
|
|
|
|
GET_POINTING_DATA,
|
|
|
|
PUT_POINTING_CPI,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // defined(POINTING_DEVICE_ENABLE) && defined(SPLIT_POINTING_ENABLE)
|
2021-12-26 17:05:51 -08:00
|
|
|
|
2022-10-06 02:52:42 -07:00
|
|
|
#if defined(SPLIT_WATCHDOG_ENABLE)
|
|
|
|
PUT_WATCHDOG,
|
|
|
|
#endif // defined(SPLIT_WATCHDOG_ENABLE)
|
|
|
|
|
2022-12-31 16:56:32 -08:00
|
|
|
#if defined(HAPTIC_ENABLE) && defined(SPLIT_HAPTIC_ENABLE)
|
|
|
|
PUT_HAPTIC,
|
|
|
|
#endif // defined(HAPTIC_ENABLE) && defined(SPLIT_HAPTIC_ENABLE)
|
|
|
|
|
2023-03-21 02:16:11 -07:00
|
|
|
#if defined(SPLIT_ACTIVITY_ENABLE)
|
|
|
|
PUT_ACTIVITY,
|
|
|
|
#endif // SPLIT_ACTIVITY_ENABLE
|
|
|
|
|
2021-06-17 16:10:06 -07:00
|
|
|
#if defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER)
|
|
|
|
PUT_RPC_INFO,
|
|
|
|
PUT_RPC_REQ_DATA,
|
|
|
|
EXECUTE_RPC,
|
|
|
|
GET_RPC_RESP_DATA,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER)
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
// keyboard-specific
|
|
|
|
#ifdef SPLIT_TRANSACTION_IDS_KB
|
|
|
|
SPLIT_TRANSACTION_IDS_KB,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // SPLIT_TRANSACTION_IDS_KB
|
2021-06-17 16:10:06 -07:00
|
|
|
|
|
|
|
// user/keymap-specific
|
|
|
|
#ifdef SPLIT_TRANSACTION_IDS_USER
|
|
|
|
SPLIT_TRANSACTION_IDS_USER,
|
2022-02-12 10:29:31 -08:00
|
|
|
#endif // SPLIT_TRANSACTION_IDS_USER
|
2021-06-17 16:10:06 -07:00
|
|
|
|
2023-04-03 15:48:51 -07:00
|
|
|
#if defined(OS_DETECTION_ENABLE) && defined(SPLIT_DETECTED_OS_ENABLE)
|
|
|
|
PUT_DETECTED_OS,
|
|
|
|
#endif // defined(OS_DETECTION_ENABLE) && defined(SPLIT_DETECTED_OS_ENABLE)
|
|
|
|
|
2021-06-17 16:10:06 -07:00
|
|
|
NUM_TOTAL_TRANSACTIONS
|
|
|
|
};
|
|
|
|
|
|
|
|
// Ensure we only use 5 bits for transaction
|
|
|
|
_Static_assert(NUM_TOTAL_TRANSACTIONS <= (1 << 5), "Max number of usable transactions exceeded");
|