data structure with binary data for response from SDH to PC More...
Public Member Functions | |
| tCRCValue * | CRC16 () 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)] | |
| }; | |
data structure with binary data for response from SDH to PC
| 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)
| union { ... } |
| unsigned char SDH::sSDHBinaryResponse::cmd_code |
| unsigned char SDH::sSDHBinaryResponse::nb_data_bytes |
| unsigned char SDH::sSDHBinaryResponse::nb_valid_parameters |
| float SDH::sSDHBinaryResponse::parameter[eNUMBER_OF_ELEMENTS] |
| unsigned char SDH::sSDHBinaryResponse::parameter_bytes[sizeof(float)*eNUMBER_OF_ELEMENTS+sizeof(tCRCValue)] |
| unsigned char SDH::sSDHBinaryResponse::status_code |