MHVLib
20111011
An efficiency oriented runtime library for AVR microcontrollers
|
#include <MHV_Device_TX.h>
Public Member Functions | |
bool | canWrite () |
bool | write (const char *buffer) |
bool | write (const char *buffer, uint16_t length) |
bool | write (const char *buffer, void(*completeFunction)(const char *)) |
bool | write (const char *buffer, uint16_t length, void(*completeFunction)(const char *)) |
bool | write_P (PGM_P buffer) |
bool | write_P (PGM_P buffer, uint16_t length) |
Protected Member Functions | |
MHV_Device_TX (MHV_RingBuffer *txPointers) | |
virtual void | runTxBuffers ()=0 |
bool | moreTX () |
int | nextCharacter () |
Protected Attributes | |
MHV_TX_BUFFER | _currentTx |
MHV_RingBuffer * | _txPointers |
const char * | _tx |
Definition at line 54 of file MHV_Device_TX.h.
MHV_Device_TX::MHV_Device_TX | ( | MHV_RingBuffer * | txPointers | ) | [protected] |
Constructor
txPointers | A ringbuffer to store tx pointers in |
Definition at line 41 of file MHV_Device_TX.cpp.
bool MHV_Device_TX::canWrite | ( | ) |
Definition at line 73 of file MHV_Device_TX.cpp.
bool MHV_Device_TX::moreTX | ( | ) | [protected] |
Called when a buffer has been processed
Definition at line 55 of file MHV_Device_TX.cpp.
int MHV_Device_TX::nextCharacter | ( | ) | [protected] |
Called by children to get a character to transmit
Definition at line 81 of file MHV_Device_TX.cpp.
virtual void MHV_Device_TX::runTxBuffers | ( | ) | [protected, pure virtual] |
Implemented in MHV_HardwareSerial, MHV_Display_Character, MHV_Display_Monochrome, and MHV_VusbTypist.
bool MHV_Device_TX::write | ( | const char * | buffer | ) |
Write a string asynchronously
buffer | the string |
Definition at line 142 of file MHV_Device_TX.cpp.
bool MHV_Device_TX::write | ( | const char * | buffer, |
uint16_t | length | ||
) |
Write a buffer asynchronously
buffer | the buffer |
length | the length of the buffer |
Definition at line 225 of file MHV_Device_TX.cpp.
bool MHV_Device_TX::write | ( | const char * | buffer, |
void(*)(const char *) | completeFunction | ||
) |
Write a string asynchronously
buffer | the string |
completeFunction | a function to call when the string has been written (the string is passed as a parameter) |
Definition at line 169 of file MHV_Device_TX.cpp.
bool MHV_Device_TX::write | ( | const char * | buffer, |
uint16_t | length, | ||
void(*)(const char *) | completeFunction | ||
) |
Write a buffer asynchronously
buffer | the buffer |
length | the length of the buffer |
completeFunction | a function to call when the string has been written (the string is passed as a parameter) |
Definition at line 254 of file MHV_Device_TX.cpp.
bool MHV_Device_TX::write_P | ( | PGM_P | buffer | ) |
Write a progmem string asynchronously
buffer | the progmem string |
Definition at line 116 of file MHV_Device_TX.cpp.
bool MHV_Device_TX::write_P | ( | PGM_P | buffer, |
uint16_t | length | ||
) |
Write a buffer asynchronously
buffer | the buffer |
length | the length of the buffer |
Definition at line 197 of file MHV_Device_TX.cpp.
MHV_TX_BUFFER MHV_Device_TX::_currentTx [protected] |
Definition at line 56 of file MHV_Device_TX.h.
const char* MHV_Device_TX::_tx [protected] |
Definition at line 58 of file MHV_Device_TX.h.
MHV_RingBuffer* MHV_Device_TX::_txPointers [protected] |
Definition at line 57 of file MHV_Device_TX.h.