|
MHVLib
20111109
An efficiency oriented runtime library for AVR microcontrollers
|
#include <MHV_VusbKeyboard.h>
Public Member Functions | |
| MHV_VusbKeyboard (MHV_RTC *rtc) | |
| void | keyStroke (MHV_VUSB_KEYBOARD_KEY key) |
| void | keyStroke (MHV_VUSB_KEYBOARD_KEY key, uint8_t modifiers) |
| void | keyDown (MHV_VUSB_KEYBOARD_KEY key, uint8_t modifiers) |
| void | keysUp (uint8_t modifiers) |
| void | keysUp () |
| void | alarm (MHV_ALARM *alarm) |
Protected Attributes | |
| MHV_RTC * | _rtc |
Definition at line 178 of file MHV_VusbKeyboard.h.
| MHV_VusbKeyboard::MHV_VusbKeyboard | ( | MHV_RTC * | rtc | ) |
Emulate a USB keyboard using V-USB Uses pins D4/D2 for ATmega (can be changed in VUSBKeyboard/usbconfig.h) Uses pins B0/B2 for ATtiny25/45/85
| rtc | an RTC to schedule jobs on |
Definition at line 158 of file MHV_VusbKeyboard.cpp.
| void MHV_VusbKeyboard::alarm | ( | MHV_ALARM * | alarm | ) | [virtual] |
Periodically called to maintain USB comms
Implements MHV_AlarmListener.
Reimplemented in MHV_VusbTypist.
Definition at line 250 of file MHV_VusbKeyboard.cpp.
| void MHV_VusbKeyboard::keyDown | ( | MHV_VUSB_KEYBOARD_KEY | key, |
| uint8_t | modifiers | ||
| ) |
Press a key
| key | the key to send |
| modifiers | the key modifiers |
Definition at line 219 of file MHV_VusbKeyboard.cpp.
| void MHV_VusbKeyboard::keyStroke | ( | MHV_VUSB_KEYBOARD_KEY | key | ) |
Send a single keystroke
| key | the key to send |
Definition at line 210 of file MHV_VusbKeyboard.cpp.
| void MHV_VusbKeyboard::keyStroke | ( | MHV_VUSB_KEYBOARD_KEY | key, |
| uint8_t | modifiers | ||
| ) |
Send a single keystroke
| key | the key to send |
| modifiers | the key modifiers |
Definition at line 199 of file MHV_VusbKeyboard.cpp.
| void MHV_VusbKeyboard::keysUp | ( | uint8_t | modifiers | ) |
Release all keys
| modifiers | the key modifiers still held |
Definition at line 232 of file MHV_VusbKeyboard.cpp.
| void MHV_VusbKeyboard::keysUp | ( | ) |
Release all keys
Definition at line 243 of file MHV_VusbKeyboard.cpp.
MHV_RTC* MHV_VusbKeyboard::_rtc [protected] |
Definition at line 180 of file MHV_VusbKeyboard.h.