Define the member of a typedef; typically a struct, class member, or enumeration.
| Parent Element | Element Chain | ||
|---|---|---|---|
| typedef | /component_viewer/typedefs/typedef | ||
| Attributes | Description | Type | Use |
| name | Name of member variable. Is shown as text in the Component Viewer. | xs:string | required |
| type | Scalar Data Types or pointer to Complex Data Types to access chained lists. | xs:string | required |
| offset | Offset to base address in [Bytes]. Use the uVision debug dialog Symbols to find the offset. You can use Expressions. For imported members, the offset is recalculated. Refer to the description of attribute import in typedef. | xs:string | required |
| size | Size in target memory in [Bytes]. | xs:string | optional |
| info | Descriptive text with additional information (comment). | xs:string | optional |
| Child Element | Description | Type | Occurrence |
| enum | Name of an enumeration that is displayed as text instead of a value. | EnumType | 0..* |
Example:
Defines an enumeration name that is displayed as text instead of a value. A symbolic enumerator name represents a constant value that can be referenced using the syntax typedef_name:member_name:enum_name.
| Parent Element | Element Chain | ||
|---|---|---|---|
| member | /component_viewer/typedefs/typedef/member | ||
| Attributes | Description | Type | Use |
| name | Name of enumeration. Is shown as text in the Component Viewer. | xs:string | required |
| value | Expression that specifies the enum value. | xs:string | optional |
| info | Descriptive text with additional information (comment). | xs:string | optional |
Example: