Public Member Functions | List of all members
xbot::PacketFinder Class Reference

#include <xbot.hpp>

Inheritance diagram for xbot::PacketFinder:
Inheritance graph
[legend]

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
 

Detailed Description

Definition at line 71 of file xbot.hpp.

Constructor & Destructor Documentation

virtual xbot::PacketFinder::~PacketFinder ( )
inlinevirtual

Definition at line 73 of file xbot.hpp.

Member Function Documentation

bool xbot::PacketFinder::checkSum ( )
virtual

Reimplemented from xbot::PacketFinderBase.

Definition at line 36 of file xbot.cpp.


The documentation for this class was generated from the following files:


xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:38