Classes | Namespaces | Functions | Variables
RmpHelper.h File Reference
#include <assert.h>
#include <RmpType.h>
Include dependency graph for RmpHelper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  segway::CrcTable

Namespaces

namespace  segway

Functions

void segway::AppendCrc16 (Bytes &rBytes)
uint16_t segway::ConvertBytesToUint16 (const uint8_t *pByte, size_t size)
uint32_t segway::ConvertBytesToUint32 (const uint8_t *pByte, size_t size)
void segway::ConvertCommandToBytes (uint16_t commandId, uint32_t value1, uint32_t value2, Bytes &rBytes)
uint32_t segway::ConvertFloatToUint32 (float data)
void segway::ConvertUint16ToBytes (const uint16_t &rData, uint8_t *pByte, size_t size)
void segway::ConvertUint32ToBytes (const uint32_t &rData, uint8_t *pByte, size_t size)
float segway::ConvertUint32ToFloat (uint32_t data)
uint16_t segway::GetCrc (Bytes &rBytes, size_t size)
bool segway::IsCrcValid (Bytes &rBytes, size_t size)

Variables

static const uint16_t segway::CRC_ADJUSTMENT = 0xA001
static const size_t segway::CRC_FEEDBACK_SIZE = sizeof(uint32_t)
static const size_t segway::CRC_SIZE = sizeof(uint16_t)
static const size_t segway::CRC_TABLE_SIZE = 256
static const size_t segway::RMP_CMD_BODY_SIZE = sizeof(uint16_t) + 2 * sizeof(uint32_t)
static const size_t segway::RMP_CMD_HEADER_IDX = 0
static const size_t segway::RMP_CMD_VAL1_IDX = sizeof(uint16_t)
static const size_t segway::RMP_CMD_VAL2_IDX = sizeof(uint16_t) + sizeof(uint32_t)


rmp_base
Author(s):
autogenerated on Wed Aug 26 2015 16:24:40