Package: coder.descriptor
Return information about different types of data interfaces
The coder.descriptor.DataInterface
object describes various properties
for a specified data interface in the generated code. The different types of data interfaces are:
Root-level inports and outports: An interface between the model and external models or systems, for exchanging data.
Parameters: Local and global parameters that describe the data for the block, lookup table, and the associated breakpoint set data.
Data Stores: A repository to store global and shared data that can be written and read.
Internal data: Internal data structures including DWork vectors, block I/O, and zero-crossings.
If your model has a Stateflow chart that uses machine-parented data, the code generator
generates a DWork structure in the generated code. When you use the
getDataInterfaces
method, you cannot access these structures as
InternalData
.
creates a dataInterface
= getDataInterfaces(codeDescObj
, dataInterfaceName
)coder.descriptor.DataInterface
object. The
codeDescObj
object is the
coder.codedescriptor.CodeDescriptor
object created for the model by using
the getCodeDescriptor
function.
A bitfield data structure is generated if you select these configuration parameters:
Pack Boolean data into bitfields
Use bitset for storing state configuration
Use bitset for storing Boolean data
If the coder.descriptor.DataInterface
represents a bitfield data
structure, the Implementation property of the
coder.descriptor.DataInterface
object is empty.
coder.codedescriptor.CodeDescriptor
| getAllDataInterfaceTypes
| getDataInterfaces
| getDataInterfaceTypes