Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

Introduced in R2007b

Was this topic helpful?