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 36 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 39 of file Response.h.

Member Function Documentation

◆ ensureMinLength()

void ensureMinLength ( int  len)
inline

Definition at line 68 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 82 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 62 of file Response.h.

+ Here is the caller graph for this function:

◆ getShort()

unsigned short getShort ( int  index)
inline

Definition at line 56 of file Response.h.

+ Here is the caller graph for this function:

◆ getUInt()

unsigned int getUInt ( int  index)
inline

Definition at line 49 of file Response.h.

◆ status_to_str()

static const char* status_to_str ( status_t  status)
inlinestatic

Definition at line 111 of file Response.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ cmdId

unsigned char cmdId

Definition at line 105 of file Response.h.

◆ data

std::vector<unsigned char> data

Definition at line 107 of file Response.h.

◆ len

unsigned int len

Definition at line 108 of file Response.h.

◆ res

int res

Definition at line 104 of file Response.h.

◆ status

status_t status

Definition at line 106 of file Response.h.


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