GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSD / dev > qsdccsds / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

CCSDS_telemetryPrint.c File Reference

Print routines for CCSDS telemetry packets. More...

#include <QSD/CCSDS_telemetryPrint.h>
#include <QSD/CCSDS_telemetry.h>
#include <stdio.h>
#include <time.h>
#include <sys/time.h>

Defines

#define SA_UTB_OFFSET   0x3a4fc880

Functions

void CCSDS_telemetryPrintTitle (void)
 Prints the telemetry title line. Generally this is printed once, then followed by a series of packet header information lines.
static void print_header (const CCSDS_telemetry *packet)
static void print_time (const CCSDS_telemetry *packet)
void CCSDS_telemetryPrint (const CCSDS_telemetry *packet, unsigned int options)
 Used to print the information about a CCSDS packet.
void CCSDS_telemetryPrintStatus (const CCSDS_telemetry *packet, unsigned int status)
 Reports on the verification status.


Detailed Description

Print routines for CCSDS telemetry packets.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: CCSDS_telemetryPrint.c,v 1.3 2011/03/26 21:06:58 russell Exp $

Function Documentation

void CCSDS_telemetryPrint ( const CCSDS_telemetry packet,
unsigned int  options 
)

Used to print the information about a CCSDS packet.

Parameters:
packet The CCSDS packet.
options Print options presented as the OR of the values found in CCSDS_TELEMETRY_PRINT_OPTS_M
See also:
CCSDS_TELEMETRY_PRINT_OPTS_M
Typically one would specify CCSDS_TELEMETRY_PRINT_OPTS_M_TITLE on the the first of a series of packets along with CCSDS_TELEMETRY_PRINT_OPTS_M_HEADER and/or CCSDS_TELEMETRY_PRINT_OPTS_TIME. Subsequent calls would omit the TITLE option.

This will produce a series of columns, this the TITLE line providing the name of the information in each column.

References CCSDS_TELEMETRY_PRINT_OPTS_M_HEADER, CCSDS_TELEMETRY_PRINT_OPTS_M_TIME, CCSDS_TELEMETRY_PRINT_OPTS_M_TITLE, and CCSDS_telemetryPrintTitle().

Referenced by CCSDS_istreamHdrPrint(), and CCSDS_istreamPktCheck().

void CCSDS_telemetryPrintStatus ( const CCSDS_telemetry packet,
unsigned int  status 
)

Reports on the verification status.

Returns:
The input status
Parameters:
packet The telemetry packet
status The verification status

References CCSDS__telemetrySecondaryFlag(), CCSDS__telemetryType(), CCSDS__telemetryVersion(), CCSDS_HEADER_TYPE_K_TELEMETRY, CCSDS_TELEMETRY_VERSION_K_EXPECTED, CCSDS_VERIFY_ERR_M_SECONDARY, CCSDS_VERIFY_ERR_M_TYPE, and CCSDS_VERIFY_ERR_M_VERSION.

void CCSDS_telemetryPrintTitle ( void   ) 

Prints the telemetry title line. Generally this is printed once, then followed by a series of packet header information lines.

This routine is what is called when CCSDS_telemetryPrint is called with the CCSDS_TELEMETRY_PRINT_OPTS_M_TITLE option selected. It is broken out for convenience.

Referenced by CCSDS_telemetryPrint().


Generated on Thu Sep 27 16:31:57 2012 by  doxygen 1.5.8