]> git.donarmstrong.com Git - kiibohd-controller.git/blob - Macro/PartialMap/macro.h
1d4717f24b23fde69adb464597f35b6f7bfef6dd
[kiibohd-controller.git] / Macro / PartialMap / macro.h
1 /* Copyright (C) 2014 by Jacob Alexander
2  *
3  * This file is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * This file is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this file.  If not, see <http://www.gnu.org/licenses/>.
15  */
16
17 #ifndef __macro_h
18 #define __macro_h
19
20 // ----- Includes -----
21
22 // Compiler Includes
23 #include <stdint.h>
24
25
26
27 // ----- Capabilities -----
28
29 void Macro_layerState_capability( uint8_t state, uint8_t stateType, uint8_t *args );
30 void Macro_layerLatch_capability( uint8_t state, uint8_t stateType, uint8_t *args );
31 void Macro_layerLock_capability( uint8_t state, uint8_t stateType, uint8_t *args );
32 void Macro_layerShift_capability( uint8_t state, uint8_t stateType, uint8_t *args );
33
34
35
36 // ----- Functions -----
37
38 void Macro_analogState( uint8_t scanCode, uint8_t state );
39 void Macro_keyState( uint8_t scanCode, uint8_t state );
40 void Macro_ledState( uint8_t ledCode, uint8_t state );
41 void Macro_triggerState( void *triggers, uint8_t num ); // triggers is of type TriggerGuide, void* for circular dependencies
42 void Macro_process();
43 void Macro_setup();
44
45 #endif
46