/*
 * dsp_ts_sim.h
 *
 * DSP Blockset helper function.
 *
 * Query input/output port sample time information.
 *
 *
 * Copyright (c) 1995-2000 The MathWorks, Inc.
 * $Revision: 1.5 $ $Date: 2000/03/16 03:17:19 $
 */

#ifndef dsp_ts_sim_h
#define dsp_ts_sim_h

#include "simstruc.h"

/*--------------------------------------------------------------
 * BLOCK: SAMPLE TIME INHERITED
 */

extern boolean_T isBlockTsInherited(SimStruct *S, int_T sti);

/*--------------------------------------------------------------
 * BLOCK: CONTINUOUS SAMPLE TIME
 * Includes continuous (0) and variable sample times (-2). 
 */

extern boolean_T isBlockContinuous(SimStruct *S, int_T sti);

/*--------------------------------------------------------------
 * BLOCK: DISCRETE SAMPLE TIME
 */

extern boolean_T isBlockDiscrete(SimStruct *S, int_T sti);

/*--------------------------------------------------------------
 * PORT-BASED:
 */

extern boolean_T areAllInputPortsDiscreteSampleTime(SimStruct *S);

extern boolean_T areAllInputPortsContOrConstSampleTime(SimStruct *S);

extern boolean_T areAllInputPortsSameBehaviorSampleTime(SimStruct *S);

/*--------------------------------------------------------------
 * OFFSET
 */


#endif /* dsp_ts_sim_h */

/* [EOF] dsp_ts_sim.h */
