GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V3-1-0

Constituent: mem     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

MEM_command.c File Reference

MEM application-level command handlers. More...

#include <string.h>
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_pubdefs.h"
#include "MSG/MSG_pubdefs.h"
#include "MEM/MEM_apid.h"
#include "MEM/MEM_cmddefs.h"
#include "MEM/MEM_dump.h"
#include "MEM/MEM_load.h"
#include "MEM/MEM_msgs.h"
#include "MEM/MEM_tlmdefs.h"
#include "PBS/MBA.h"
#include "MEM_control.h"

Include dependency graph for MEM_command.c:

Include dependency graph

Defines

#define MEM_DUMP_PKT_PERIOD_USEC   (250000)
 Period of memory dump packets, in microseconds.


Functions

unsigned int mem_update_stats (MEM_Control *mem_p, unsigned int status, MEM_CmdStats *stats_p, int forward)
 Common routine to update MEM command statistics.

unsigned int mem_forward_cmd (void *pay_in, unsigned int len, ITC_NodeID tgt_nid, ITC_TaskID tgt_tid)
 Common routine to forward boot commands to other nodes.

unsigned int mem_send_pool_data (MEM_Control *mem_p, unsigned int pool_id, unsigned int tran_id)
 Send memory pool statistics telemetry.

unsigned int mem_send_dump_data (MEM_Control *mem_p)
 Send memory dump data telemetry.

WUT_cb_status mem_wut_handler (void *prm, WUT_tmr *wut)
 Callback routine for the Memory Dump wake-up timer.

unsigned int MEM_LMEMDUMPMEM (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the Memory Dump command.

unsigned int MEM_LMEMDUMPCANCEL (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the Memory Dump Cancel command.

unsigned int MEM_LMEMDUMPPCI (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 ITC callback for the PCI Header Dump telecommand.

unsigned int MEM_LMEMDUMPREG (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 ITC callback for the Processor Register Dump telecommand.

unsigned int MEM_LMEMDUMPPOOL (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 ITC callback for the Memory Pool Statistics Dump telecommand.

unsigned int MEM_LMEMDUMPNEXT (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 ITC callback for the Dump-Next telecommand.

unsigned int MEM_LMEMLOADMEM (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the Memory Load command.

unsigned int MEM_LMEMLOADPCI (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 ITC callback for the PCI Header Write telecommand.

unsigned int MEM_LMEMLOADREG (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 ITC callback for the Processor Register Write telecommand.


Detailed Description

MEM application-level command handlers.

    CVS $Id: MEM_command.c,v 1.3 2004/11/19 22:10:59 dmay Exp $
    

Application-level handlers for the MEM dump and load commands. These handlers simply forward the commands to a target node.


Function Documentation

unsigned int mem_forward_cmd void *  pay_in,
unsigned int  len,
ITC_NodeID  tgt_nid,
ITC_TaskID  tgt_tid
[static]
 

Common routine to forward boot commands to other nodes.

Parameters:
pay_in Pointer to incoming command payload.
len Length of the incoming command payload, in bytes.
tgt_nid Target node ID.
tgt_tid Target task ID.
Returns:
MSG code.

unsigned int MEM_LMEMDUMPCANCEL void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the Memory Dump Cancel command.

Parameters:
prm Pointer to MEM control block.
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

Here is the call graph for this function:

unsigned int MEM_LMEMDUMPMEM void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the Memory Dump command.

Parameters:
prm Pointer to MEM control block.
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

Here is the call graph for this function:

unsigned int MEM_LMEMDUMPNEXT void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

ITC callback for the Dump-Next telecommand.

Callback function for ITC that handles the Dump-Next telecommand.

Parameters:
prm Pointer to MEM control block.
qitem Pointer to queue item from ITC.
pay Pointer to CCSDS packet containing the command.
len Length of the CCSDS packet, in bytes.
Returns:
A MEM MSG code.

Here is the call graph for this function:

unsigned int MEM_LMEMDUMPPCI void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

ITC callback for the PCI Header Dump telecommand.

Callback function for ITC that handles the PCI Header Dump telecommand.

Parameters:
prm Pointer to MEM control block.
qitem Pointer to queue item from ITC.
pay Pointer to CCSDS packet containing the command.
len Length of the CCSDS packet, in bytes.
Returns:
A MEM MSG code.

Here is the call graph for this function:

unsigned int MEM_LMEMDUMPPOOL void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

ITC callback for the Memory Pool Statistics Dump telecommand.

Callback function for ITC that handles the Memory Pool Statistics Dump telecommand.

Parameters:
prm Pointer to MEM control block.
qitem Pointer to queue item from ITC.
pay Pointer to CCSDS packet containing the command.
len Length of the CCSDS packet, in bytes.
Returns:
A MEM MSG code.

Here is the call graph for this function:

unsigned int MEM_LMEMDUMPREG void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

ITC callback for the Processor Register Dump telecommand.

Callback function for ITC that handles the Processor Register Dump telecommand.

Parameters:
prm Pointer to MEM control block.
qitem Pointer to queue item from ITC.
pay Pointer to CCSDS packet containing the command.
len Length of the CCSDS packet, in bytes.
Returns:
A MEM MSG code.

Here is the call graph for this function:

unsigned int MEM_LMEMLOADMEM void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the Memory Load command.

Parameters:
prm Pointer to MEM control block.
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

Here is the call graph for this function:

unsigned int MEM_LMEMLOADPCI void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

ITC callback for the PCI Header Write telecommand.

Callback function for ITC that handles the PCI Header Write telecommand.

Parameters:
prm Pointer to MEM control block.
qitem Pointer to queue item from ITC.
pay Pointer to CCSDS packet containing the command.
len Length of the CCSDS packet, in bytes.
Returns:
A MEM MSG code.

Here is the call graph for this function:

unsigned int MEM_LMEMLOADREG void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

ITC callback for the Processor Register Write telecommand.

Callback function for ITC that handles the Processor Register Write telecommand.

Parameters:
prm Pointer to MEM control block.
qitem Pointer to queue item from ITC.
pay Pointer to CCSDS packet containing the command.
len Length of the CCSDS packet, in bytes.
Returns:
A MEM MSG code.

Here is the call graph for this function:

unsigned int mem_send_dump_data MEM_Control mem_p  )  [static]
 

Send memory dump data telemetry.

Parameters:
mem_p Pointer to MEM control block.
Returns:
MSG code.

Here is the call graph for this function:

unsigned int mem_send_pool_data MEM_Control mem_p,
unsigned int  pool_id,
unsigned int  tran_id
[static]
 

Send memory pool statistics telemetry.

Parameters:
mem_p Pointer to MEM control block.
pool_id ID of the pool to query.
tran_id Transaction ID to send in the telemetry.
Returns:
MSG code.

unsigned int mem_update_stats MEM_Control mem_p,
unsigned int  status,
MEM_CmdStats stats_p,
int  forward
[static]
 

Common routine to update MEM command statistics.

Parameters:
mem_p Pointer to MEM control block.
status Status MSG code for the command.
stats_p Pointer to command status block to be updated.
forward Flag to indicate that command was forwarded.
Returns:
MSG code.

WUT_cb_status mem_wut_handler void *  prm,
WUT_tmr *  wut
[static]
 

Callback routine for the Memory Dump wake-up timer.

Parameters:
prm Pointer to MEM control block.
wut Pointer to wake-up timer.
Returns:
Wake-up timer callback status.


Generated on Mon Dec 13 07:31:17 2004 by doxygen 1.3.3