ssGetDataTypeNumberOfChunks
Return number of chunks in multiword storage container of registered data type
Syntax
extern int ssGetDataTypeNumberOfChunks(SimStruct *S,
DTypeId dataTypeId)
Arguments
SSimStruct representing an S-function block.
dataTypeIdData 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.
Requirements
To use this function, you must include
fixedpoint.handfixedpoint.c. For more information, see Structure of the S-Function.To build an S-function that utilizes this function, you must compile it using the
mexfunction with-lfixedpointargument. For more information, see Create MEX Files.
Languages
C
See Also
Version History
Introduced in R2007b