|
MHVLib
20111227
An efficiency oriented runtime library for AVR microcontrollers
|
#include <MHV_VusbTypist.h>
Public Member Functions | |
| MHV_VusbTypist (MHV_RingBuffer &txBuffer, MHV_RTC &rtc) | |
| void | alarm (const MHV_ALARM &alarm) |
Protected Member Functions | |
| void | runTxBuffers () |
| void | typeChar (char c) |
Protected Attributes | |
| bool | _isTyping |
Definition at line 25 of file MHV_VusbTypist.h.
| MHV_VusbTypist::MHV_VusbTypist | ( | MHV_RingBuffer & | txBuffer, |
| MHV_RTC & | rtc | ||
| ) |
Emulate a USB keyboard using V-USB This class can also be passed strings, which it will type out on the keyboard
| txBuffer | a ringbuffer to store data in |
| rtc | an RTC to trigger events from |
Definition at line 33 of file MHV_VusbTypist.cpp.
| void MHV_VusbTypist::alarm | ( | const MHV_ALARM & | alarm | ) | [virtual] |
Periodically called to maintain USB comms
| alarm | the alarm that triggered the call |
Reimplemented from MHV_VusbKeyboard.
Definition at line 42 of file MHV_VusbTypist.cpp.
| void MHV_VusbTypist::runTxBuffers | ( | ) | [protected, virtual] |
Start transmitting a new string (does nothing, alarm will immediately pick up the next character)
Implements MHV_Device_TX.
Definition at line 64 of file MHV_VusbTypist.cpp.
| void MHV_VusbTypist::typeChar | ( | char | c | ) | [protected] |
Type a single character on the keyboard
Definition at line 70 of file MHV_VusbTypist.cpp.
bool MHV_VusbTypist::_isTyping [protected] |
Definition at line 27 of file MHV_VusbTypist.h.