An enumeration is a user-defined data type composed of a list of comma-separated members (enumeration values) for declaring user-defined variables.
You declare an enumeration in a DUT object, which you have already created in the project by clicking Add Object.
In the application code, you can use the enumeration members like constants whose identifier <enumeration name>.<member name> is recognized globally in the project.
-
Declaration
-
Enumeration with explicit basic data type
-
Strict programming rules
-
Declaration and initialization of enumeration variables
-
Unique access to enumeration components