GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EMSG / V1-1-0
Constituent: emsg_st     Tag: sun-gcc
#include <stdlib.h>
#include <string.h>
#include "PBS/MBA.h"
#include "PBS/FPA.h"
#include "EMSG/EMSG_msgs.h"
#include "EMSG_prvdefs.h"
Include dependency graph for EMSG_control.c:
Functions | |
unsigned int | EMSG_countsSinceReset (EMSG_Counts *cnt, unsigned int rst) |
Return instrumentation counts since last reset. | |
unsigned int | EMSG_countsSinceStart (EMSG_Counts *cnt) |
Return instrumentation counts since message task started. | |
unsigned int | EMSG_initialize (const EMSG_InitPrm *prm) |
Initialize the message system. | |
unsigned int | EMSG_shutdown (void) |
Shut down the message system. | |
unsigned int | EMSG_startTask (int prio) |
Start the message task. | |
unsigned int | EMSG_stopTask (void) |
Stop the message task. | |
Variables | |
EMSG_Control * | EMSG_mcb = &mcb |
Pointer to the control block for the message system. | |
EMSG_AltMessage | EMSG_alt [EMSG_L_ALTERNATE] |
Translation table for the eight "special" messages. |
This file contains all the routines needed to initialize, start up, stop and shut down the error message system.
|
Return instrumentation counts since last reset.
|
|
Return instrumentation counts since message task started.
|
|
Initialize the message system. This routine initializes the message system according to the parameters provided in the parameterization block.
|
|
Shut down the message system. This routine detaches all attached output processors and frees all resources associated with the message system.
|
|
Start the message task. In multi-threaded mode, this routine spawns a task (with the attributes defined in the task attributes block passed into this routine) to receive and process messages. In single-threaded mode, it does not spawn a task, and all message processing is done inline with the report call. The task attributes block is ignored. In both modes (and before the task spawn in multi-threaded mode), this routine calls each of the output processing routines in turn with a flag to indicate an inialization call.
|
|
Stop the message task. In multi-threaded mode, EMSG_stopTask() runs down the task spawned in EMSG_startTask() and releases the resources associated with it. In single-threaded mode, there is no spawned task to run down. In both modes (and after the spawned task has run down in multi- threaded mode), EMSG_stopTask() calls each of the output processing routines in turn with a flag to indicate a cleanup call.
|
|
Initial value: { { EMSG_UNKNOWNS, NULL, NULL }, { EMSG_UNKNOWNW, NULL, NULL }, { EMSG_UNKNOWNI, NULL, NULL }, { EMSG_UNKNOWNE, NULL, NULL }, { EMSG_UNIXGOOD, NULL, NULL }, { EMSG_UNIXEROR, NULL, NULL }, { EMSG_GAPBEGIN, NULL, NULL }, { EMSG_GAPEND, NULL, NULL } }
|