| Contents | Index |
extern ssFxpSetU32BitRegionCompliant(SimStruct *S,
int Value)
SimStruct representing an S-function block.
1 declare compliance with memory footprint for fixed-point data types with 33 or more bits.
This function declares compliance with the Simulink Fixed Point bit region interface for data types with 33 or more bits. The memory footprint for data types with 33 or more bits varies between MATLAB host platforms and might change between software releases. To make an S-function robust to memory footprint changes, use the U32 bit region interface. You can use identical source code on different MATLAB host platforms and with any software release from R2008b. If the memory footprint changes between releases, you do not have to recompile U32 bit region compliant S-functions.
To make an S-function U32 bit region compliant, before calling any other Simulink Fixed Point API function on data with 33 or more bits, you must call this function as follows:
ssFxpSetU32BitRegionCompliant(S,1);
If an S-function block contains a fixed-point data type with 33 or more bits, call this function in mdlInitializeSizes().
Note The Simulink Fixed Point 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.mdl. |
To use this function, you must include fixedpoint.h and fixedpoint.c. For more information, see Structure of the S-Function.
C

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 |