2020-10-01 15:56:54 +10:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
2020-06-29 14:37:11 +10:00
|
|
|
#pragma once
|
|
|
|
|
2020-12-21 01:49:42 +11:00
|
|
|
#define ZMK_SPLIT_RUN_BEHAVIOR_DEV_LEN 9
|
|
|
|
|
|
|
|
struct zmk_split_run_behavior_data {
|
|
|
|
uint8_t position;
|
|
|
|
uint8_t state;
|
|
|
|
uint32_t param1;
|
|
|
|
uint32_t param2;
|
|
|
|
} __packed;
|
|
|
|
|
|
|
|
struct zmk_split_run_behavior_payload {
|
|
|
|
struct zmk_split_run_behavior_data data;
|
|
|
|
char behavior_dev[ZMK_SPLIT_RUN_BEHAVIOR_DEV_LEN];
|
|
|
|
} __packed;
|
|
|
|
|
2020-12-03 03:41:57 +11:00
|
|
|
int zmk_split_bt_position_pressed(uint8_t position);
|
|
|
|
int zmk_split_bt_position_released(uint8_t position);
|