User Types editor

It allows you to specify user-defined types used in generated code.

The list of user types that you can create:

To open user type editor, right-click Types Definition and select Add Type as shown in the above figure. The following figure shows Types editor.

Figure 2. Types



This table explains the fields of User Type editor.

Table 1. User Type editor
Field Description
This defines Lists user-defined types
Type Name Type name as it will be stored in the types list (for Parameter Type feature in Methods page and Events page, and for parameters type and return types of functions)
Is type Data Type
Hint Description of the selected type. It is used in help files
Generate to driver If the declaration is generated in the drivers
Generate to doc It will generate the User Type information into the HTML documentation
Unique name If set to yes, the type will have the unique name, which consists of the name of the component and the Type Name. Two instances of one type of the component will have two different declarations of this type. For example, the component name is MyComponent. This component has one user type MyType and has selected the Unique name option. There are two instances in Processor Expert MB1 and MB2. After code generation, there will be two declared user types:
  • MB1_MyType
  • MB2_MyType

The following describes the settings of User Type: