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

Constituent: mem_scp     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

MEM_dump_cmd.c File Reference

Dumps the contents of MEM command and telemetry packets. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "PBI/Endianness.h"
#include "MSG/MSG_pubdefs.h"
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_dump.h"
#include "ITC/ITC_pubdefs.h"
#include "MEM/MEM_cmddefs.h"
#include "MEM/MEM_dump_cmd.h"
#include "MEM/MEM_tlmdefs.h"
#include "MEM/MEM_msgs.h"
#include "PBS/BSWP.ih"
#include "CLI/CLI_pubdefs.h"

Include dependency graph for MEM_dump_cmd.c:

Include dependency graph

Data Structures

struct  _MEM_CmdParm
 MEM command parameter definition. More...


Typedefs

typedef char(* MEM_InterpCB )(unsigned int value)
 MEM command parameter interpretation callback pointer.

typedef _MEM_CmdParm MEM_CmdParm
 Typedef for _MEM_CmdParm.


Functions

int MEM_setDumpDisplayLimit (int limit)
 Set the max number of words to display from a single dump.

const char * mem_interp_unit (unsigned int value)
 Interpret a LAT unit identifier value.

const char * mem_interp_pool (unsigned int value)
 Interpret a Pool ID value.

void MEM_dumpHouse (char *pkt)
 Dump the MEM portion of the boot housekeeping telemetry.

void MEM_dumpDumpTlm (char *pkt)
 Dump the MEM DUMP telemetry.

void MEM_dumpPoolData (char *pkt)
 Dump the Memory Pool Statistics telemetry.

unsigned int MEM_dispatchTlm (void *prm, unsigned char *pkt)
 Dispatch routine for arriving housekeeping telemetry.

unsigned int MEM_dispatchDumpTlm (void *prm, unsigned char *pkt)
 Dispatch routine for arriving dump data telemetry.

unsigned int MEM_dispatchPoolDataTlm (void *prm, unsigned char *pkt)
 Dispatch routine for arriving memory pool data telemetry.

void MEM_dumpCancel (char *pkt)
 Dump the Memory Dump Cancel command.

void MEM_dumpDump (char *pkt)
 Dump the Memory Data Dump command.

void MEM_dumpLoad (char *pkt)
 Dump the Memory Write command.

void MEM_dumpPool (char *pkt)
 Dump the Memory Dump Pool Statistics command.

unsigned int MEM_setDumpDisplayLimit_cli (CLI_Control *cli, void *prm)
 CLI callback for the "MEM_setDumpDisplayLimit" command.

unsigned int MEM_addDumpSyntax (CLI_Syntax *syntax)
 Add MEM dump commands to the command-line syntax.


Variables

int MEM_dumpDisplayLimit = 256
 The maximum number of words to display from a single dump.


Detailed Description

Dumps the contents of MEM command and telemetry packets.

  CVS $Id: MEM_dump_cmd.c,v 1.1 2004/11/19 19:29:42 dmay Exp $
  

Function Documentation

unsigned int MEM_addDumpSyntax CLI_Syntax *  syntax  ) 
 

Add MEM dump commands to the command-line syntax.

Parameters:
syntax Syntax handle.
Returns:
MSG code.

Here is the call graph for this function:

unsigned int MEM_dispatchDumpTlm void *  prm,
unsigned char *  pkt
 

Dispatch routine for arriving dump data telemetry.

Parameters:
prm (in) User context parameter
pkt (in) The CTDB received telemetry
Return values:
MEM_SUCCESS Success
MEM_GENERROR Failure

Here is the call graph for this function:

unsigned int MEM_dispatchPoolDataTlm void *  prm,
unsigned char *  pkt
 

Dispatch routine for arriving memory pool data telemetry.

Parameters:
prm User context parameter (unused).
pkt Pointer to CCSDS packet.
Returns:
MSG code.

Here is the call graph for this function:

unsigned int MEM_dispatchTlm void *  prm,
unsigned char *  pkt
 

Dispatch routine for arriving housekeeping telemetry.

Parameters:
prm (in) User context parameter
pkt (in) The CTDB received telemetry
Return values:
MEM_SUCCESS Success
MEM_GENERROR Failure

Here is the call graph for this function:

void MEM_dumpPool char *  pkt  ) 
 

Dump the Memory Dump Pool Statistics command.

Parameters:
pkt Pointer to CCSDS packet.
Returns:
Nothing.

Here is the call graph for this function:

void MEM_dumpPoolData char *  pkt  ) 
 

Dump the Memory Pool Statistics telemetry.

Parameters:
pkt Pointer to CCSDS packet.
Returns:
Nothing.

Here is the call graph for this function:

const char * mem_interp_pool unsigned int  value  )  [static]
 

Interpret a Pool ID value.

Parameters:
value Pool ID value.
Returns:
Pointer to description string.

const char * mem_interp_unit unsigned int  value  )  [static]
 

Interpret a LAT unit identifier value.

Parameters:
value LAT unit identifier value.
Returns:
Pointer to description string.

int MEM_setDumpDisplayLimit int  limit  ) 
 

Set the max number of words to display from a single dump.

Parameters:
limit Max number of words to display.
Returns:
Previous limit value.

unsigned int MEM_setDumpDisplayLimit_cli CLI_Control *  cli,
void *  prm
[static]
 

CLI callback for the "MEM_setDumpDisplayLimit" command.

Parameters:
cli CLI control handle.
prm User parameter (unused).
Return values:
0 Success.
Nonzero Failure.

Here is the call graph for this function:


Generated on Mon Dec 13 07:33:13 2004 by doxygen 1.3.3