文档库

最新最全的文档下载
当前位置:文档库 > xpcany2byte.c simulink中UDP工具包pack模块之S-function

xpcany2byte.c simulink中UDP工具包pack模块之S-function

/* $Revision: 1.6.4.2 $ $Date: 2009/04/15 23:31:36 $ */

/* xpcany2byte.c - xPC Target, inlined S-function driver for *

* byte-packing */

/* Copyright 1994-2009 The MathWorks, Inc. */

#define S_FUNCTION_LEVEL 2

#undef S_FUNCTION_NAME

#define S_FUNCTION_NAME xpcany2byte

#include

#include

#include "simstruc.h"

#include

#ifdef MATLAB_MEX_FILE

#include "mex.h"

#endif

/* Input Arguments */

#define NUMBER_OF_ARGS (2)

#define DTYPES_ARG ssGetSFcnParam(S, 0)

#define BYTEALIGN_ARG ssGetSFcnParam(S, 1)

#define SAMP_TIME_IND (0)

#define BASE_ADDR_IND (0)

#define NO_I_WORKS (0)

#define NO_R_WORKS (0)

#define NO_P_WORKS (0)

static char_T msg[256];

/* static int flag=0; */

static int INIT=0;

static int dTypeSizes[] = {8,4,1,1,2,2,4,4,1};

static int alignSizes[] = {1,2,4,8};

static int_T getWidth(SimStruct *S, int_T width);

男士内裤十大品牌http://www.wendangku.net/doc/318e2034af45b307e87197fe.html /,毛巾架http://www.wendangku.net/doc/318e2034af45b307e87197fe.html /