Main Content

getFunctionInterfaceTypes

Class: coder.codedescriptor.CodeDescriptor
Package: coder.codedescriptor

Return function interface types in the generated code

Syntax

functionInterfaceTypes = getFunctionInterfaceTypes(codeDescObj)

Description

functionInterfaceTypes = getFunctionInterfaceTypes(codeDescObj) returns a list of the function interface types in the generated code. To get a list of the available function interfaces, call getAllFunctionInterfaceTypes().

Input Arguments

expand all

coder.codedescriptor.CodeDescriptor object for which you want to retrieve the information about generated code.

Output Arguments

expand all

A list of the data interface types in the generated code.

Examples

  1. Build the model.

    slbuild('rtwdemo_counter')

  2. Create a coder.codedescriptor.CodeDescriptor object for the required model.

    codeDescObj = coder.getCodeDescriptor('rtwdemo_counter')
    

  3. Return a list of function interface types in the generated code.

    functionInterfaceTypes = getFunctionInterfaceTypes(codeDescObj)

functionInterfaceTypes has these values for model rtwdemo_counter:

    {'Initialize'}
    {'Output'    }

Introduced in R2018a