Skip to Main Content Skip to Search
Product Documentation

ssGetDataTypeFxpContainWordLen - Return word length of storage container of registered data type

Syntax

extern int ssGetDataTypeFxpContainWordLen (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 container word length.

Description

This function returns the word length, in bits, of the storage container of the fixed-point data type designated by dataTypeId. This function does not return the size of the storage container or the word length of the data type. To get the storage container size, use ssGetDataTypeStorageContainerSize. To get the data type word length, use ssGetDataTypeFxpWordLength.

Requirement

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

Languages

C

Examples

An sfix24_En10 data type has a word length of 24, but is actually stored in 32 bits during simulation. For this signal,

TLC Functions

FixPt_DataTypeFxpContainWordLen

See Also

ssGetDataTypeFxpWordLength, ssGetDataTypeStorageContainCat, ssGetDataTypeStorageContainerSize

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS