| Contents | Index |
extern ssFxpSetU32BitRegion(SimStruct *S,
void *pVoid
DTypeId dataTypeId
uint32 regionValue
unsigned int regionIndex)
SimStruct representing an S-function block.
Pointer to the storage container of the real, scalar signal element in which the 32-bit region of interest resides.
Data type ID of the registered data type corresponding to the signal.
Stored integer value that you want to assign to a 32-bit region.
Index of the 32-bit region whose stored integer value you want to set, where 0 accesses the least significant 32-bit region.
This function sets regionValue as the stored integer value of the 32-bit region specified by regionIndex, associated with the fixed-point data type designated by dataTypeId. You can use this function with any fixed-point data type, including those with word sizes less than 32 bits. If the fixed-point word size is less than 32 bits, ensure that the remaining bits are sign extended.
This function generates an error if dataTypeId represents a floating-point data type, or if the stored integer value that you set is invalid.
To view a demo model whose S-functions use the ssFxpSetU32BitRegion function, at the MATLAB prompt, enter fxpdemo_sfun_user_U32BitRegion.
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 |