diff options
Diffstat (limited to 'quantum/action_code.h')
| -rw-r--r-- | quantum/action_code.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/quantum/action_code.h b/quantum/action_code.h index eb18c36ae8..20b3e459d2 100644 --- a/quantum/action_code.h +++ b/quantum/action_code.h | |||
| @@ -79,19 +79,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 79 | * 101E|LLLL|1111 0100 One Shot Layer (0xF4) [TAP] | 79 | * 101E|LLLL|1111 0100 One Shot Layer (0xF4) [TAP] |
| 80 | * 101E|LLLL|1111 xxxx Reserved (0xF5-FF) | 80 | * 101E|LLLL|1111 xxxx Reserved (0xF5-FF) |
| 81 | * ELLLL: layer 0-31(E: extra bit for layer 16-31) | 81 | * ELLLL: layer 0-31(E: extra bit for layer 16-31) |
| 82 | * | ||
| 83 | * Extensions(11xx) | ||
| 84 | * ---------------- | ||
| 85 | * ACT_MACRO(1100): | ||
| 86 | * 1100|opt | id(8) Macro play? | ||
| 87 | * 1100|1111| id(8) Macro record? | ||
| 88 | * | ||
| 89 | * 1101|xxxx xxxx xxxx (reserved) | ||
| 90 | * 1110|xxxx xxxx xxxx (reserved) | ||
| 91 | * | ||
| 92 | * ACT_FUNCTION(1111): | ||
| 93 | * 1111| address(12) Function? | ||
| 94 | * 1111|opt | id(8) Function? | ||
| 95 | */ | 82 | */ |
| 96 | enum action_kind_id { | 83 | enum action_kind_id { |
| 97 | /* Key Actions */ | 84 | /* Key Actions */ |
| @@ -111,9 +98,6 @@ enum action_kind_id { | |||
| 111 | ACT_LAYER_MODS = 0b1001, | 98 | ACT_LAYER_MODS = 0b1001, |
| 112 | ACT_LAYER_TAP = 0b1010, /* Layer 0-15 */ | 99 | ACT_LAYER_TAP = 0b1010, /* Layer 0-15 */ |
| 113 | ACT_LAYER_TAP_EXT = 0b1011, /* Layer 16-31 */ | 100 | ACT_LAYER_TAP_EXT = 0b1011, /* Layer 16-31 */ |
| 114 | /* Extensions */ | ||
| 115 | ACT_MACRO = 0b1100, | ||
| 116 | ACT_FUNCTION = 0b1111 | ||
| 117 | }; | 101 | }; |
| 118 | 102 | ||
| 119 | /** \brief Action Code Struct | 103 | /** \brief Action Code Struct |
| @@ -164,11 +148,6 @@ typedef union { | |||
| 164 | uint8_t page : 2; | 148 | uint8_t page : 2; |
| 165 | uint8_t kind : 4; | 149 | uint8_t kind : 4; |
| 166 | } usage; | 150 | } usage; |
| 167 | struct action_function { | ||
| 168 | uint8_t id : 8; | ||
| 169 | uint8_t opt : 4; | ||
| 170 | uint8_t kind : 4; | ||
| 171 | } func; | ||
| 172 | struct action_swap { | 151 | struct action_swap { |
| 173 | uint8_t code : 8; | 152 | uint8_t code : 8; |
| 174 | uint8_t opt : 4; | 153 | uint8_t opt : 4; |
| @@ -275,17 +254,6 @@ enum layer_param_tap_op { | |||
| 275 | #define ACTION_DEFAULT_LAYER_BIT_XOR(part, bits) ACTION_LAYER_BITOP(OP_BIT_XOR, (part), (bits), 0) | 254 | #define ACTION_DEFAULT_LAYER_BIT_XOR(part, bits) ACTION_LAYER_BITOP(OP_BIT_XOR, (part), (bits), 0) |
| 276 | #define ACTION_DEFAULT_LAYER_BIT_SET(part, bits) ACTION_LAYER_BITOP(OP_BIT_SET, (part), (bits), 0) | 255 | #define ACTION_DEFAULT_LAYER_BIT_SET(part, bits) ACTION_LAYER_BITOP(OP_BIT_SET, (part), (bits), 0) |
| 277 | 256 | ||
| 278 | /* Macro */ | ||
| 279 | #define ACTION_MACRO(id) ACTION(ACT_MACRO, (id)) | ||
| 280 | #define ACTION_MACRO_TAP(id) ACTION(ACT_MACRO, FUNC_TAP << 8 | (id)) | ||
| 281 | #define ACTION_MACRO_OPT(id, opt) ACTION(ACT_MACRO, (opt) << 8 | (id)) | ||
| 282 | /* Function */ | ||
| 283 | enum function_opts { | ||
| 284 | FUNC_TAP = 0x8, /* indciates function is tappable */ | ||
| 285 | }; | ||
| 286 | #define ACTION_FUNCTION(id) ACTION(ACT_FUNCTION, (id)) | ||
| 287 | #define ACTION_FUNCTION_TAP(id) ACTION(ACT_FUNCTION, FUNC_TAP << 8 | (id)) | ||
| 288 | #define ACTION_FUNCTION_OPT(id, opt) ACTION(ACT_FUNCTION, (opt) << 8 | (id)) | ||
| 289 | /* OneHand Support */ | 257 | /* OneHand Support */ |
| 290 | enum swap_hands_param_tap_op { | 258 | enum swap_hands_param_tap_op { |
| 291 | OP_SH_TOGGLE = 0xF0, | 259 | OP_SH_TOGGLE = 0xF0, |
