coder.mapping.api.CoderDictionary
R2026bGet and set data and function defaults of Embedded Coder dictionary configured with data interface configuration
Description
Use a coder.mapping.api.CoderDictionary object and its functions
to view and modify the default C code generation settings in an Embedded Coder® dictionary configured with data interface configuration.
Creation
The object coder.mapping.api.CoderDictionary is created automatically
with the Embedded Coder dictionary it is associated with. Use one of these syntaxes to get a handle to
the object:
Syntax
Description
returns the active code mapping object of the Embedded Coder dictionary in the specified mapDictObj = coder.mapping.api.get(dictFilePath).sldd file
dictFilePath.
returns the active code mapping object associated with the mapDictObj = coder.mapping.api.get(simDictObj)Simulink.data.Dictionary object, simDictObj.
Input Arguments
Output Arguments
Usage
Each Embedded Coder dictionary configured with data interface configuration is associated with a
coder.mapping.api.CoderDictionary object. The object provides access to the
default dictionary values for data and functions categories. Use the object functions
getDataDefault
and setDataDefault to
view and modify the default storage class and memory section for these data categories:
InportsOutportsModelParametersExternalParametersSharedLocalDataStoresGlobalDataStoresInternalData
Use the object functions getFunctionDefault and setFunctionDefault to view and modify the default function customization
template and memory section for these function categories:
InitializeTerminateExecutionSharedUtility
Object Functions
getDataDefault | Get default code settings for data category |
setDataDefault | Set default code settings for data category |
getFunctionDefault | Get default function customization template or memory section for model functions category |
setFunctionDefault | Set default function customization template and memory section for model functions category |
Examples
Version History
Introduced in R2021a