SDHLibrary-CPP 0.0.2.10SCHUNK GmbH & Co. KG
C++ access library for SCHUNK Dextrous Hand SDH

SDH::sSDHBinaryResponse Struct Reference

data structure with binary data for response from SDH to PC More...

List of all members.

Public Member Functions

tCRCValueCRC16 () const
 return a ptr to the CRC value in parameter_bytes, assuming that nb_data_bytes is correct (including the CRC bytes)
void CheckCRC16 () const throw (cSDHErrorCommunication*)
 check the CRC value in parameter_bytes. Throw an exception if check fails

Public Attributes

unsigned char cmd_code
unsigned char nb_data_bytes
unsigned char nb_valid_parameters
unsigned char status_code
union {
   float   parameter [eNUMBER_OF_ELEMENTS]
   unsigned char   parameter_bytes [sizeof(float)*eNUMBER_OF_ELEMENTS+sizeof(tCRCValue)]
}; 

Detailed Description

data structure with binary data for response from SDH to PC


Member Function Documentation

void sSDHBinaryResponse::CheckCRC16 ( ) const throw (cSDHErrorCommunication*)

check the CRC value in parameter_bytes. Throw an exception if check fails

tCRCValue* SDH::sSDHBinaryResponse::CRC16 ( ) const [inline]

return a ptr to the CRC value in parameter_bytes, assuming that nb_data_bytes is correct (including the CRC bytes)


Member Data Documentation

union { ... }
float SDH::sSDHBinaryResponse::parameter[eNUMBER_OF_ELEMENTS]
unsigned char SDH::sSDHBinaryResponse::parameter_bytes[sizeof(float)*eNUMBER_OF_ELEMENTS+sizeof(tCRCValue)]

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