Main Content

target.Function class

Package: target

Provide function signature information

Description

Use the target.Function class, which inherits functionality from target.Data, to provide function signature information.

To create a target.Function object, use the target.create function.

Properties

expand all

Data type of value that the associated function returns.

Attributes:

GetAccess
public
SetAccess
public

Name of function.

Attributes:

GetAccess
public
SetAccess
public

Examples

collapse all

Create the function signature for a timer by using the target.Function class.

Create the signature for a function that returns the data type uint64 and the function name timestamp_x86.

timerSignature = target.create('Function');
timerSignature.Name = 'timestamp_x86';
timerSignature.ReturnType = 'uint64';

Introduced in R2020b