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_ |
Definition at line 102 of file ScannerSickS300.cpp.
enum TelegramParser::TELEGRAM_COMMON_HS [private] |
Definition at line 147 of file ScannerSickS300.cpp.
enum TelegramParser::TELEGRAM_COMMON_TYPES [private] |
Definition at line 148 of file ScannerSickS300.cpp.
enum TelegramParser::TELEGRAM_DIST_SECTOR [private] |
Definition at line 149 of file ScannerSickS300.cpp.
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.
TELEGRAM_COMMON TelegramParser::tc_ [private] |
Definition at line 243 of file ScannerSickS300.cpp.
TELEGRAM_DISTANCE TelegramParser::td_ [private] |
Definition at line 244 of file ScannerSickS300.cpp.