GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> MSG / V3-1-2 > msg_mt / rad750
#include <PBI/TBD_id.h>
#include <PBS/TBD.ih>
#include <MSG/MSG_msgs.h>
#include <MSG/MSG_pubdefs.h>
#include <MSG_prvdefs.h>
Functions | |
MSG_Level | MSG_getLevel () |
Get the current reporting level. | |
MSG_Level | MSG_getLevel4Task (void **tbd) |
Get the current reporting level for an arbitrary task. | |
const char * | MSG_getTask () |
Return pointer to task name. | |
unsigned short | MSG_getTrace () |
Get the current trace buffer number. | |
unsigned int | MSG_isDrained (MSG_Control *mcb) |
Test to see if the fork has drained. | |
MSG_Level | MSG_setLevel (MSG_Level newval) |
Set the current reporting level. | |
MSG_Level | MSG_setLevel4Task (void **tbd, MSG_Level newval) |
Set the current reporting level for an arbitrary task. | |
unsigned int | MSG_setTask (const char *task) |
Set the task name. | |
unsigned short | MSG_setTrace (unsigned short newval) |
Set the current trace buffer number. |
CVS $Id: MSG_report_mt.c,v 1.4 2011/03/25 01:05:53 apw Exp $
MSG_Level MSG_getLevel | ( | void | ) |
Get the current reporting level.
If called from task level, the level associated with the task is returned. If called from interrupt level, the level associated (globally) with interrupt level is returned.
References _MSG_TaskOption::level, MSG_D_LEVEL, MSG_D_TRACE, _MSG_TaskOption::trace, and _MSG_TaskOption::valid.
Referenced by MSG_reportInternal().
MSG_Level MSG_getLevel4Task | ( | void ** | tbd | ) |
Get the current reporting level for an arbitrary task.
tbd | (in) Pointer to arbitrary task's TBD block |
References _MSG_TaskOption::level, MSG_D_LEVEL, MSG_D_TRACE, _MSG_TaskOption::trace, and _MSG_TaskOption::valid.
const char * MSG_getTask | ( | void | ) |
Return pointer to task name.
ISR>
.
UND>
. Referenced by MSG_outputScan(), and MSG_reportInternal().
unsigned short MSG_getTrace | ( | void | ) |
Get the current trace buffer number.
If called from task level, the trace buffer number associated with the task is returned. If called from interrupt level, the trace buffer number associated (globally) with interrupt level is returned.
References _MSG_TaskOption::level, MSG_D_LEVEL, MSG_D_TRACE, _MSG_TaskOption::trace, and _MSG_TaskOption::valid.
Referenced by MSG_outputScan(), and MSG_reportInternal().
unsigned int MSG_isDrained | ( | MSG_Control * | mcb | ) |
Test to see if the fork has drained.
mcb | Message control block |
0 | Fork is not drained | |
1 | Fork is drained |
References _MSG_Control::beg, _MSG_Control::end, MSG_P_RESERVED, _MSG_Control::now, _MSG_Control::pkt_cnt, and _MSG_Control::rwi.
Referenced by MSG_outputScan().
Set the current reporting level.
newval | (in) Reporting level to be set |
If called from task level, the level associated with the task is set and the task's previous level is returned. If called from interrupt level, the level associated (globally) with interrupt level is set and the level previously in effect at interrupt level is returned.
References _MSG_TaskOption::level, MSG_D_LEVEL, MSG_D_TRACE, MSG_LVL_ERROR, MSG_LVL_SUCCESS, _MSG_TaskOption::trace, and _MSG_TaskOption::valid.
Set the current reporting level for an arbitrary task.
tbd | (in) Pointer to arbitrary task's TBD block | |
newval | (in) Reporting level to be set |
References _MSG_TaskOption::level, MSG_D_LEVEL, MSG_D_TRACE, MSG_LVL_ERROR, MSG_LVL_SUCCESS, _MSG_TaskOption::trace, and _MSG_TaskOption::valid.
unsigned int MSG_setTask | ( | const char * | task | ) |
Set the task name.
task | (in) Pointer to task name |
MSG_SUCCESS | Always |
unsigned short MSG_setTrace | ( | unsigned short | newval | ) |
Set the current trace buffer number.
newval | (in) Trace buffer number to set |
If called from task level, the trace buffer number associated with the task is set and the task's previous trace buffer number is returned. If called from interrupt level, the trace buffer number associated (globally) with interrupt level is set and the trace buffer number previously in effect at interrupt level is returned.
References _MSG_TaskOption::level, MSG_D_LEVEL, MSG_D_TRACE, _MSG_TaskOption::trace, and _MSG_TaskOption::valid.