ssGetDataTypeIsSpecifiedInteger
Determine whether registered data type is integer with specified signedness and word length
Since R2020b
Syntax
extern int ssGetDataTypeIsInteger(SimStruct *S, DTypeId dataTypeId, int isSigned, int wordLength)
Arguments
S
SimStruct representing an S-function block.
dataTypeId
Data type ID of the registered data type to analyze, specified as a
DTypeId
. To retrieve theDTypeId
of a registered data type, usessGetDataTypeId
.
isSigned
Whether the specified integer is signed. Specify
TRUE
if the integer data type is signed orFALSE
if the integer data type is unsigned.wordLength
Total number of bits in the specified integer, including any sign bit, specified as a whole number between
1
and65535
.
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