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

lsfInterface.h File Reference

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

Included by dependency graph

Go to the source code of this file.

Defines

#define lsfACI_FUNCTION(mod, fct)
#define lsfACI_PARAMS   parameters,msg,replyBuffer,replyBufferSize,error
#define lsfVERBOSE_CMD_RECV(cmd)
#define lsfVERBOSE_CMD_DONE(cmd)
#define lsfSTD_COMMAND(mod, fct, cmd)
#define lsfSTD_REPLY
#define lsfREPLY_OK(status, msg, buffer, size)
#define lsfTASK_REGISTER(mod, id)


Define Documentation

#define lsfACI_FUNCTION mod,
fct   
 

Value:

ccsCOMPL_STAT I ## mod ## fct ( \
    IN  const char   *parameters,         \
    IN  msgMSG       *msg,                \
    OUT char         **replyBuffer,       \
    OUT msgLENGTH    *replyBufferSize,    \
    OUT ccsERROR     *error )

#define lsfACI_PARAMS   parameters,msg,replyBuffer,replyBufferSize,error
 

#define lsfVERBOSE_CMD_RECV cmd   
 

Value:

if (lcuVerbose(msg,cmd ## ": Command received",error) != SUCCESS) \
        return FAILURE

#define lsfVERBOSE_CMD_DONE cmd   
 

Value:

if (lcuVerbose(msg,cmd ## ": Command executed",error) != SUCCESS) \
        return FAILURE

#define lsfSTD_COMMAND mod,
fct,
cmd   
 

Value:

lsfACI_FUNCTION(mod,Std ## fct) \
    { \
    ccsCOMPL_STAT status;                           \
    lsfVERBOSE_CMD_RECV(cmd);                       \
    status = mod ## Std ## fct (parameters,error);  \
    lsfVERBOSE_CMD_DONE(cmd);                       \
    lsfSTD_REPLY;                                   \
    }

#define lsfSTD_REPLY
 

Value:

if (status == SUCCESS)                      \
        {                                       \
        sprintf(msg->body,"OK");                \
        *replyBuffer=(char *)&msg->body;        \
        *replyBufferSize=strlen(msg->body) + 1; \
        }                                       \
    return (status)

#define lsfREPLY_OK status,
msg,
buffer,
size   
 

Value:

if (status == SUCCESS)                      \
        {                                       \
        sprintf(msg->body,"OK");                \
        *buffer=(char *)&msg->body;             \
        *size=strlen(msg->body) + 1;            \
        }

#define lsfTASK_REGISTER mod,
id   
 

Value:

{                                           \
  ccsPROCNAME ccsProcName;                    \
  sprintf(ccsProcName,"%.8s%.4s%04X",mod,id,(taskIdSelf() & 0x0000FFFF));  \
  if (ccsInit(ccsProcName,0,NULL,NULL,error) != SUCCESS)               \
      return FAILURE;                                                  \
  }


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