Classes | Public Member Functions | Private Types | Static Private Member Functions | Private Attributes
TelegramParser Class Reference

List of all members.

Classes

union  TELEGRAM_COMMON
union  TELEGRAM_DISTANCE
union  TELEGRAM_S300_DIST_2B
union  TELEGRAM_TAIL

Public Member Functions

int getField () const
bool isDist () const
bool parseHeader (const unsigned char *buffer, const size_t max_size, const uint8_t DEVICE_ADDR)
void readDistRaw (const unsigned char *buffer, std::vector< int > &res) const

Private Types

enum  TELEGRAM_COMMON_HS { JUNK_SIZE = 4 }
enum  TELEGRAM_COMMON_TYPES { IO = 0xAAAA, DISTANCE = 0xBBBB, REFLEXION = 0xCCCC }
enum  TELEGRAM_DIST_SECTOR {
  _1 = 0x1111, _2 = 0x2222, _3 = 0x3333, _4 = 0x4444,
  _5 = 0x5555
}

Static Private Member Functions

static bool check (const TELEGRAM_COMMON &tc, const uint8_t DEVICE_ADDR)
static unsigned int createCRC (uint8_t *ptrData, int Size)
static void ntoh (TELEGRAM_COMMON &tc)
static void ntoh (TELEGRAM_DISTANCE &tc)
static void ntoh (TELEGRAM_TAIL &tc)
static void print (const TELEGRAM_COMMON &tc)
static void print (const TELEGRAM_DISTANCE &tc)
static void print (const TELEGRAM_TAIL &tc)

Private Attributes

TELEGRAM_COMMON tc_
TELEGRAM_DISTANCE td_

Detailed Description

Definition at line 102 of file ScannerSickS300.cpp.


Member Enumeration Documentation

Enumerator:
JUNK_SIZE 

Definition at line 147 of file ScannerSickS300.cpp.

Enumerator:
IO 
DISTANCE 
REFLEXION 

Definition at line 148 of file ScannerSickS300.cpp.

Enumerator:
_1 
_2 
_3 
_4 
_5 

Definition at line 149 of file ScannerSickS300.cpp.


Member Function Documentation

static bool TelegramParser::check ( const TELEGRAM_COMMON tc,
const uint8_t  DEVICE_ADDR 
) [inline, static, private]

Definition at line 229 of file ScannerSickS300.cpp.

static unsigned int TelegramParser::createCRC ( uint8_t *  ptrData,
int  Size 
) [inline, static, private]

Definition at line 214 of file ScannerSickS300.cpp.

int TelegramParser::getField ( ) const [inline]

Definition at line 284 of file ScannerSickS300.cpp.

bool TelegramParser::isDist ( ) const [inline]

Definition at line 283 of file ScannerSickS300.cpp.

static void TelegramParser::ntoh ( TELEGRAM_COMMON tc) [inline, static, private]

Definition at line 152 of file ScannerSickS300.cpp.

static void TelegramParser::ntoh ( TELEGRAM_DISTANCE tc) [inline, static, private]

Definition at line 163 of file ScannerSickS300.cpp.

static void TelegramParser::ntoh ( TELEGRAM_TAIL tc) [inline, static, private]

Definition at line 167 of file ScannerSickS300.cpp.

bool TelegramParser::parseHeader ( const unsigned char *  buffer,
const size_t  max_size,
const uint8_t  DEVICE_ADDR 
) [inline]

Definition at line 247 of file ScannerSickS300.cpp.

static void TelegramParser::print ( const TELEGRAM_COMMON tc) [inline, static, private]

Definition at line 172 of file ScannerSickS300.cpp.

static void TelegramParser::print ( const TELEGRAM_DISTANCE tc) [inline, static, private]

Definition at line 193 of file ScannerSickS300.cpp.

static void TelegramParser::print ( const TELEGRAM_TAIL tc) [inline, static, private]

Definition at line 207 of file ScannerSickS300.cpp.

void TelegramParser::readDistRaw ( const unsigned char *  buffer,
std::vector< int > &  res 
) const [inline]

Definition at line 295 of file ScannerSickS300.cpp.


Member Data Documentation

Definition at line 243 of file ScannerSickS300.cpp.

Definition at line 244 of file ScannerSickS300.cpp.


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


cob_sick_s300
Author(s): Florian Weisshardt
autogenerated on Sun Oct 5 2014 23:05:19