GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V5-5-0

Constituent: mem_scp     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

QMEM_dump.c File Reference

Display MEM package SSR datagrams. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "LSF/LSF.h"
#include "LSF/LSF_ids.h"
#include "MEM/QMEM.h"

Include dependency graph for QMEM_dump.c:

Include dependency graph

Data Structures

struct  _Qmem_Field
 Description of a datagram field. More...


Typedefs

typedef _Qmem_Field Qmem_Field
 Typedef for _Qmem_Field.


Functions

void qmem_dump_boilerplate (char *dgm_name)
 Display some boilerplate header information.

void qmem_dump_header (char *desc)
 Display some header information.

void qmem_interp_ctb_type (unsigned int value)
 Interpret a contribution type field value.

void qmem_interp_dec (unsigned int value)
 Interpret a field value as a decimal number.

void qmem_interp_dgm_type (unsigned int value)
 Interpret a datagram type field value.

void qmem_interp_dir (unsigned int value)
 Interpret a dir field value.

void qmem_interp_extra (unsigned int value)
 Interpret an extra field value.

void qmem_interp_lat_unit (unsigned int value)
 Interpret a lat_unit field value.

void qmem_interp_length (unsigned int value)
 Interpret a length field value.

void qmem_interp_spare (unsigned int value)
 Interpret a spare field value.

void qmem_interp_u32 (unsigned int value)
 Interpret a 32-bit field value as an unsigned number.

void qmem_show_field (unsigned char *buf_p, unsigned int start_byte, unsigned int end_byte, unsigned int start_bit, unsigned int end_bit, char *desc_p, void(*interp_p)(unsigned int val))
 Show a field from a buffer.

unsigned int qmem_dump_fields (Qmem_Field *field_p, unsigned int num_fields, unsigned char *buf_p, unsigned int start_byte)
 Dump fields from a buffer.

unsigned int qmem_dump_extra (unsigned char *buf_p, unsigned int buf_bytes, unsigned int offset)
 Dump extra data bytes.

unsigned int qmem_dump_dgm_hdr (unsigned char *buf_p, unsigned int buf_bytes, unsigned int offset)
 Dump a datagram header.

unsigned int qmem_dump_ctb_hdr (unsigned char *buf_p, unsigned int buf_bytes, unsigned int offset)
 Dump a contribution header.

unsigned int qmem_dump_desc_ctb (unsigned char *buf_p, unsigned int buf_bytes, unsigned int offset)
 Dump a memory dump description contribution body.

unsigned int qmem_dump_data_ctb (unsigned char *buf_p, unsigned int buf_bytes, unsigned int offset)
 Dump a memory dump data contribution body.

unsigned int qmem_dump_ctb (unsigned char *buf_p, unsigned int buf_bytes, unsigned int offset)
 Dump a memory dump datagram contribution.

void QMEM_dump (char *buf_p, unsigned int buf_bytes)
 Dump a MEM package datagram.


Detailed Description

Display MEM package SSR datagrams.

**  CVS $Id: QMEM_dump.c,v 1.1 2005/09/21 16:45:08 dmay Exp $
**  

These functions display the contents of SSR datagrams sent by the MEM package.


Function Documentation

void QMEM_dump char *  buf_p,
unsigned int  buf_bytes
 

Dump a MEM package datagram.

Parameters:
buf_p Pointer to buffer containing the datagram.
buf_bytes Number of valid bytes in the buffer.
Returns:
Nothing.

Here is the call graph for this function:

void qmem_dump_boilerplate char *  dgm_name  )  [static]
 

Display some boilerplate header information.

Parameters:
dgm_name Datagram description string.
Returns:
Nothing.

unsigned int qmem_dump_ctb unsigned char *  buf_p,
unsigned int  buf_bytes,
unsigned int  offset
[static]
 

Dump a memory dump datagram contribution.

Parameters:
buf_p Pointer to buffer containing the contribution.
buf_bytes Number of valid bytes within the buffer.
offset Starting byte offset within the buffer.
Returns:
Ending byte offset within the buffer.

Here is the call graph for this function:

unsigned int qmem_dump_ctb_hdr unsigned char *  buf_p,
unsigned int  buf_bytes,
unsigned int  offset
[static]
 

Dump a contribution header.

Parameters:
buf_p Pointer to buffer containing the contribution header.
buf_bytes Number of valid bytes within the buffer.
offset Starting byte offset within the buffer.
Returns:
Ending byte offset within the buffer.

