2008-10-25 23:21:51 +02:00
|
|
|
/**
|
|
|
|
* \file tools.h
|
2008-11-03 09:00:45 +01:00
|
|
|
* \brief Function headers and information that is needed in several places
|
2008-10-25 23:21:51 +02:00
|
|
|
* \author Ronald Schaten <ronald@schatenseite.de>
|
|
|
|
* \version $Id$
|
|
|
|
*
|
2008-11-03 09:00:45 +01:00
|
|
|
* License: GNU GPL v2 (see License.txt)
|
2008-10-25 23:21:51 +02:00
|
|
|
*/
|
|
|
|
|
2008-11-01 22:20:07 +01:00
|
|
|
#define LED_NUM 0x01 ///< num LED on a boot-protocol keyboard
|
|
|
|
#define LED_CAPS 0x02 ///< caps LED on a boot-protocol keyboard
|
|
|
|
#define LED_SCROLL 0x04 ///< scroll LED on a boot-protocol keyboard
|
|
|
|
#define LED_COMPOSE 0x08 ///< compose LED on a boot-protocol keyboard
|
|
|
|
#define LED_KANA 0x10 ///< kana LED on a boot-protocol keyboard
|
|
|
|
|
2009-02-14 22:11:43 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This structure can be used as a container for a single 'key'. It consists of
|
|
|
|
* the key-code and the modifier-code.
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
uint8_t mode;
|
|
|
|
uint8_t key;
|
|
|
|
} Key;
|
|
|
|
|
2008-10-25 23:21:51 +02:00
|
|
|
void sendString(char* string);
|
2009-02-14 22:11:43 +01:00
|
|
|
void sendKey(Key keytosend);
|
|
|
|
void usbSendReportBuffer(uint8_t* reportbuffer, uint8_t size);
|