Documentation Center

  • Trial Software
  • Product Updates

ssGetDataTypeNumberOfChunks

Return number of chunks in multiword storage container of registered data type

Syntax

extern int ssGetDataTypeNumberOfChunks(SimStruct *S,
                                       DTypeId dataTypeId)

Arguments

S

SimStruct representing an S-function block.

dataTypeId

Data type ID of the registered data type for which you want to know the number of chunks in its multiword storage container.

Description

This function returns the number of chunks in the multiword storage container of the fixed-point data type designated by dataTypeId. This function is valid only for a registered data type whose storage container uses a multiword representation. You can use the ssGetDataTypeStorageContainCat function to identify the storage container category; for multiword storage containers, the function returns the category FXP_STORAGE_MULTIWORD.

Requirement

To use this function, you must include fixedpoint.h and fixedpoint.c. For more information, see Structure of the S-Function.

Languages

C

Was this topic helpful?