Here is the call graph for this function:

unsigned int qmem_dump_data_ctb unsigned char *  buf_p,
unsigned int  buf_bytes,
unsigned int  offset
[static]
 

Dump a memory dump data contribution body.

Parameters:
buf_p Pointer to buffer containing the contribution body.
buf_bytes Number of valid bytes within the buffer.
offset Starting byte offset within the buffer.
Returns:
Ending byte offset within the buffer.

Here is the call graph for this function:

unsigned int qmem_dump_desc_ctb unsigned char *  buf_p,
unsigned int  buf_bytes,
unsigned int  offset
[static]
 

Dump a memory dump description contribution body.

Parameters:
buf_p Pointer to buffer containing the contribution body.
buf_bytes Number of valid bytes within the buffer.
offset Starting byte offset within the buffer.
Returns:
Ending byte offset within the buffer.

Here is the call graph for this function:

unsigned int qmem_dump_dgm_hdr unsigned char *  buf_p,
unsigned int  buf_bytes,
unsigned int  offset
[static]
 

Dump a datagram header.

Parameters:
buf_p Pointer to buffer containing the datagram header.
buf_bytes Number of valid bytes within the buffer.
offset Starting byte offset within the buffer.
Returns:
Ending byte offset within the buffer.

Here is the call graph for this function:

unsigned int qmem_dump_extra unsigned char *  buf_p,
unsigned int  buf_bytes,
unsigned int  offset
[static]
 

Dump extra data bytes.

Parameters:
buf_p Pointer to buffer containing the extra data.
buf_bytes Number of valid bytes within the buffer.
offset Starting byte offset within the buffer.
Returns:
Ending byte offset within the buffer.

Here is the call graph for this function:

unsigned int qmem_dump_fields Qmem_Field field_p,
unsigned int  num_fields,
unsigned char *  buf_p,
unsigned int  start_byte
[static]
 

Dump fields from a buffer.

Parameters:
field_p Pointer to first field description.
num_fields Number of fields to dump.
buf_p Pointer to buffer.
start_byte Starting offset within the buffer.
Returns:
Ending offset within the buffer.

Here is the call graph for this function:

void qmem_dump_header char *  desc  )  [static]
 

Display some header information.

Parameters:
desc Header text string.
Returns:
Nothing.

void qmem_interp_ctb_type unsigned int  value  )  [static]
 

Interpret a contribution type field value.

Parameters:
value Value to interpret.
Returns:
Nothing

void qmem_interp_dec unsigned int  value  )  [static]
 

Interpret a field value as a decimal number.

Parameters:
value Value to interpret.
Returns:
Nothing

void qmem_interp_dgm_type unsigned int  value  )  [static]
 

Interpret a datagram type field value.

Parameters:
value Value to interpret.
Returns:
Nothing

void qmem_interp_dir unsigned int  value  )  [static]
 

Interpret a dir field value.

Parameters:
value Value to interpret.
Returns:
Nothing

void qmem_interp_extra unsigned int  value  )  [static]
 

Interpret an extra field value.

Parameters:
value Value to interpret.
Returns:
Nothing

void qmem_interp_lat_unit unsigned int  value  )  [static]
 

Interpret a lat_unit field value.

Parameters:
value Value to interpret.
Returns:
Nothing

void qmem_interp_length unsigned int  value  )  [static]
 

Interpret a length field value.

Parameters:
value Value to interpret.
Returns:
Nothing

void qmem_interp_spare unsigned int  value  )  [static]
 

Interpret a spare field value.

Parameters:
value Value to interpret.
Returns:
Nothing

void qmem_interp_u32 unsigned int  value  )  [static]
 

Interpret a 32-bit field value as an unsigned number.

Parameters:
value Value to interpret.
Returns:
Nothing

void qmem_show_field unsigned char *  buf_p,
unsigned int  start_byte,
unsigned int  end_byte,
unsigned int  start_bit,
unsigned int  end_bit,
char *  desc_p,
void(*  interp_p)(unsigned int val)
[static]
 

Show a field from a buffer.

Parameters:
buf_p Pointer to buffer.
start_byte First byte of the value within the buffer.
end_byte Last byte of the value within the buffer.
start_bit First bit of the field within the value.
end_bit Last bit of the field within the value.
desc_p Pointer to field description string.
interp_p Pointer to field interpretation function.
Returns:
Nothing.


Generated on Sat Sep 24 21:14:11 2005 by doxygen 1.3.3