Linking Generated Code with External Data Types : External Data Types

External Data Types

Micro includes a design attributes file for User-defined Data Types (UDTs), which is named UserDefinedType.dat. A UDT that has its Data Type attribute defined as CK_itsDataType generates a typedef statement in the code, which is then used to define variables of that type.

Exceptions:

Singleton-Record and Singleton-Union

For these types, the name of the UDT (the value of the CK_itsDataType attribute) is used to define the variable.

To use an external data type in the model, set the Data Type field in the Design Attribute of a User-Defined-Type (UDT) to be a value other than “Default.” To have design attributes for a UDT in an OSI, complete the following steps:

1.
2.
3.

The design attributes for the UDT will be available from the Data Dictionary.