Response Struct Reference

#include <RobotAPI/drivers/WeissHapticSensor/Response.h>

Public Member Functions

void ensureMinLength (int len)
 
void ensureSuccess ()
 
unsigned char getByte (int index)
 
unsigned short getShort (int index)
 
unsigned int getUInt (int index)
 
 Response (int res, unsigned char cmdId, status_t status, const std::vector< unsigned char > &data, unsigned int len)
 

Static Public Member Functions

static const char * status_to_str (status_t status)
 

Public Attributes

unsigned char cmdId
 
std::vector< unsigned char > data
 
unsigned int len
 
int res
 
status_t status
 

Constructor & Destructor Documentation

◆ Response()

Response ( int res,
unsigned char cmdId,
status_t status,
const std::vector< unsigned char > & data,
unsigned int len )
inline

Member Function Documentation

◆ ensureMinLength()

void ensureMinLength ( int len)
inline

◆ ensureSuccess()

void ensureSuccess ( )
inline

◆ getByte()

unsigned char getByte ( int index)
inline

◆ getShort()

unsigned short getShort ( int index)
inline

◆ getUInt()

unsigned int getUInt ( int index)
inline

◆ status_to_str()

static const char * status_to_str ( status_t status)
inlinestatic

Member Data Documentation

◆ cmdId

unsigned char cmdId

◆ data

std::vector<unsigned char> data

◆ len

unsigned int len

◆ res

int res

◆ status

status_t status

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