Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

tacStdBlock.h File Reference

#include "tacTypes.h"
#include "tacDefines.h"
#include "tacErrors.h"

Include dependency graph for tacStdBlock.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

struct  tacSTDBLOCK_TYPE
struct  tacSTDBLOCK

Defines

#define tacStdBlockGetSamplingPeriod(pSelf)   ((*pSelf->shared).samplingPeriod)
#define tacStdBlockGetTime(pSelf)   (&((*pSelf->shared).currentTime))
#define tacStdBlockGetSimulation(pSelf)   ((*pSelf->shared).simulation)
#define tacStdBlockGetInput(pSelf, inputIndex)   (*(pSelf->input[inputIndex]))
#define tacStdBlockGetOutput(pSelf, outputIndex)   (pSelf->output[outputIndex])
#define tacStdBlockSetOutput(pSelf, outputIndex, value)
#define tacStdBlockSetAlgorithm(pSelf, pAlgo)

Typedefs

typedef tacPARAM tacSTDBLOCK_PARAM

Functions

STATUS tacStdBlockInitAll (void)
STATUS tacStdBlockInstallNewType (tacSTDBLOCK_TYPE *typeInfo)
STATUS tacStdBlockConstructor (tacSTDBLOCK **pSelf, char *type, char *name, tacSTDBLOCK_PARAM *parameter, tacSHARED *shared, tacERROR *error)
STATUS tacStdBlockReport (tacSTDBLOCK *pSelf, char *type, char *name, tacSTDBLOCK_PARAM *parameter, tacERROR *error)
STATUS tacStdBlockSetParameter (tacSTDBLOCK *pSelf, tacSTDBLOCK_PARAM *parameter, tacERROR *error)
void tacStdBlockReset (tacSTDBLOCK *pSelf)
void tacStdBlockStop (tacSTDBLOCK *pSelf)
void tacStdBlockDestructor (tacSTDBLOCK *pSelf)
double * tacStdBlockGetOutputRef (tacSTDBLOCK *pSelf, unsigned short outputPort)
void tacStdBlockSetInputNumber (tacSTDBLOCK *pSelf, unsigned short inputNumber)
int tacStdBlockIsResolved (tacSTDBLOCK *pSelf)
STATUS tacStdBlockAttachInput (tacSTDBLOCK *pSelf, unsigned short inputPort, double *signal, tacERROR *error)
STATUS tacStdBlockDetachInput (tacSTDBLOCK *pSelf, unsigned short inputPort, tacERROR *error)
STATUS tacStdBlockAllocateArrays (tacSTDBLOCK *pSelf, unsigned short paramNb, unsigned short inputNb, unsigned short outputNb, tacERROR *error)


Define Documentation

#define tacStdBlockGetSamplingPeriod pSelf       ((*pSelf->shared).samplingPeriod)
 

#define tacStdBlockGetTime pSelf       (&((*pSelf->shared).currentTime))
 

#define tacStdBlockGetSimulation pSelf       ((*pSelf->shared).simulation)
 

#define tacStdBlockGetInput pSelf,
inputIndex       (*(pSelf->input[inputIndex]))
 

#define tacStdBlockGetOutput pSelf,
outputIndex       (pSelf->output[outputIndex])
 

#define tacStdBlockSetOutput pSelf,
outputIndex,
value   
 

Value:

{                                                     \
  pSelf->output[outputIndex] = value;                 \
}

#define tacStdBlockSetAlgorithm pSelf,
pAlgo   
 

Value:

{                                            \
  pSelf->algorithm = pAlgo;                  \
}


Typedef Documentation

typedef tacPARAM tacSTDBLOCK_PARAM
 


Function Documentation

STATUS tacStdBlockInitAll void   
 

STATUS tacStdBlockInstallNewType tacSTDBLOCK_TYPE   typeInfo
 

STATUS tacStdBlockConstructor tacSTDBLOCK **    pSelf,
char *    type,
char *    name,
tacSTDBLOCK_PARAM   parameter,
tacSHARED   shared,
tacERROR   error
 

STATUS tacStdBlockReport tacSTDBLOCK   pSelf,
char *    type,
char *    name,
tacSTDBLOCK_PARAM   parameter,
tacERROR   error
 

STATUS tacStdBlockSetParameter tacSTDBLOCK   pSelf,
tacSTDBLOCK_PARAM   parameter,
tacERROR   error
 

void tacStdBlockReset tacSTDBLOCK   pSelf
 

void tacStdBlockStop tacSTDBLOCK   pSelf
 

void tacStdBlockDestructor tacSTDBLOCK   pSelf
 

double* tacStdBlockGetOutputRef tacSTDBLOCK   pSelf,
unsigned short    outputPort
 

void tacStdBlockSetInputNumber tacSTDBLOCK   pSelf,
unsigned short    inputNumber
 

int tacStdBlockIsResolved tacSTDBLOCK   pSelf
 

STATUS tacStdBlockAttachInput tacSTDBLOCK   pSelf,
unsigned short    inputPort,
double *    signal,
tacERROR   error
 

STATUS tacStdBlockDetachInput tacSTDBLOCK   pSelf,
unsigned short    inputPort,
tacERROR   error
 

STATUS tacStdBlockAllocateArrays tacSTDBLOCK   pSelf,
unsigned short    paramNb,
unsigned short    inputNb,
unsigned short    outputNb,
tacERROR   error
 


Generated on Wed Dec 3 14:56:04 2003 for ATCS API by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001