data structure with binary data for response from SDH to PC More...
Public Member Functions | |
| void | CheckCRC16 () const |
| check the CRC value in parameter_bytes. Throw an exception if check fails More... | |
| tCRCValue * | CRC16 () const |
| return a ptr to the CRC value in parameter_bytes, assuming that nb_data_bytes is correct (including the CRC bytes) More... | |
Public Attributes | |
| union { | |
| float parameter [eNUMBER_OF_ELEMENTS] | |
| unsigned char parameter_bytes [sizeof(float)*eNUMBER_OF_ELEMENTS+sizeof(tCRCValue)] | |
| }; | |
| unsigned char | cmd_code |
| unsigned char | nb_data_bytes |
| unsigned char | nb_valid_parameters |
| unsigned char | status_code |
data structure with binary data for response from SDH to PC
Definition at line 100 of file sdhserial.cpp.
| void sSDHBinaryResponse::CheckCRC16 | ( | ) | const |
check the CRC value in parameter_bytes. Throw an exception if check fails
Definition at line 179 of file sdhserial.cpp.
|
inline |
return a ptr to the CRC value in parameter_bytes, assuming that nb_data_bytes is correct (including the CRC bytes)
Definition at line 116 of file sdhserial.cpp.
| union { ... } |
| unsigned char sSDHBinaryResponse::cmd_code |
Definition at line 106 of file sdhserial.cpp.
| unsigned char sSDHBinaryResponse::nb_data_bytes |
Definition at line 107 of file sdhserial.cpp.
| unsigned char sSDHBinaryResponse::nb_valid_parameters |
Definition at line 108 of file sdhserial.cpp.
| float sSDHBinaryResponse::parameter[eNUMBER_OF_ELEMENTS] |
Definition at line 111 of file sdhserial.cpp.
| unsigned char sSDHBinaryResponse::parameter_bytes[sizeof(float)*eNUMBER_OF_ELEMENTS+sizeof(tCRCValue)] |
Definition at line 112 of file sdhserial.cpp.
| unsigned char sSDHBinaryResponse::status_code |
Definition at line 109 of file sdhserial.cpp.