summaryrefslogtreecommitdiff
path: root/quantum/split_common/transport.h
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-12-31 16:56:32 -0800
committerGitHub <noreply@github.com>2023-01-01 11:56:32 +1100
commitb585ece5ef9309557ac6b61eadda4f00e4e52b0c (patch)
tree1d66751c0fc8a0a2e495669d6003688f8160c2e6 /quantum/split_common/transport.h
parentac561b9473559b7880bcf2510ae5a0ac5cabde7a (diff)
Add Split support for Haptic feedback (#19203)
Diffstat (limited to 'quantum/split_common/transport.h')
-rw-r--r--quantum/split_common/transport.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/quantum/split_common/transport.h b/quantum/split_common/transport.h
index 833633edc2..adee4470d2 100644
--- a/quantum/split_common/transport.h
+++ b/quantum/split_common/transport.h
@@ -114,6 +114,14 @@ typedef struct _split_slave_pointing_sync_t {
} split_slave_pointing_sync_t;
#endif // defined(POINTING_DEVICE_ENABLE) && defined(SPLIT_POINTING_ENABLE)
+#if defined(HAPTIC_ENABLE) && defined(SPLIT_HAPTIC_ENABLE)
+# include "haptic.h"
+typedef struct _split_slave_haptic_sync_t {
+ haptic_config_t haptic_config;
+ uint8_t haptic_play;
+} split_slave_haptic_sync_t;
+#endif // defined(HAPTIC_ENABLE) && defined(SPLIT_HAPTIC_ENABLE)
+
#if defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER)
typedef struct _rpc_sync_info_t {
uint8_t checksum;
@@ -192,6 +200,10 @@ typedef struct _split_shared_memory_t {
bool watchdog_pinged;
#endif // defined(SPLIT_WATCHDOG_ENABLE)
+#if defined(HAPTIC_ENABLE)
+ split_slave_haptic_sync_t haptic_sync;
+#endif // defined(HAPTIC_ENABLE)
+
#if defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER)
rpc_sync_info_t rpc_info;
uint8_t rpc_m2s_buffer[RPC_M2S_BUFFER_SIZE];