Hxi_MEX_SFunction.h File Reference


Detailed Description

Interface to a Simulink(R) S-function given as binary MEX object.

Several S-function methods are supported that redirect the call to the MEX object. Data is communicated through a SimStruct. The two functions Hxi_MEX_SimStruct_create and Hxi_MEX_SimStruct_destroy are provided for allocating and releasing a SimStruct. The function Hxi_MEX_SFunction_init calls the mexFunction.

(Simulink is a registered trademark of The MathWorks, Inc.)

rf, 07/14/2001

#include "simstruc.h"

Include dependency graph for Hxi_MEX_SFunction.h:

base refererrect $simstruc_8h.html 212,57 295,84rect $Hxi__SimStruct_8h.html 375,83 495,109rect $Hxi__sfun__types_8h.html 601,108 727,135rect $Hxi__SimStruct__methods_8h.html 575,159 753,185

Defines

#define Hxi_MEX_SFunction_H
 Avoid multiple inclusion.
#define HXI_MEX_S_FUNCTION
 define HXI_MEX_S_FUNCTION prior to inclusion of simstruc.h, in order to select the MEX version of SimStruct.
Unsupported macros
Disable macros that are critical for memory management and must not be used.

#define ssSetRWork(S, rwork)   ssSetRWork_cannot_be_used_with_Hxi_MEX_SFunction
#define ssSetPWork(S, pwork)   ssSetPWork_cannot_be_used_with_Hxi_MEX_SFunction
#define ssSetIWork(S, iwork)   ssSetIWork_cannot_be_used_with_Hxi_MEX_SFunction
#define ssSetTPtr(S, tptr)   ssSetTPtr_cannot_be_used_with_Hxi_MEX_SFunction

Functions

int_T ssSetSFcnParamsCount (SimStruct *S, int_T n)
 Redefine ssSetSFcnParamsCount to allocate memory for mxArray pointers.
SimStruct * Hxi_MEX_SimStruct_create ()
 Create a MEX SimStruct.
void Hxi_MEX_SimStruct_destroy (SimStruct *S)
 Free memory of MEX SimStruct.
void Hxi_MEX_SFunction_init (SimStruct *S)
 Initialize MEX S-function, including call to mdlInitializeSizes.

Define Documentation

#define HXI_MEX_S_FUNCTION

define HXI_MEX_S_FUNCTION prior to inclusion of simstruc.h, in order to select the MEX version of SimStruct.


HQP is hosted at SourceForge. Documentation generated on Sat Nov 8 14:21:32 2008 using doxygen.