ssGetDataTypeIsSpecifiedInteger
Determine whether registered data type is integer with specified signedness and word length
Syntax
extern int ssGetDataTypeIsInteger(SimStruct *S,
DTypeId dataTypeId,
int isSigned,
int wordLength)
Arguments
SSimStruct representing an S-function block.
dataTypeIdData type ID of the registered data type to analyze, specified as a
DTypeId. To retrieve theDTypeIdof a registered data type, usessGetDataTypeId.
isSignedWhether the specified integer is signed. Specify
TRUEif the integer data type is signed orFALSEif the integer data type is unsigned.wordLengthTotal number of bits in the specified integer, including any sign bit, specified as a whole number between
1and65535.
Returns
This function returns 1 if the registered data type is the
specified integer, and 0 otherwise.
Description
This function determines whether a registered data type is the integer data type with the word length and signedness that are specified in the function arguments.
Requirement
To use this function, you must include fixedpoint.h and
fixedpoint.c.
Languages
C
TLC Functions
FixPt_DataTypeIsSpecifiedInteger
Version History
Introduced in R2020b