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
 

Detailed Description

Definition at line 34 of file Response.h.

Constructor & Destructor Documentation

◆ Response()

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

Definition at line 37 of file Response.h.

Member Function Documentation

◆ ensureMinLength()

void ensureMinLength ( int  len)
inline

Definition at line 54 of file Response.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ensureSuccess()

void ensureSuccess ( )
inline

Definition at line 65 of file Response.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getByte()

unsigned char getByte ( int  index)
inline

Definition at line 49 of file Response.h.

+ Here is the caller graph for this function:

◆ getShort()

unsigned short getShort ( int  index)
inline

Definition at line 45 of file Response.h.

+ Here is the caller graph for this function:

◆ getUInt()

unsigned int getUInt ( int  index)
inline

Definition at line 40 of file Response.h.

◆ status_to_str()

static const char* status_to_str ( status_t  status)
inlinestatic

Definition at line 91 of file Response.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ cmdId

unsigned char cmdId

Definition at line 86 of file Response.h.

◆ data

std::vector<unsigned char> data

Definition at line 88 of file Response.h.

◆ len

unsigned int len

Definition at line 89 of file Response.h.

◆ res

int res

Definition at line 85 of file Response.h.

◆ status

status_t status

Definition at line 87 of file Response.h.


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