SM_ADC  1.0
Приём данных АЦП через разделяемую память
mexdefinitions.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //
3 // This file is part of easyLink Library.
4 //
5 // Copyright (c) 2014 FEMTO-ST, ENSMM, UFC, CNRS.
6 //
7 // License: GNU General Public License 3
8 // Author: Guillaume J. Laurent
9 //
10 //------------------------------------------------------------------------------
11 
12 //------------------------------------------------------------------------------
13 // Definition of the gateway function for MEX functions
14 void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
15 {
16  try
17  {
18  Function::nrhs=nrhs;
19  Function::prhs=&(prhs[0]);
20  Function::nlhs=nlhs;
24  for (int i=0;i<nlhs;i++) {
25  plhs[i]=Function::plhs[i];
26  }
27  }
28  catch (exception const& e)
29  {
30  strcpy(ERROR_MSG_BUFFER,e.what());
31  mexErrMsgIdAndTxt("easylink:error",ERROR_MSG_BUFFER);
32  return;
33  }
34 }
35 
36 //------------------------------------------------------------------------------
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
static void initializeInputPortSizes()
Definition: basefunction.h:61
static char ERROR_MSG_BUFFER[512]
Definition: utils.h:30
static int nrhs
Definition: basefunction.h:45
static void initializeOutputPortSizes()
Definition: basefunction.h:109
static vector< mxArray * > plhs
Definition: basefunction.h:48
static int nlhs
Definition: basefunction.h:47
static void outputs()
static const mxArray ** prhs
Definition: basefunction.h:46