Doxygen Documentation

Main Index

Package Index

Package:

CCSDS

Version:

V3-2-1

Marked:

(not marked)

Constituent:

ccsds_unit_test

Tag:

sun-gcc


Interface   Compound List   File List   Compound Members   File Members  

CCSDS_pri.h File Reference

CCSDS Packet Primary Header Format Library. More...

#include "CCSDS/CCSDS_msg.h"

Include dependency graph for CCSDS_pri.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Functions

unsigned int CCSDS_priHdrSizeof (void)
 Get the size of a CCSDS packet primary header.

unsigned int CCSDS_priHdrVerify (const void *pkt)
 Verify the prescience of a valid CCSDS packet primary header.

unsigned int CCSDS_priHdrGetLength (const void *pkt, unsigned short *length)
 Get the packet length value in a CCSDS packet primary header.

unsigned int CCSDS_priHdrGetType (const void *pkt, unsigned short *type)
 Get the packet type value in a CCSDS packet header.

unsigned int CCSDS_priHdrGetApid (const void *pkt, unsigned short *apid)
 Get the application ID value in a CCSDS packet primary header.

unsigned int CCSDS_priHdrGetSeqCount (const void *pkt, unsigned short *seqCount)
 Get the packet sequence count value in a CCSDS packet primary header.

unsigned int CCSDS_priHdrGetSeqFlags (const void *pkt, unsigned short *seqFlags)
 Get the packet grouping value in a CCSDS packet primary header.


Detailed Description

CCSDS Packet Primary Header Format Library.

Author:
D.L. Wood
This library contains functions and definitions for manipulating and examining the values in the CCSDS Version 1 Packet primary headers. The functions will work with both Telecommand Packets (uplink and SC command) and Telemetry Source Packets (downlink).

The specifications for the CCSDS Packet header formats may be found in the following documents:

Telecommand - CCSDS Telecommand Part 3 (203.0-B-1 Blue Book)
Telemetry - CCSDS Packet Telemetry (102.0-B-5 Blue Book)

The functions in this library are generic, and do not suppose any peculiar fomatting for the secondary header. Thus, they may be used to examine SC or GBM packets in mixed telemetry streams. No support is given for creating packet headers, or for examining secondary header contents. The CCSDS_priGetLength() only accounts for the size of the primary header, so the size of the secondary header is included in the returned length value.


Generated on Sun Apr 11 05:26:31 2004 by doxygen 1.3.3