#include "u_verb.h" /************************************************************************* $Archive: /PACS/OnBoard/u_verb.c $ $Revision: 1.10 $ $Date: 2009/04/23 13:51:12 $ $Author: amazy $ $Log: u_verb.c,v $ Revision 1.10 2009/04/23 13:51:12 amazy 6.029 * * 33 28/08/02 11:49 Amazy * Added the header with the history log *************************************************************************/ #ifdef SIMULATOR #include "VirtuosoSim.h" #endif #include "seq.h" #ifdef VERBOSE //**************************************************************** // GLOBAL PARAMETERS //**************************************************************** int gVerboseLevel = 8; int gVerboseCategories = VER_SEQ_CMD | VER_SEQ | VER_DPU_REC; char gBlankSpaces[10] = " "; char gTemporaryString[256]; char gTemporaryString2[256]; /**************************************************************** FUNCTIONS DECLARATION ****************************************************************/ // commands functions BOOL CommandSetVerboseLevel(CommandParameter param); BOOL CommandSetVerboseCategories(CommandParameter param); /**************************************************************** FUNCTIONS IMPLEMENATION ****************************************************************/ /* CMD_FUNCTION : BOOL CommandSetVerboseLevel(CommandParameter param) ****************************************************************** AUTHOR : Amazy USE : Internal function used to set the verbose level. The command exists only when the compilation flag VERBOSE is defined PARAMS : int verboseLevel : 0 = no verbose, 10 = full verbose */ BOOL CommandSetVerboseLevel(CommandParameter param) { VERL1(VER_SEQ_CMD, 2, "SEQ CMD : SET VERBOSE LEVEL = %d", param.Uint); gVerboseLevel = param.Uint; SequencerSendAck(SET_VERBOSE_LEVEL); return FALSE; } /* CMD_FUNCTION : BOOL CommandSetVerboseCategories(CommandParameter param) *********************************************************************** AUTHOR : Amazy USE : Internal function used to enable/disable the verbose categories. The command exists only when the compilation flag VERBOSE is defined PARAMS : see in "u_verb.h" */ BOOL CommandSetVerboseCategories(CommandParameter param) { VERL1(VER_SEQ_CMD, 2, "SEQ CMD : SET VERBOSE CATEGORIES = %d", param.Uint); gVerboseCategories = param.Uint; SequencerSendAck(SET_VERBOSE_CATEGORIES); return FALSE; } #endif //VERBOSE