|
void | addFrameToBuffer (UINT8 *sendBuffer, UINT8 *cmdBuffer, UINT16 *len) |
|
UINT16 | addINT32ToBuffer (UINT8 *buffer, INT32 value) |
|
UINT16 | addINT8ToBuffer (UINT8 *buffer, INT8 value) |
|
UINT16 | addStringToBuffer (UINT8 *buffer, const std::string &text) |
|
UINT16 | addUINT16ToBuffer (UINT8 *buffer, UINT16 value) |
|
UINT16 | addUINT32ToBuffer (UINT8 *buffer, UINT32 value) |
|
UINT16 | addUINT8ToBuffer (UINT8 *buffer, UINT8 value) |
|
std::string | convertRxBufferToString (UINT8 *buffer, UINT16 bufferLen) |
|
INT16 | decodeINT16 (std::string *rxData) |
|
INT16 | decodeINT16 (const std::string &rxData) |
|
INT32 | decodeINT32 (std::string *rxData) |
|
INT32 | decodeINT32 (const std::string &rxData) |
|
double | decodeReal (std::string *rxData) |
|
double | decodeReal (const std::string &rxData) |
| set of more efficient functions that do not copy strings (should be prefered in use together with the colaa::tokenizer) More...
|
|
std::string | decodeString (std::string *rxData, UINT16 len) |
|
UINT16 | decodeUINT16 (BYTE *buffer) |
|
UINT16 | decodeUINT16 (std::string *rxData) |
|
UINT16 | decodeUINT16 (const std::string &rxData) |
|
UINT32 | decodeUINT32 (std::string *rxData) |
|
UINT32 | decodeUINT32 (const std::string &rxData) |
|
UINT8 | decodeUINT8 (std::string *rxData) |
|
UINT8 | decodeUINT8 (const std::string &rxData) |
|
UINT32 | decodeXByte (std::string *rxData, UINT16 len) |
|
std::string | getNextStringToken (std::string *rxData) |
|
std::string | getNextStringToken (UINT8 *rxData) |
|
bool | GetNibble (unsigned char data, unsigned char &rNibble) |
|
UINT16 | getValueOfChar (UINT8 c) |
|
UINT8 | nibbleToAscii (UINT8 value) |
|
Parser functions for a partly implementation of the CoLa-A protocol, needed for communication with SICK sensors.
std::string colaa::decodeString |
( |
std::string * |
rxData, |
|
|
UINT16 |
len |
|
) |
| |
Lese einen String aus dem Empfangspuffer. Der Empfangspuffer wird anschliessend um die Stringlaenge + 1 Zeichen (Trenn-Leerzeichen) gekuerzt.
Ist der Parameter len = 0 (oder fehlt ganz), dann wird der naechste verfuegbare String ausgelesen. Ist len > 0, dann werden genau len Zeichen gelesen.
Definition at line 603 of file colaa.cpp.