TactileSensor.h File Reference
+ Include dependency graph for TactileSensor.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FrameData
 
struct  PeriodicFrameData
 
struct  tac_matrix_info_t
 
struct  tac_system_information_t
 
class  TactileSensor
 

Macros

#define extract_short(array, index)
 
#define TAC_CHECK_RES(res, expected, resp)
 

Functions

std::ostream & operator<< (std::ostream &strm, const TactileSensor &a)
 

Macro Definition Documentation

◆ extract_short

#define extract_short ( array,
index )
Value:
((unsigned short)array[index] | ((unsigned short)array[index + 1] << 8))
uint8_t index

Definition at line 28 of file TactileSensor.h.

◆ TAC_CHECK_RES

#define TAC_CHECK_RES ( res,
expected,
resp )
Value:
{ \
if (res < expected) \
{ \
dbgPrint("Response length is too short, should be = %d (is %d)\n", expected, res); \
if (res > 0) \
free(resp); \
return -1; \
} \
status_t status = cmd_get_response_status(resp); \
if (status != E_SUCCESS) \
{ \
dbgPrint("Command not successful: %s\n", status_to_str(status)); \
free(resp); \
return -1; \
} \
}
const char * status_to_str(status_t status)
status_t
Definition Types.h:36
@ E_SUCCESS
Definition Types.h:37

Definition at line 30 of file TactileSensor.h.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & strm,
const TactileSensor & a )

Definition at line 130 of file TactileSensor.cpp.

+ Here is the call graph for this function: