1 /* Copyright (C) 2013 by Jacob Alexander
3 * dfj, put whatever license here you want
4 * This file will probably be removed though.
10 // ----- Includes -----
19 // ----- Defines -----
21 #define KEYBOARD_KEYS 0xFF // TODO Determine max number of keys
22 #define KEYBOARD_BUFFER 24 // Max number of key signals to buffer
23 // This limits the NKRO-ability, so at 24, the keyboard is 24KRO
24 // The buffer is really only needed for converter modules
25 // An alternative macro module could be written for matrix modules and still work well
29 // ----- Variables -----
31 extern volatile uint8_t KeyIndex_Buffer[KEYBOARD_BUFFER];
32 extern volatile uint8_t KeyIndex_BufferUsed;
36 // ----- Functions -----
38 // Functions used by main.c
39 void scan_setup( void );
40 uint8_t scan_loop( void );
43 // Functions available to macro.c
44 uint8_t scan_sendData( uint8_t dataPayload );
46 void scan_finishedWithBuffer( uint8_t sentKeys );
47 void scan_finishedWithUSBBuffer( uint8_t sentKeys );
48 void scan_lockKeyboard( void );
49 void scan_unlockKeyboard( void );
50 void scan_resetKeyboard( void );
53 #endif // __SCAN_LOOP_H