GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > CCSDS / V3-4-0

Constituent: ccsds_swap     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

CCSDS_swap.h File Reference

Byte swap library for CCSDS data structures. More...

#include "CCSDS/CCSDS_pkt.h"

Include dependency graph for CCSDS_swap.h:

Include dependency graph

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

Included by dependency graph

Functions

void CCSDS_swapPktHdr (const void *inHdr, void *outHdr, CCSDS_Pkt_Type type)
 Byte swap a LAT CCSDS packet header.

void CCSDS_swapPriHdr (const void *inHdr, void *outHdr)
 Byte swap a CCSDS packet primary header.


Detailed Description

Byte swap library for CCSDS data structures.

Author:
D.L. Wood
The CCSDS native format is big-endian. This library allows users to insert and extract fields from these structures in native format on little-endian machines. The functions allow for machine-independent code.

Function Documentation

void CCSDS_swapPktHdr const void *  inHdr,
void *  outHdr,
CCSDS_Pkt_Type  type
 

Byte swap a LAT CCSDS packet header.

Byte swaps a CCSDS packet header for little-endian machines.

Parameters:
inHdr A pointer to the input packet header.
outHdr A pointer to the output packet header buffer.
type The packet type (CCSDS_PKT_TYPE_CMD or CCSDS_PKT_TYPE_TELEM).

Here is the call graph for this function:

void CCSDS_swapPriHdr const void *  inHdr,
void *  outHdr
 

Byte swap a CCSDS packet primary header.

Byte swaps a CCSDS packet primary header for little-endian machines.

Parameters:
inHdr A pointer to the input packet header.
outHdr A pointer to the output packet header buffer.


Generated on Sun Jul 17 05:45:17 2005 by doxygen 1.3.3