Determine whether S-function is compliant with the U32 bit region interface
extern ssFxpSGetU32BitRegionCompliant(SimStruct *S, int *result)
S
SimStruct representing an S-function block.
result
1
if S-function calls
ssFxpSetU32BitRegionCompliant to declare compliance with
memory footprint for fixed-point data types with 33 or more
bits
0
if S-function does not call
ssFxpSetU32BitRegionCompliant
This function checks whether the S-function calls ssFxpSetU32BitRegionCompliant to declare compliance with the memory footprint for fixed-point data types with 33 or more bits. Before calling any other Fixed-Point Designer™ API function on data with 33 or more bits, you must call ssFxpSetU32BitRegionCompliant as follows:
ssFxpSetU32BitRegionCompliant(S,1);
Note
The Fixed-Point Designer software assumes that S-functions that use fixed-point
data types with 33 or more bits without calling
ssFxpSetU32BitRegionCompliant
are using the
obsolete memory footprint that existed until R2007b. Either redesign
these S-functions or isolate them using the library
fixpt_legacy_sfun_support
.
To use this function, you must include fixedpoint.h
and
fixedpoint.c
. For more information, see Structure of the S-Function.
C