GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCM / dev > lcm_siu / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

LCM_cmd_common.c File Reference

LCM common telecommand handlers. More...

#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.


Detailed Description

LCM common telecommand handlers.

CVS $Id: LCM_cmd_common.c,v 1.13 2011/03/29 21:59:33 apw Exp $
Author:
D.Wood

D.May

A.P.Waite


Function Documentation

unsigned int LCM_CmdResponse_common ( void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len 
)

Callback function for the CmdResponse command.

Parameters:
prm (in) User context parameter
qitem (in) Queue item
pay (in) Payload pointer
len (in) Payload length
Return values:
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 
)

unsigned int LCM_MsgResponse_common ( void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len 
)

Callback function for the MsgLevel command.

Parameters:
prm (in) User context parameter
qitem (in) Queue item
pay (in) Payload pointer
len (in) Payload length
Return values:
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.

Parameters:
prm (in) User context parameter
qitem (in) Queue item
pay (in) Payload pointer
len (in) Payload length
Returns:

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.

Parameters:
prm (in) User context parameter
qitem (in) Queue item
pay (in) Payload pointer
len (in) Payload length
Returns:

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().


Generated on Wed Mar 30 16:05:43 2011 by  doxygen 1.5.8