MHVLib  20111011
An efficiency oriented runtime library for AVR microcontrollers
MHV_VusbTypist Class Reference

#include <MHV_VusbTypist.h>

Inheritance diagram for MHV_VusbTypist:
MHV_VusbKeyboard MHV_Device_TX MHV_AlarmListener

List of all members.

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

Detailed Description

Definition at line 25 of file MHV_VusbTypist.h.


Constructor & Destructor Documentation

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

Parameters:
txBuffera ringbuffer to store data in
rtcan RTC to trigger events from

Definition at line 33 of file MHV_VusbTypist.cpp.


Member Function Documentation

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.


Member Data Documentation

bool MHV_VusbTypist::_isTyping [protected]

Definition at line 27 of file MHV_VusbTypist.h.


The documentation for this class was generated from the following files: