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

◆ CheckCRC16()

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.

◆ CRC16()

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

◆ @7

union { ... }

◆ cmd_code

unsigned char sSDHBinaryResponse::cmd_code

Definition at line 106 of file sdhserial.cpp.

◆ nb_data_bytes

unsigned char sSDHBinaryResponse::nb_data_bytes

Definition at line 107 of file sdhserial.cpp.

◆ nb_valid_parameters

unsigned char sSDHBinaryResponse::nb_valid_parameters

Definition at line 108 of file sdhserial.cpp.

◆ parameter

float sSDHBinaryResponse::parameter[eNUMBER_OF_ELEMENTS]

Definition at line 111 of file sdhserial.cpp.

◆ parameter_bytes

unsigned char sSDHBinaryResponse::parameter_bytes[sizeof(float) *eNUMBER_OF_ELEMENTS+sizeof(tCRCValue)]

Definition at line 112 of file sdhserial.cpp.

◆ status_code

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 Mon Feb 28 2022 23:41:52