Main Content

Replacement Name: uint

Name for uint data type in generated code

Model Configuration Pane: Code Generation / Data Type Replacement

Description

The Replacement Name: uint parameter specifies the name to use for the built-in data type uint in the generated code.

Dependencies

To enable this parameter, select the Specify custom data type names parameter.

Settings

no default

If a value is not specified, the code generator uses the Code Generation Name:

  • uint_T if Data type replacement is Use coder typedefs.

  • unsigned int32 if Data type replacement is Use C data types with fixed-width integers.

You can specify a replacement name by using one of the following:

  • A Simulink.AliasType object.

  • The Simulink Name built-in data type name.

To use a Simulink.AliasType object:

  • Set the BaseType object property to uintn.

  • Set the HeaderFile object property to the name of the header file that provides the type definition.

  • In the Replacement Name column, specify the object name.

To use the Simulink Name, in the Replacement Name column, specify uintn.

n is the number of bits set for Configuration Parameters > Hardware Implementation > Number of bits: int.

An error occurs, if:

  • A replacement data type specification is inconsistent with the Simulink Name data type.

  • The Simulink.AliasType object has the Data scope parameter set to Exported.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityA valid character vector
EfficiencyNo impact
Safety precautionNo recommendation

Programmatic Use

Parameter: ReplacementTypes, replacementName.uint
Type: character vector
Value: The Simulink Name or the name of a Simulink.NumericType, where the object exists in the base workspace.
Default: ''

Version History

Introduced in R2007a