setFunction
Set coder mapping information for model function
Description
setFunction(
sets code mapping information for the specified model function. Use this function to set the
function customization template, memory section, or function name for a model function. For
single-tasking periodic functions and Simulink® functions, you can use this function to set the argument specification,
including argument names, type qualifiers, and argument order. coderMapObj,funcID,Name=Value)
Examples
Input Arguments
Name-Value Arguments
Version History
Introduced in R2020b
See Also
coder.mapping.api.CodeMapping | coder.mapping.api.get | getFunction | getFunctionDefault | setFunctionDefault
Topics
- Programmatically Customize C Functions Generated from Global Simulink Functions
- Programmatically Customize C Functions Generated from Scoped Simulink Functions Located in Top Model
- Programmatically Customize Generated Entry-Point C Function Names
- Programmatically Customize Arguments of Step C Function Generated from Single Tasking Model
- Programmatically Customize Generated Entry-Point C Function Arguments for Component Models
- Configure Names for Individual C Entry-Point Functions
- Configure Name and Arguments for Individual Step Functions
- Configure Default C Code Generation for Categories of Data Elements and Functions
- C Data Code Interface Configuration for Model Interface Elements
- Configure Timer Service Interfaces
- Create and Analyze Random Schedules for a Model Using the Schedule Editor API