GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V5-4-1
Constituent: mem     Tag: mv2304
#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 "PBS/WUT.h"
#include "MEM_control.h"
Include dependency graph for MEM_command.c:
Defines | |
#define | MEM_DUMP_PKT_PERIOD_USEC (250000) |
Period of memory dump packets, in microseconds. | |
Functions | |
unsigned int | mem_check_state (MEM_Control *mem_p) |
Verify that MEM system is in proper state to handle commands. | |
unsigned int | mem_forward_cmd (MEM_Control *mem_p, const ITC_QueueItem *qitem_p, void *pkt_p, unsigned int len, int *fwd_p) |
Common function to forward MEM commands to other nodes. | |
void | mem_fpa_free (ITC_QueueItem *qitem_p, unsigned int status, void *parm_0, void *parm_1, void *parm_2, unsigned int tx) |
ITC callback to free FPA memory. | |
unsigned int | mem_fpa_get (MEM_Control *mem_p, ITC_QueueItem **qitem_pp, char *desc) |
Allocate an ITC queue item from an FPA pool. | |
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_next_cmd (MEM_Control *mem_p) |
Send the LMEMDUMPNEXT command. | |
WUT_cb_status | mem_wut_handler (void *prm, WUT_tmr *wut) |
Callback routine for the Memory Dump wake-up timer. | |
void | mem_free_dump_pkt (ITC_QueueItem *qitem_p, unsigned int status_in, void *parm_0_in, void *parm_1_in, void *parm_2_in, unsigned int tx) |
ITC callback to free a dump telemetry packet. | |
unsigned int | mem_build_dump_data (MEM_Control *mem_p, ITC_QueueItem **qitem_pp) |
Build a memory dump data telemetry packet. | |
unsigned int | mem_send_dump_data (MEM_Control *mem_p, ITC_QueueItem *qitem_p) |
Send a memory dump data telemetry packet. | |
unsigned int | mem_handle_dump (MEM_Control *mem_p, const ITC_QueueItem *qitem_p, void *pkt_p, unsigned int len, unsigned int min_len, unsigned int fcode_orig, unsigned int tran_id) |
Common Memory Dump command handling. | |
unsigned int | MEM_LMEMDUMPMEM (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Handle the Memory Data 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) |
Handle the PCI Device Header Dump telecommand. | |
unsigned int | MEM_LMEMDUMPREG (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Handle the Processor Register Dump telecommand. | |
unsigned int | MEM_LMEMDUMPPOOL (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Handle the Memory Pool Status Dump telecommand. | |
unsigned int | MEM_LMEMDUMPSYMREL (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Handle the Memory Dump Symbol Relative telecommand. | |
unsigned int | MEM_LMEMDUMPSYMVAL (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Handle the Memory Symbol Lookup telecommand. | |
unsigned int | MEM_LMEMDUMPNEXT (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Handle the Dump-Next telecommand. | |
unsigned int | mem_handle_load (MEM_Control *mem_p) |
Common Memory Write command handling. | |
unsigned int | MEM_LMEMLOADMEM (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Handle the Memory Write command. | |
unsigned int | MEM_LMEMLOADPCI (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Handle the PCI Device Header Write telecommand. | |
unsigned int | MEM_LMEMLOADREG (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Handle the Processor Register Write telecommand. |
CVS $Id: MEM_command.c,v 1.23 2005/08/12 15:50:34 dmay Exp $
Application-level handlers for the MEM dump and load commands. These handlers simply forward the commands to a target node.
|
Build a memory dump data telemetry packet.
|
Here is the call graph for this function:
|
Verify that MEM system is in proper state to handle commands. This function checks the state of the MEM system to determine if it has been initialized.
|
|
Common function to forward MEM commands to other nodes. This function looks at a MEM telecommand packet and determines if it should be forwarded to another node (CPU). It assumes that the ID of the target node is located in the same place within all MEM telecommand packets.
|
|
ITC callback to free FPA memory.
|
|
Allocate an ITC queue item from an FPA pool.
|
|
ITC callback to free a dump telemetry packet.
|
Here is the call graph for this function:
|
Common Memory Dump command handling.
|
Here is the call graph for this function:
|
Common Memory Write command handling.
|
Here is the call graph for this function:
|
Handle the Memory Dump Cancel command. Callback function for ITC that handles the Memory Dump Cancel telecommand.
|
Here is the call graph for this function:
|
Handle the Memory Data Dump command. Callback function for ITC that handles the Memory Data Dump telecommand.
|
Here is the call graph for this function:
|
Handle the Dump-Next telecommand. Callback function for ITC that handles the Dump-Next telecommand.
|
Here is the call graph for this function:
|
Handle the PCI Device Header Dump telecommand. Callback function for ITC that handles the PCI Device Header Dump telecommand.
|
Here is the call graph for this function:
|
Handle the Memory Pool Status Dump telecommand. Callback function for ITC that handles the Memory Pool Status Dump telecommand.
|
Here is the call graph for this function:
|
Handle the Processor Register Dump telecommand. Callback function for ITC that handles the Processor Register Dump telecommand.
|
Here is the call graph for this function:
|
Handle the Memory Dump Symbol Relative telecommand. Callback function for ITC that handles the Memory Dump Symbol Relative telecommand.
|
Here is the call graph for this function:
|
Handle the Memory Symbol Lookup telecommand. Callback function for ITC that handles the Memory Symbol Lookup telecommand.
|
Here is the call graph for this function:
|
Handle the Memory Write command. Callback function for ITC that handles the Memory Write telecommand.
|
Here is the call graph for this function:
|
Handle the PCI Device Header Write telecommand. Callback function for ITC that handles the PCI Device Header Write telecommand.
|
Here is the call graph for this function:
|
Handle the Processor Register Write telecommand. Callback function for ITC that handles the Processor Register Write telecommand.
|
Here is the call graph for this function:
|
Send a memory dump data telemetry packet.
|
Here is the call graph for this function:
|
Send the LMEMDUMPNEXT command.
|
Here is the call graph for this function:
|
Send memory pool statistics telemetry.
|
Here is the call graph for this function:
|
Callback routine for the Memory Dump wake-up timer.
|
Here is the call graph for this function: