Skip to Main Content Skip to Search
Product Documentation

ssFxpSetU32BitRegionCompliant - Declare compliance with the U32 bit region interface for fixed-point data types with 33 or more bits

Syntax

extern ssFxpSetU32BitRegionCompliant(SimStruct *S,
                          int Value)

Arguments

S

SimStruct representing an S-function block.

Value
  • 1 declare compliance with memory footprint for fixed-point data types with 33 or more bits.

Description

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().

Requirement

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

Languages

C

See Also

ssFxpGetU32BitRegionCompliant

  


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