Details

    • 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

        Attachments

        1. uip_modified.h
          1 kB
          Frank Fährmann
        2. uip.h
          1 kB
          Frank Fährmann

          Expenses

            Activity

              Status Description

                People

                • Reporter:
                  FFaehrmann Frank Fährmann
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: