Main Content

External I/O access

Description

Specify whether to generate access methods for root-level I/O signals for the C++ model class.

Note

This parameter affects generated code only if you are using the default (void-void style) step method for your model class. The parameter has no effect if you are explicitly passing arguments for root-level I/O signals using an I/O arguments style step method. For more information, see Passing Default Arguments and Passing I/O Arguments.

Category: Code Generation > Interface

Settings

Default: Inlined structure-based method

None

Does not generate access methods for root-level I/O signals for the C++ model class.

Method

Generates noninlined access methods for root-level I/O signals for the C++ model class. The software generates set and get methods for each signal.

Inlined method

Generates inlined access methods for root-level I/O signals for the C++ model class. The software generates set and get methods for each signal.

Structure-based method

Generates noninlined, structure-based access methods for root-level I/O signals for the C++ model class. The software generates one set method, taking the address of the external input structure as an argument, and for external outputs (if applicable), one get method, returning the reference to the external output structure.

Inlined structure-based method

Generates inlined, structure-based access methods for root-level I/O signals for the C++ model class. The software generates one set method, taking the address of the external input structure as an argument, and for external outputs (if applicable), one get method, returning the reference to the external output structure.

Dependencies

  • This parameter appears only for ERT-based targets with parameter Language set to C++ and parameter Code interface packaging set to C++ class.

  • This parameter requires an Embedded Coder® license when generating code.

Command-Line Information

Parameter: GenerateExternalIOAccessMethods
Type: character vector
Value: 'None' | 'Method' | 'Inlined method' | 'Structure-based method' | 'Inlined structure-based method'
Default: 'Inlined structure-based method'

Recommended Settings

ApplicationSetting
DebuggingInlined method
TraceabilityInlined method
EfficiencyInlined method
Safety precaution

No recommendation

Related Topics