/************************************************************************* $Archive: /PACS/OnBoard/Commands.h $ $Revision: 1.11 $ $Date: 2009/04/23 13:51:12 $ $Author: amazy $ $Log: Commands.h,v $ Revision 1.11 2009/04/23 13:51:12 amazy 6.029 * * 11 3/14/06 4:31p Pacs Egse * Version 6.001 * Cleaned and commented *************************************************************************/ #define COMMANDS_H #ifndef CSL_TYPE_H #include "csl_type.h" #endif /* UNION : CommandParameter ************************ AUTHOR : AMazy USE : this union is used in the Command structure. The command parameter may be any of the type defined in this union. */ typedef union { uint Uint; int Int; float Float; } CommandParameter ; /* STRUCT : Command **************** AUTHOR : AMazy USE : This structure defines the format of the command coming from the DPU. It applies to the single command and to the commands stored in sequences. */ typedef struct { uint Id; CommandParameter Param; } Command; /* ENUM : CommandId **************** AUTHOR : AMazy USE : enumerates the id of the commands. The id may be used to access elements in the InterpreterFunctionArray and in FunctionAvailabilityArray. NOTE : The id shall never be used directly in the DEC_MEC software; It shall be used by ground software only. However, during development, it is usefull. */ #define COMMAND(CommandId, CommandFunctionPointer, Availability, paramType) CommandId, enum { #include "com_list.h" NB_COMMANDS };