Public Member Functions | Public Attributes | List of all members
sSDHBinaryResponse Struct Reference

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...
 
tCRCValueCRC16 () 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
 

Detailed Description

data structure with binary data for response from SDH to PC

Definition at line 100 of file sdhserial.cpp.

Member Function Documentation

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.

tCRCValue* 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)

Definition at line 116 of file sdhserial.cpp.

Member Data Documentation

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.


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


sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Sun Aug 18 2019 03:42:21