|
MHVLib
20111227
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 (const 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
To view the output of the console on your computer, use HID Listen, available from: http://www.pjrc.com/teensy/hid_listen.html
| txBuffer | a ringbuffer to store data in |
| rtc | an RTC to schedule jobs on |
Definition at line 148 of file MHV_VusbConsole.cpp.
| void MHV_VusbConsole::alarm | ( | const MHV_ALARM & | alarm | ) | [virtual] |
Periodically called to maintain USB comms
| alarm | the alarm that triggered the call |
Implements MHV_AlarmListener.
Definition at line 186 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 215 of file MHV_VusbConsole.cpp.
MHV_RTC& MHV_VusbConsole::_rtc [protected] |
Definition at line 27 of file MHV_VusbConsole.h.