GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > FILE / V3-7-5

Constituent: file_unit_test     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

file_unit_test_swap.c File Reference

FILE package unit tests for file byte swap software. More...

#include "stdio.h"
#include "string.h"
#include "FILE/FILE_swap.h"
#include "FILE/FILE_hdr.h"
#include "MSG/MSG_pubdefs.h"
#include "file_unit_test_private.h"

Include dependency graph for file_unit_test_swap.c:

Include dependency graph

Functions

int file_swap_test_swap (void)

Variables

const unsigned short file_hdr_buf_1 []
const unsigned short file_hdr_buf_2 []
const unsigned short file_hdr_buf_swap_1 []
const unsigned short file_hdr_buf_swap_2 []
unsigned char * file_hdr_buf_0

Detailed Description

FILE package unit tests for file byte swap software.

Author:
D.L. Wood

Function Documentation

int file_swap_test_swap void   ) 
 

Test that the file_swap byte swapping functions correctly manipulate LAT file headers from external to local format.

Return values:
0 Success.
-1 Failure

Here is the call graph for this function:


Variable Documentation

file_hdr_buf_0
 

A pointer to a scratch file header buffer.

const unsigned short file_hdr_buf_1[]  ) 
 

A binary image of known file header for checking header get functions.

header checksum = 0x5c1e0679 compressed = no type = 2 key = 5 file checksum = 0xa5c41861 file length = 41,619 file time = 1,066,684,216 file name = "TEST "

const unsigned short file_hdr_buf_2[]  ) 
 

A binary image of known file header for checking header get functions.

header checksum = 0x71e50837 compressed = yes type = 1 key = 2 file checksum = 0xd575dfbf file length = 225,093 file time = 1,066,685,361 file name = "VXWRTOS "

const unsigned short file_hdr_buf_swap_1[]  ) 
 

A byte swapped binary image of known file header for checking header get functions.

const unsigned short file_hdr_buf_swap_2[]  ) 
 

A byte swapped binary image of known file header for checking header get functions.


Generated on Wed Oct 5 22:41:06 2005 by doxygen 1.3.3