GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCM / dev > lcm_siu / rhel4-32
#include <string.h>
#include <CCSDS/CCSDS_pkt.h>
#include <ITC/ITC_msgs.h>
#include <ITC/ITC_pubdefs.h>
#include <LCM/LCM_msgs.h>
#include <LCM/LCM_tlmdefs.h>
#include <LCM_prvdefs.h>
#include <SMON.h>
Functions | |
unsigned int | LCM_CmdResponse_common (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Callback function for the CmdResponse command. | |
unsigned int | LCM_MsgResponse_common (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Callback function for the MsgLevel command. | |
unsigned int | LCM_MsgOutCfg_common (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Callback function for the LLCMMSGOUT command. | |
unsigned int | LCM_Stats_common (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Callback function for the SETSMON command. | |
unsigned int | LCM_Noop_common (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Callback function for the LCMNOOP command. |
CVS $Id: LCM_cmd_common.c,v 1.13 2011/03/29 21:59:33 apw Exp $
unsigned int LCM_CmdResponse_common | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pay, | |||
unsigned int | len | |||
) |
Callback function for the CmdResponse command.
prm | (in) User context parameter | |
qitem | (in) Queue item | |
pay | (in) Payload pointer | |
len | (in) Payload length |
ITC_SUCCESS | S Success | |
ITC_TASKMISS | E No entry in task table for task | |
ITC_TASKPTR | E Task pointer check failed | |
ITC_VARRNG | E Out of range variable detected |
References _LCM_CmdResponse_Prm::fwd, _LCM_CmdResponse_Prm::lvl, _LCM_CmdResponse_Prm::nid, _LCM_Control::node_id, _LCM_CmdResponse_Pkt::pay, _LCM_CmdResponse_Prm::scb, and _LCM_CmdResponse_Prm::tid.
Referenced by LCM_CmdResponse().
unsigned int LCM_MsgOutCfg_common | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pay, | |||
unsigned int | len | |||
) |
Callback function for the LLCMMSGOUT command.
prm | (in) User context parameter | |
qitem | (in) Queue item | |
pay | (in) Payload pointer | |
len | (in) Payload length |
References _LCM_Control::cmd_hdr_size, _LCM_MsgOutCfg_Prm::inter, LCM_LCMMSGINTER_LCMMINCTDB, LCM_LCMMSGINTER_LCMMINSSR, LCM_LCMMSGLEVEL_MSGLVLDISABLE, LCM_LCMMSGLEVEL_MSGLVLERROR, LCM_LCMMSGLEVEL_MSGLVLINFO, LCM_LCMMSGLEVEL_MSGLVLWARNING, _LCM_MsgOutCfg_Prm::lvl, _LCM_Control::msg_level_ctdb, _LCM_Control::msg_level_ssr, _LCM_Control::mtx, _LCM_MsgOutCfg_Prm::nid, and _LCM_Control::node_id.
Referenced by LCM_MsgOutCfg().
unsigned int LCM_MsgResponse_common | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pay, | |||
unsigned int | len | |||
) |
Callback function for the MsgLevel command.
prm | (in) User context parameter | |
qitem | (in) Queue item | |
pay | (in) Payload pointer | |
len | (in) Payload length |
ITC_SUCCESS | S Success | |
ITC_TASKMISS | E No entry in task table for task | |
ITC_TASKPTR | E Task pointer check failed | |
ITC_VARRNG | E Out of range variable detected |
References _LCM_MsgResponse_Prm::lvl, _LCM_MsgResponse_Prm::nid, _LCM_Control::node_id, _LCM_MsgResponse_Pkt::pay, and _LCM_MsgResponse_Prm::tid.
Referenced by LCM_MsgResponse().
unsigned int LCM_Noop_common | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pay, | |||
unsigned int | len | |||
) |
Callback function for the LCMNOOP command.
prm | (in) User context parameter | |
qitem | (in) Queue item | |
pay | (in) Payload pointer | |
len | (in) Payload length |
References _LCM_NODEPAD::bf, _LCM_Control::cmd_hdr_size, _LCM_Noop_Prm::flag, and _LCM_Control::node_id.
Referenced by LCM_Noop().
unsigned int LCM_Stats_common | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pay, | |||
unsigned int | len | |||
) |
Callback function for the SETSMON command.
prm | (in) User context parameter | |
qitem | (in) Queue item | |
pay | (in) Payload pointer | |
len | (in) Payload length |
References _LCM_Control::cmd_hdr_size, LCM_lcb, LCM_TurboReset(), _LCM_Control::mtx, _LCM_Control::node_id, _LCM_Stats_Prm::nodeId, _LCM_Stats_Prm::optionMask, _LCM_TurboReset_Pkt::pay, _LCM_TurboReset_Prm::sbf, SMON_setTimer(), _LCM_Stats_Prm::statMask, _LCM_Stats_Prm::timeLen, _LCM_Stats_Prm::timerID, _LCM_Stats_Prm::timeSample, and _LCM_LCMSECONDARY::ui.
Referenced by LCM_Stats().