GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / V9-1-2 > latc_test_embd / rad750


Interface   Data Structures   File List   Data Fields   Globals  

t_addr.c File Reference

Test the address routines. More...

#include "t_addr_p.h"
#include "AG_addr_s.h"
#include <stdio.h>

Functions

static unsigned recurse (LATC_type type, unsigned *index, LATC_addr *addr, unsigned depth)
 Iterates through the addrRng structure and tests the address conversion routines.
int t_addr (void *ptr)
 Tests the addr functions of the LATC pkg.


Detailed Description

Test the address routines.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

unsigned recurse ( LATC_type  type,
unsigned *  index,
LATC_addr addr,
unsigned  depth 
) [static]

Iterates through the addrRng structure and tests the address conversion routines.

Parameters:
type Type to test
index Pointer to index
addr Pointer to addr
depth Level of recursion
Returns:
0 or the line number of the failure

References LATC_addr::cpt.

Referenced by t_addr().

int t_addr ( void *  ptr  ) 

Tests the addr functions of the LATC pkg.

Parameters:
ptr Pointer to test specific data
Returns:
0 (pass) or the line number (fail)

References recurse().


Generated on Fri Apr 1 22:26:54 2011 by  doxygen 1.5.8