GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBC / V4-12-1

Constituent: pbc_scp     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

PBC_dump.c File Reference

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

#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MSG/MSG_pubdefs.h"
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_dump.h"
#include "ITC/ITC_pubdefs.h"
#include "PBC/PBC_apid.h"
#include "PBC/PBC_dump.h"
#include "PBC/PBC_msgs.h"
#include "PBC/PBC_tlmdefs.h"

Include dependency graph for PBC_dump.c:


Data Structures

struct  _Pbc_House_Field
 Description of a boot housekeeping telemetry field. More...

Typedefs

typedef _Pbc_House_Field Pbc_House_Field
 Typedef for _Pbc_House_Field.

Functions

int PBC_setDumpDisplayLimit (int limit)
 Set the max number of words to display from a single dump.
static const char * pbc_interp_unit (unsigned int value)
 Interpret a LAT unit identifier value.
static void pbc_interp_yes_no (unsigned int value)
 Interpret a value as 'yes' or 'no'.
static void pbc_interp_enabled (unsigned int value)
 Interpret a value as 'enabled' or 'disabled'.
static void pbc_interp_failed (unsigned int value)
 Interpret a value as 'failed' or 'passed'.
static void pbc_interp_boot_mode (unsigned int value)
 Interpret a softwareBootMode value.
static void pbc_interp_qerr_count (unsigned int value)
 Interpret a queuedErrorCount value.
static void pbc_interp_err_word (unsigned int value)
 Interpret an error word value.
static void pbc_interp_hex (unsigned int value)
 Interpret a hex value.
static void pbc_interp_upl_state (unsigned int value)
 Interpret a fileUploadState value.
static void pbc_interp_boot_type (unsigned int value)
 Interpret a bootType value.
static void pbc_interp_dump_addr (unsigned int value)
 Interpret a dump address value.
static void pbc_interp_spare (unsigned int value)
 Interpret a spare value.
static void pbc_interp_source (unsigned int value)
 Interpret an SBC source value.
static void pbc_interp_reset_cause (unsigned int value)
 Interpret a reset cause value.
static void pbc_interp_reset_source (unsigned int value)
 Interpret a reset source value.
static void pbc_interp_ram_test (unsigned int value)
 Interpret a RAM test value.
static void pbc_interp_byte_sel (unsigned int value)
 Interpret a byte selection value.
static void pbc_interp_exc_vector (unsigned int value)
 Interpret an exception vector value.
static void pbc_interp_test_result (unsigned int value)
 Interpret a RAM test result value.
static void pbc_dump_boilerplate (char *pkt_name)
 Dump some boilerplate header information.
static unsigned int pbc_dump_unit (unsigned char *pay, unsigned int offset)
 Dump the LAT unit value from a packet.
static unsigned int pbc_dump_padding (unsigned char *pay, unsigned int offset, unsigned int num_bytes)
 Dump the padding field from a packet.
static void pbc_show_house_field (unsigned char *new_pay, unsigned char *prev_pay, 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 boot housekeeping telemetry value.
static unsigned int pbc_dump_house_fields (Pbc_House_Field *field_p, unsigned int num_fields, unsigned char *new_pkt, unsigned char *prev_pkt, unsigned int start_byte)
 Dump boot housekeeping telemetry fields.
void PBC_dumpHouse (char *pkt, char *prev_pkt)
 Dump boot housekeeping telemetry.
void PBC_dumpHouseBgLow (char *pkt, char *prev_pkt)
 Dump first 64 bytes of background dump data.
void PBC_dumpHouseBgHigh (char *pkt, char *prev_pkt)
 Dump last 64 bytes of background dump data.
void PBC_dumpHouseData (char *pkt)
 Dump the memory data portion of boot housekeeping telemetry.
void PBC_dumpBoot (char *pkt)
 Dump the Boot RTOS Execute command.
void PBC_dumpErrDump (char *pkt)
 Dump the Boot Error Dump command.
void PBC_dumpReset (char *pkt)
 Dump the Boot Reset command.
void PBC_dumpStart (char *pkt)
 Dump the Boot Start command.

Variables

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

Detailed Description

Dumps the contents of PBC command and telemetry packets.

  CVS $Id: PBC_dump.c,v 1.18 2006/04/20 16:24:11 dmay Exp $
  

Function Documentation

void pbc_dump_boilerplate char *  pkt_name  )  [static]
 

Dump some boilerplate header information.

Dumps a boilerplate header for the payload portion of a packet.

Parameters:
pkt_name Pointer to name for the information in the packet.
Returns:
Nothing.

unsigned int pbc_dump_house_fields Pbc_House_Field field_p,
unsigned int  num_fields,
unsigned char *  new_pkt,
unsigned char *  prev_pkt,
unsigned int  start_byte
[static]
 

Dump boot housekeeping telemetry fields.

Parameters:
field_p Pointer to first telemetry field description.
num_fields Number of fields to dump.
new_pkt Pointer to new telemetry packet.
prev_pkt Pointer to previous telemetry packet.
start_byte Starting offset within the telemetry packet.
Returns:
Ending offset within the telemetry packet.

unsigned int pbc_dump_padding unsigned char *  pay,
unsigned int  offset,
unsigned int  num_bytes
[static]
 

Dump the padding field from a packet.

