Constants editor

It allows you to define a constant of the component that will be available to the user.

The left panel displays a list of the constants and the right panel displays a value and other properties of the selected constant. Constants can be added or removed by using the Constant context menu as shown in the figure below.

Figure 1. Constant screen



The figure below shows Constant Settings screen.

Figure 2. Constant editor



This table describes the fields of Constant Settings.

Table 1. Constant settings
Field Description
Constant Name Specifies an indentifier that will be used in the generated code
Constant Value Value that will be assigned to the constant
Constant Description Text used for the documentation
Of type Data type of the value
Generate to driver If the constant will be placed in the generated into the driver automatically
Generate to doc Enables generation of the constant into the documentation
Unique name Enables generation of the constant with unique name. If there are more instances of one component, each will contain a different constant name (usually there will be a prefix of the component name)