Coder typedefs compatibility
Option to force generation of rtwtypes.h
file
Since R2023a
Model Configuration Pane: Code Generation / Data Type Replacement
Description
If you set Data type replacement to Use C data types with
fixed-width integers
, the generated code uses data types from the C99
language standard and does not require rtwtypes.h
definitions. By
default, the code generator does not create the rtwtypes.h
file. The
rtwtypes.h
file is generated in some cases because it might be
needed by static source code located under matlabroot
. If you use
custom code that requires Simulink®
Coder™ data type definitions, select the Coder typedefs
compatibility check box to force the generation of the
rtwtypes.h
file.
Dependencies
To enable this parameter, set Data type replacement to Use C data types with fixed-width integers
.
Settings
off
(default) | on
on
Generate the
rtwtypes.h
file.off
Do not generate the
rtwtypes.h
file.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: CoderTypedefsCompatibility |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2023a