MHVLib
20111011
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 (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 | ( | MHV_ALARM * | alarm | ) | [virtual] |
Periodically called to maintain USB comms
Reimplemented from MHV_VusbKeyboard.
Definition at line 41 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 63 of file MHV_VusbTypist.cpp.
void MHV_VusbTypist::typeChar | ( | char | c | ) | [protected] |
Type a single character on the keyboard
Definition at line 69 of file MHV_VusbTypist.cpp.
bool MHV_VusbTypist::_isTyping [protected] |
Definition at line 27 of file MHV_VusbTypist.h.