Dumps the padding field from a packet.

Parameters:
pay Pointer to CCSDS packet.
offset Starting offset of the padding field.
num_bytes Length of the padding field, in bytes.
Returns:
Length of the padding field, in bytes.

unsigned int pbc_dump_unit unsigned char *  pay,
unsigned int  offset
[static]
 

Dump the LAT unit value from a packet.

Dumps the LAT unit value from a packet.

Parameters:
pay Pointer to CCSDS packet.
offset Starting offset of the LAT-unit field.
Returns:
Length of the LAT-unit field, in bytes.

void PBC_dumpBoot char *  pkt  ) 
 

Dump the Boot RTOS Execute command.

Dumps the contents of a Boot RTOS Execute command packet. The fields of the payload are assumed to be in native byte order.

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

void PBC_dumpErrDump char *  pkt  ) 
 

Dump the Boot Error Dump command.

Dumps the contents of a Boot Error Dump command packet. The fields of the payload are assumed to be in native byte order.

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

void PBC_dumpHouse char *  pkt,
char *  prev_pkt
 

Dump boot housekeeping telemetry.

Dumps the contents of a Boot Housekeeping telemetry packet. The fields of the payload are assumed to be in native byte order.

Parameters:
pkt Pointer to CCSDS packet.
prev_pkt Pointer to previous boot hkp telemetry CCSDS packet.
Returns:
Nothing.

void PBC_dumpHouseBgHigh char *  pkt,
char *  prev_pkt
 

Dump last 64 bytes of background dump data.

Dumps the contents of the last 64 bytes of the background dump data found in the Boot Housekeeping telemetry packet. The data is assumed to be in native byte order.

Parameters:
pkt Pointer to CCSDS packet.
prev_pkt Pointer to previous boot hkp telemetry CCSDS packet.
Returns:
Nothing.

void PBC_dumpHouseBgLow char *  pkt,
char *  prev_pkt
 

Dump first 64 bytes of background dump data.

Dumps the contents of the first 64 bytes of the background dump data found in the Boot Housekeeping telemetry packet. The data is assumed to be in native byte order.

Parameters:
pkt Pointer to CCSDS packet.
prev_pkt Pointer to previous boot hkp telemetry CCSDS packet.
Returns:
Nothing.

void PBC_dumpHouseData char *  pkt  ) 
 

Dump the memory data portion of boot housekeeping telemetry.

Dumps the memory data dump portion of a boot housekeeping telemetry packet.

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

void PBC_dumpReset char *  pkt  ) 
 

Dump the Boot Reset command.

Dumps the contents of a Boot Reset command packet. The fields of the payload are assumed to be in native byte order.

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

void PBC_dumpStart char *  pkt  ) 
 

Dump the Boot Start command.

Dumps the contents of a Boot Start command packet. The fields of the payload are assumed to be in native byte order.

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

void pbc_interp_boot_mode unsigned int  value  )  [static]
 

Interpret a softwareBootMode value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_boot_type unsigned int  value  )  [static]
 

Interpret a bootType value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_byte_sel unsigned int  value  )  [static]
 

Interpret a byte selection value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_dump_addr unsigned int  value  )  [static]
 

Interpret a dump address value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_enabled unsigned int  value  )  [static]
 

Interpret a value as 'enabled' or 'disabled'.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_err_word unsigned int  value  )  [static]
 

Interpret an error word value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_exc_vector unsigned int  value  )  [static]
 

Interpret an exception vector value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_failed unsigned int  value  )  [static]
 

Interpret a value as 'failed' or 'passed'.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_hex unsigned int  value  )  [static]
 

Interpret a hex value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_qerr_count unsigned int  value  )  [static]
 

Interpret a queuedErrorCount value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_ram_test unsigned int  value  )  [static]
 

Interpret a RAM test value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_reset_cause unsigned int  value  )  [static]
 

Interpret a reset cause value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_reset_source unsigned int  value  )  [static]
 

Interpret a reset source value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_source unsigned int  value  )  [static]
 

Interpret an SBC source value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_spare unsigned int  value  )  [static]
 

Interpret a spare value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_test_result unsigned int  value  )  [static]
 

Interpret a RAM test result value.

Parameters:
value Value to interpret.
Returns:
Nothing.

const char * pbc_interp_unit unsigned int  value  )  [static]
 

Interpret a LAT unit identifier value.

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

void pbc_interp_upl_state unsigned int  value  )  [static]
 

Interpret a fileUploadState value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void pbc_interp_yes_no unsigned int  value  )  [static]
 

Interpret a value as 'yes' or 'no'.

Parameters:
value Value to interpret.
Returns:
Nothing.

int PBC_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.

void pbc_show_house_field unsigned char *  new_pay,
unsigned char *  prev_pay,
unsigned int  start_byte,
unsigned int  end_byte,
unsigned int  start_bit,
unsigned int  end_bit,
char *  desc_p,
void(*)(unsigned int val)  interp_p
[static]
 

Show a field from a boot housekeeping telemetry value.

Parameters:
new_pay Pointer to payload buffer.
prev_pay Pointer to previous payload buffer.
start_byte First byte of the value within the packet.
end_byte Last byte of the value within the packet.
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 Mon Aug 7 22:01:58 2006 by  doxygen 1.4.4