Details
-
Type:
Requirement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: V1.0.72.40519
-
Fix Version/s: V1.0.73.40854, V1.1.44.45036
-
Component/s: APP
-
Labels:
-
Requirements Revision:1
-
SOW Revision:1
-
Account:IOT Configurator 1 (operativ) (IOTCONPROD)
Description
To use the header file it is necessary to pack the structures.
So that the user does not have to enter this definition into the file himself or forgets it, the pragma statement is to be entered into the export file when exporting by the IOT configurator.
Example:
....
#ifdef __HIL_PRAGMA_PACK_ENABLE
#pragma __HIL_PRAGMA_PACK_1(OBJECT_0X40000000_T)
#endif
#define OBJECT_0X40000000_ID 0x40000000
/**
* \brief Object 0x40000000
* \struct OBJECT_0X40000000_T
*/
typedef __HIL_PACKED_PRE struct __HIL_PACKED_POST OBJECT_0X40000000_Ttag
{
uint8_t varElement0; /*!< element0[uint8] */
uint8_t varElement1; /*!< element1[uint8] */
uint8_t varElement2; /*!< element2[uint8] */
uint8_t varElement3; /*!< element3[uint8] */
uint8_t varElement4; /*!< element4[uint8] */
} OBJECT_0X40000000_T;
#ifdef __HIL_PRAGMA_PACK_ENABLE
#pragma __HIL_PRAGMA_UNPACK_1(OBJECT_0X40000000_T)
#endif