GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EBC / V0-1-5

Constituent: ebc_scp     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

EBC_dump.c File Reference

Display EBC telemetry. More...

#include <stdio.h>
#include "CCSDS/CCSDS_pkt.h"
#include "EBC/EBC_tlmdefs.h"
#include "ITC/ITC_dump.h"
#include "PBS/SPIN.h"

Include dependency graph for EBC_dump.c:


Data Structures

struct  _Ebc_Field
 Description of a telemetry packet field. More...

Typedefs

typedef _Ebc_Field Ebc_Field
 Typedef for _Ebc_Field.

Functions

int EBC_setDisplayLevel (int level)
 Set the verbosity level of the EBC telemetry display.
static void ebc_dump_boilerplate (char *pkt_name)
 Display some boilerplate header information.
static void ebc_interp_dec_32 (unsigned int value, char *desc)
 Interpret a 32-bit decimal value.
static void ebc_interp_byte_count (unsigned int value)
 Interpret a byte count value.
static void ebc_interp_error_count (unsigned int value)
 Interpret an error count value.
static void ebc_interp_file_upl_state (unsigned int value)
 Interpret a file upload state value.
static void ebc_interp_intr_count (unsigned int value)
 Interpret an interrupt count value.
static void ebc_interp_pkt_count (unsigned int value)
 Interpret a packet count value.
static void ebc_interp_spare (unsigned int value)
 Interpret a spare field value.
static void ebc_show_field (unsigned char *pay_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 telemetry packet.
static unsigned int ebc_dump_fields (Ebc_Field *field_p, unsigned int num_fields, unsigned char *pkt_p, unsigned int start_byte)
 Dump telemetry packet fields.
void EBC_dump_tlm (unsigned char *pkt_p)
 Display an EBC telemetry packet.
unsigned int EBC_dispatch_tlm (void *prm, unsigned char *pkt_p)
 Display an EBC telemetry packet.

Variables

int EBC_display_level = 1
 The verbosity level of the EBC telemetry display.

Detailed Description

Display EBC telemetry.

**  CVS $Id: EBC_dump.c,v 1.1.1.1 2005/10/07 16:28:19 dmay Exp $
**  

Function Documentation

unsigned int EBC_dispatch_tlm void *  prm,
unsigned char *  pkt_p
 

Display an EBC telemetry packet.

Parameters:
prm Context parameter (unused).
pkt_p Pointer to CCSDS header of the telemetry packet.
Returns:
MSG code.

void ebc_dump_boilerplate char *  pkt_name  )  [static]
 

Display some boilerplate header information.

Parameters:
pkt_name Packet description string.
Returns:
Nothing.

unsigned int ebc_dump_fields Ebc_Field field_p,
unsigned int  num_fields,
unsigned char *  pkt_p,
unsigned int  start_byte
[static]
 

Dump telemetry packet fields.

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

void EBC_dump_tlm unsigned char *  pkt_p  ) 
 

Display an EBC telemetry packet.

Parameters:
pkt_p Pointer to telemetry packet.
Returns:
Nothing.

void ebc_interp_byte_count unsigned int  value  )  [static]
 

Interpret a byte count value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void ebc_interp_dec_32 unsigned int  value,
char *  desc
[static]
 

Interpret a 32-bit decimal value.

Parameters:
value Value to interpret.
desc Description string for the value.
Returns:
Nothing.

void ebc_interp_error_count unsigned int  value  )  [static]
 

Interpret an error count value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void ebc_interp_file_upl_state unsigned int  value  )  [static]
 

Interpret a file upload state value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void ebc_interp_intr_count unsigned int  value  )  [static]
 

Interpret an interrupt count value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void ebc_interp_pkt_count unsigned int  value  )  [static]
 

Interpret a packet count value.

Parameters:
value Value to interpret.
Returns:
Nothing.

void ebc_interp_spare unsigned int  value  )  [static]
 

Interpret a spare field value.

Parameters:
value Value to interpret.
Returns:
Nothing

int EBC_setDisplayLevel int  level  ) 
 

Set the verbosity level of the EBC telemetry display.

Parameters:
level New verbosity level - set higher to display more often.
Returns:
Previous verbosity level.

void ebc_show_field unsigned char *  pay_p,
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 telemetry packet.

Parameters:
pay_p Pointer to packet 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.


Variable Documentation

EBC_display_level = 1
 

The verbosity level of the EBC telemetry display.

This variable determines how often EBC telemetry packets are displayed. The higher the value, the more often the packets are displayed. Use EBC_setDisplayLevel() to change this value.


Generated on Tue Nov 7 04:18:07 2006 by  doxygen 1.4.4