Return number of chunks in multiword storage container of registered data type
extern int ssGetDataTypeNumberOfChunks(SimStruct *S, DTypeId dataTypeId)
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.
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
.
To use this function, you must include fixedpoint.h
and
fixedpoint.c
. For more information, see Structure of the S-Function.
C