GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QPD / dev > qpd / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

QPD_msgproc.c File Reference

Routines for processing error messages. More...

#include <QPD/QPD.h>
#include <ATT/ATT.h>
#include <CDM/CDM_pubdefs.h>
#include <CPU_DB/CPU_DB_pubdefs.h>
#include <FILE/FILE_lcp.h>
#include <IMM/FPM_pubdefs.h>
#include <ITC/ITC_pubdefs.h>
#include <LCBD/LCBD.h>
#include <LCFG/LCFG.h>
#include <LCI/lci.h>
#include <LCM/LCM_pubdefs.h>
#include <LCS/LCS_pubdefs.h>
#include <LEM/encode.h>
#include <LFS/LFS_lcp.h>
#include <LHK/LHK_pubdefs.h>
#include <LIM/LIM_pubdefs.h>
#include <LPA/LPA_siu.h>
#include <LRA/LRA.h>
#include <LSEC/LSEC.h>
#include <LSM/LSM_pubdefs.h>
#include <LSW/LSW_pubdefs.h>
#include <LTC/ltc.h>
#include <MEM/MEM_pubdefs.h>
#include <MON/MON_pubdefs.h>
#include <PIG/pig.h>
#include <THS/THS.h>
#include <TRC/TRC_pubdefs.h>
#include <stdio.h>
#include <string.h>

Typedefs

typedef unsigned func_t ()

Functions

void QPD_msgProc (MSG_OutputModes mode, void *parm, const MSG_Message *msg)
 Process an error message.
int QPD_msgFormat (int format)
 Set the formatting parameter.
char * QPD_msgText (void)
 Get the message test.
func_t ** QPD_msgDummy (void)
 Dummy routine.

Variables

static func_t * funcs []
static int msgFormat = 0
static char msgText [100]


Detailed Description

Routines for processing error messages.

Author:
Owen H Saxton
Id
QPD_msgproc.c,v 1.3 2011/03/30 20:20:18 saxton Exp

Function Documentation

func_t** QPD_msgDummy ( void   ) 

Dummy routine.

This routine exists to create a reference to the function list.

int QPD_msgFormat ( int  format  ) 

Set the formatting parameter.

This routine sets the message formatting parameter. When zero, messages are formatted in the standard way and output to the terminal. When non-zero, messages are briefly formatted and stored locally, to be retrieved via the QPD_msgText routine.

Parameters:
format The formatting parameter value to set.
Returns:
The previous value of the formatting parameter.

Referenced by QPD_dispCmndConf(), and QPD_dispLimData().

void QPD_msgProc ( MSG_OutputModes  mode,
void *  parm,
const MSG_Message *  msg 
)

Process an error message.

This routine is an output processor for the message system. It in general prints the message in a simple format. Using a static flag, it can also format the message into a static area when requested to.

Parameters:
mode Calling mode (initial, normal, exit)
parm User parameter (not used)
msg The message to be output

char* QPD_msgText ( void   ) 

Get the message test.

This routine returns the address of the last stored message.

Returns:
The addres of the message text.

Referenced by QPD_dispCmndConf(), and QPD_dispLimData().


Variable Documentation

func_t* funcs[] [static]

Initial value:

 {(func_t *)ATT_init,
                          (func_t *)CDM_getVersion,
                          (func_t *)CPU_DB_initialize,
                          (func_t *)FILE_start,
                          (func_t *)FPM_initialize,
                          (func_t *)ITC_initialize,
                          (func_t *)LCBD_get,
                          (func_t *)LCFG_initialise,
                          (func_t *)LCI_initialise,
                          (func_t *)LCS_initialize,
                          (func_t *)GEM_encode,
                          (func_t *)LFS_initialize,
                          (func_t *)LHK_initialize,
                          (func_t *)LIM_start,
                          (func_t *)LPA_siu_start,
                          (func_t *)LRA_initialize,
                          (func_t *)LSEC_initialize,
                          (func_t *)LTC_initialize,
                          (func_t *)PIG_sizeofRecord,
                          (func_t *)THS_init,

                          (func_t *)LCM_start,
                          (func_t *)LSM_initialize,
                          (func_t *)LSW_initialize,
                          (func_t *)MEM_initialize,
                          (func_t *)MON_initialize,
                          (func_t *)TRC_initialize,

                         }


Generated on Wed Mar 30 13:39:34 2011 by  doxygen 1.5.8