| Contents | Index |
extern void ssFxpConvert (SimStruct *S,
void *pVoidDest,
size_t sizeofDest,
DTypeId dataTypeIdDest,
const void *pVoidSrc,
size_t sizeofSrc,
DTypeId dataTypeIdSrc,
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.
Pointer to the value you want to convert.
Size in memory of the value you want to convert.
Data type ID of the 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 value of any registered built-in or fixed-point data type to any other 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
ssFxpConvertFromRealWorldValue, 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 |