|
MHVLib
20111109
An efficiency oriented runtime library for AVR microcontrollers
|
#include <MHV_VusbConsole.h>
Public Member Functions | |
| MHV_VusbConsole (MHV_RingBuffer *txBuffer, MHV_RTC *rtc) | |
| void | alarm (MHV_ALARM *alarm) |
| void | runTxBuffers () |
Protected Attributes | |
| MHV_RTC * | _rtc |
Definition at line 25 of file MHV_VusbConsole.h.
| MHV_VusbConsole::MHV_VusbConsole | ( | MHV_RingBuffer * | txBuffer, |
| MHV_RTC * | rtc | ||
| ) |
Provide a V-USB console using V-USB Uses pins D4/D2 for ATmega (can be changed in VUSBKeyboard/usbconfig.h) Uses pins B0/B2 for ATtiny25/45/85
| txBuffer | a ringbuffer to store data in |
| rtc | an RTC to schedule jobs on |
Definition at line 144 of file MHV_VusbConsole.cpp.
| void MHV_VusbConsole::alarm | ( | MHV_ALARM * | alarm | ) | [virtual] |
Periodically called to maintain USB comms
| alarm | the alarm that triggered the call |
Implements MHV_AlarmListener.
Definition at line 183 of file MHV_VusbConsole.cpp.
| void MHV_VusbConsole::runTxBuffers | ( | ) | [virtual] |
Start transmitting a new string (does nothing, alarm will immediately pick up the next character)
Implements MHV_Device_TX.
Definition at line 212 of file MHV_VusbConsole.cpp.
MHV_RTC* MHV_VusbConsole::_rtc [protected] |
Definition at line 27 of file MHV_VusbConsole.h.