Mercurial > louis > kiibohd-controller
annotate Macro/PartialMap/macro.h @ 361:7c6ac7b88cda
Working support for Interconnect
- Supports up to 255 slave nodes (you'll run into ScanCode limitations before then)
- Requires most recent kll compiler update
- Additional debugging output and stats counters
- Noise and parity checking
- Fixed TxFIFO issue when sending buffers larger than the FIFO
- Cleaned up defaultMap.kll
- Added ScanCode caching (reduces interconnect traffic significantly)
- Interconnect module code is conditionally compiled into PartialMap module if required
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Sat, 15 Aug 2015 21:53:59 -0700 |
parents | 66eccdd9ced5 |
children | 39e338a6733d |
rev | line source |
---|---|
341 | 1 /* Copyright (C) 2014-2015 by Jacob Alexander |
125
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
2 * |
186
50702debf278
Initial MatrixARM implementation
Jacob Alexander <haata@kiibohd.com>
parents:
176
diff
changeset
|
3 * This file is free software: you can redistribute it and/or modify |
50702debf278
Initial MatrixARM implementation
Jacob Alexander <haata@kiibohd.com>
parents:
176
diff
changeset
|
4 * it under the terms of the GNU General Public License as published by |
50702debf278
Initial MatrixARM implementation
Jacob Alexander <haata@kiibohd.com>
parents:
176
diff
changeset
|
5 * the Free Software Foundation, either version 3 of the License, or |
50702debf278
Initial MatrixARM implementation
Jacob Alexander <haata@kiibohd.com>
parents:
176
diff
changeset
|
6 * (at your option) any later version. |
125
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
7 * |
186
50702debf278
Initial MatrixARM implementation
Jacob Alexander <haata@kiibohd.com>
parents:
176
diff
changeset
|
8 * This file is distributed in the hope that it will be useful, |
50702debf278
Initial MatrixARM implementation
Jacob Alexander <haata@kiibohd.com>
parents:
176
diff
changeset
|
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
50702debf278
Initial MatrixARM implementation
Jacob Alexander <haata@kiibohd.com>
parents:
176
diff
changeset
|
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
50702debf278
Initial MatrixARM implementation
Jacob Alexander <haata@kiibohd.com>
parents:
176
diff
changeset
|
11 * GNU General Public License for more details. |
125
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
12 * |
186
50702debf278
Initial MatrixARM implementation
Jacob Alexander <haata@kiibohd.com>
parents:
176
diff
changeset
|
13 * You should have received a copy of the GNU General Public License |
50702debf278
Initial MatrixARM implementation
Jacob Alexander <haata@kiibohd.com>
parents:
176
diff
changeset
|
14 * along with this file. If not, see <http://www.gnu.org/licenses/>. |
125
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
15 */ |
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
16 |
341 | 17 #pragma once |
125
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
18 |
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
19 // ----- Includes ----- |
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
20 |
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
21 // Compiler Includes |
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
22 #include <stdint.h> |
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
23 |
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
24 |
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
25 |
191
3404be65670b
Adding generic layerToggle and USB Key Output capabilities.
Jacob Alexander <haata@kiibohd.com>
parents:
186
diff
changeset
|
26 // ----- Capabilities ----- |
3404be65670b
Adding generic layerToggle and USB Key Output capabilities.
Jacob Alexander <haata@kiibohd.com>
parents:
186
diff
changeset
|
27 |
199
559a467f6d57
Preparing for kll compiler usage
Jacob Alexander <haata@kiibohd.com>
parents:
191
diff
changeset
|
28 void Macro_layerState_capability( uint8_t state, uint8_t stateType, uint8_t *args ); |
559a467f6d57
Preparing for kll compiler usage
Jacob Alexander <haata@kiibohd.com>
parents:
191
diff
changeset
|
29 void Macro_layerLatch_capability( uint8_t state, uint8_t stateType, uint8_t *args ); |
559a467f6d57
Preparing for kll compiler usage
Jacob Alexander <haata@kiibohd.com>
parents:
191
diff
changeset
|
30 void Macro_layerLock_capability( uint8_t state, uint8_t stateType, uint8_t *args ); |
559a467f6d57
Preparing for kll compiler usage
Jacob Alexander <haata@kiibohd.com>
parents:
191
diff
changeset
|
31 void Macro_layerShift_capability( uint8_t state, uint8_t stateType, uint8_t *args ); |
191
3404be65670b
Adding generic layerToggle and USB Key Output capabilities.
Jacob Alexander <haata@kiibohd.com>
parents:
186
diff
changeset
|
32 |
3404be65670b
Adding generic layerToggle and USB Key Output capabilities.
Jacob Alexander <haata@kiibohd.com>
parents:
186
diff
changeset
|
33 |
3404be65670b
Adding generic layerToggle and USB Key Output capabilities.
Jacob Alexander <haata@kiibohd.com>
parents:
186
diff
changeset
|
34 |
125
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
35 // ----- Functions ----- |
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
36 |
307
ecd2ae35d25c
Initial commit for UARTConnect module
Jacob Alexander <haata@kiibohd.com>
parents:
199
diff
changeset
|
37 void Macro_analogState( uint8_t scanCode, uint8_t state ); |
176
d3ae6b409cfa
Initial work for partial layers and macros.
Jacob Alexander <haata@kiibohd.com>
parents:
166
diff
changeset
|
38 void Macro_keyState( uint8_t scanCode, uint8_t state ); |
d3ae6b409cfa
Initial work for partial layers and macros.
Jacob Alexander <haata@kiibohd.com>
parents:
166
diff
changeset
|
39 void Macro_ledState( uint8_t ledCode, uint8_t state ); |
361
7c6ac7b88cda
Working support for Interconnect
Jacob Alexander <haata@kiibohd.com>
parents:
341
diff
changeset
|
40 void Macro_interconnectAdd( void *trigger ); // triggers is of type TriggerGuide, void* for circular dependencies |
125
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
41 void Macro_process(); |
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
42 void Macro_setup(); |
8dab4014c398
Major code cleanup and preparation for PartialMap Macro Module
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
43 |