| Contents | Index |
extern void ssFxpConvertFromRealWorldValue
(SimStruct *S,
void *pVoidDest,
size_t sizeofDest,
DTypeId dataTypeIdDest,
double dblRealWorldValue,
fxpModeRounding roundMode,
fxpModeOverflow overflowMode,
fxpOverflowLogs *pFxpOverflowLogs)
SimStruct representing an S-function block.
Pointer to the converted value.
Size in memory of the converted value.
Data type ID of the converted value.
Double value you want to convert.
Rounding mode you want to use if a loss of precision is necessary during the conversion. Possible values are FXP_ROUND_CEIL, FXP_ROUND_CONVERGENT, FXP_ROUND_FLOOR, FXP_ROUND_NEAR, FXP_ROUND_NEAR_ML, FXP_ROUND_SIMPLEST and FXP_ROUND_ZERO.
Overflow mode you want to use if overflow occurs during the conversion. Possible values are FXP_OVERFLOW_SATURATE and FXP_OVERFLOW_WRAP.
Pointer to the fixed-point overflow logging structure.
This function converts a double value to any registered built-in or fixed-point data type.
To use this function, you must include fixedpoint.h and fixedpoint.c. For more information, see Structure of the S-Function.
C
None
ssFxpConvert, ssFxpConvertToRealWorldValue

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 |