#include <xbot.hpp>
Public Member Functions | |
bool | checkSum () |
virtual | ~PacketFinder () |
Public Member Functions inherited from xbot::PacketFinderBase | |
void | clear () |
void | configure (const std::string &sigslots_namespace, const BufferType &putStx, const BufferType &putEtx, unsigned int sizeLengthField, unsigned int sizeMaxPayload, unsigned int sizeChecksumField, bool variableSizePayload) |
void | enableVerbose () |
void | getBuffer (BufferType &bufferRef) |
void | getPayload (BufferType &bufferRef) |
unsigned int | numberOfDataToRead () |
PacketFinderBase () | |
virtual bool | update (const unsigned char *incoming, unsigned int numberOfIncoming) |
virtual | ~PacketFinderBase () |
Additional Inherited Members | |
Public Types inherited from xbot::PacketFinderBase | |
typedef ecl::PushAndPop< unsigned char > | BufferType |
enum | packetFinderState { clearBuffer = 0, waitingForStx, waitingForPayloadSize, waitingForPayloadToEtx, waitingForEtx } |
Public Attributes inherited from xbot::PacketFinderBase | |
enum packetFinderState | state |
Protected Member Functions inherited from xbot::PacketFinderBase | |
bool | waitForEtx (const unsigned char incoming, bool &foundPacket) |
bool | waitForPayloadAndEtx (const unsigned char *incoming, unsigned int numberOfIncoming, bool &foundPacket) |
bool | waitForPayloadSize (const unsigned char *incoming, unsigned int numberOfIncoming) |
bool | WaitForStx (const unsigned char datum) |
Protected Attributes inherited from xbot::PacketFinderBase | |
BufferType | buffer |
BufferType | ETX |
ecl::Signal< const std::string & > | sig_error |
ecl::Signal< const std::string & > | sig_warn |
unsigned int | size_checksum_field |
unsigned int | size_etx |
unsigned int | size_length_field |
unsigned int | size_max_payload |
unsigned int | size_payload |
unsigned int | size_stx |
BufferType | STX |
bool | variable_size_payload |
bool | verbose |
|
virtual |
Reimplemented from xbot::PacketFinderBase.