Explorar o código

Adds STRINGI definition

Signed-off-by: Martin Melik Merkumians <melik-merkumians@acin.tuwien.ac.at>
Martin Melik Merkumians %!s(int64=6) %!d(string=hai) anos
pai
achega
08e853711d
Modificáronse 1 ficheiros con 16 adicións e 1 borrados
  1. 16 1
      source/src/cip/ciptypes.h

+ 16 - 1
source/src/cip/ciptypes.h

@@ -148,12 +148,27 @@ typedef struct {
   EipByte *string; /**< Pointer to the string data */
 } CipString;
 
+/** @brief CIP String with variable symbol size
+ *
+ */
 typedef struct {
-  EipUint16 size;
+  EipUint16 size; /**< Amount of bytes per symbol */
   EipUint16 length; /**< Length of the String (16 bit value) */
   EipByte *string; /**< Pointer to the string data */
 } CipStringN;
 
+/** @brief STRINGI definition
+ *
+ */
+typedef struct {
+  CipUsint language_char_1;
+  CipUsint language_char_2;
+  CipUsint language_char_3;
+  CipUsint char_string_struct;   /**< EPath Either 0xD0, 0xD5, 0xD9, or 0xDA */
+  CipUint character_set;   /**< Character set of the string */
+  CipOctet *string;   /**< Pointer to the string data */
+} CipStringI;
+
 /** @brief Struct for padded EPATHs
  *
  * Here the class code is referenced as class ID - see Vol. 1 C-1.4.2