getFunctionInterfaces
Class: coder.codedescriptor.CodeDescriptor
Namespace: coder.codedescriptor
Return information of the specified function interface
Syntax
functionInterface = getFunctionInterfaces(codeDescObj, functionInterfaceName)
Description
returns the function prototype, input arguments, return arguments, variant conditions,
and timing information of the function interface that
functionInterface
= getFunctionInterfaces(codeDescObj
, functionInterfaceName
)functionInterfaceName
specifies.
Input Arguments
Output Arguments
Examples
Open the model.
openExample(‘CustomCodeComments’)
Build the model.
slbuild('CustomCodeComments')
Create a
coder.codedescriptor.CodeDescriptor
object for the required model.codeDescObj = coder.getCodeDescriptor('CustomCodeComments')
Return a list of all function interface types in the generated code.
These are the function interface types in the generated code of modelfunctionInterfaceTypes = getFunctionInterfaceTypes(codeDescObj)
CustomCodeComments
:{'Initialize'} {'Output' }
Return properties of a specified function interface in the generated code.
functionInterface = getFunctionInterfaces(codeDescObj, 'Output')
functionInterface
is acoder.descriptor.FunctionInterface
object.Prototype: [1×1 coder.descriptor.types.Prototype] ActualReturn: [0×0 coder.descriptor.DataInterface] VariantInfo: [0×0 coder.descriptor.VariantInfo] Timing: [1×1 coder.descriptor.TimingInterface] ActualArgs: [1x0 coder.descriptor.DataInterface List]
Version History
Introduced in R2018a