GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> RIM / V3-1-2 > trim / rad750


Interface   Data Structures   File List   Data Fields   Globals  

test_rim_p.h File Reference

Private definitions for the RIM tests. More...

#include <RIM/RIM.h>

Functions

RIMnewRIM (void)
 Allocate and construct a RIM structure.
RIM_mapnewRIMmap (void)
 Allocate and construct a RIM_map structure.
int test_rim (const char *testname)
 Iterate over a set of unit tests.
unsigned t_data (void *param)
 Test the functions defined in RIM/lrd.h.
unsigned t_latp (void *param)
 Test the RIM latp functions.
unsigned t_lrd (void *param)
 Test the functions defined in RIM/lrd.h.
unsigned t_map (void *param)
 Test the functions defined in RIM/lrd.h.
unsigned t_record (void *param)
unsigned t_rim (void *param)
 Test the functions defined in RIM/lrd.h.


Detailed Description

Private definitions for the RIM tests.

Author:
James Swain & Owen Saxton
$Id: test_rim_p.h,v 1.3 2011/03/27 06:42:30 saxton Exp $

Function Documentation

RIM* newRIM ( void   ) 

Allocate and construct a RIM structure.

Returns:
Pointer to an allocated and constructure RIM structure

Referenced by t_latp(), and t_rim().

RIM_map* newRIMmap ( void   ) 

Allocate and construct a RIM_map structure.

Returns:
Pointer to an allocated and constructure RIM_map structure

Referenced by t_latp(), t_map(), and t_rim().

unsigned t_data ( void *  param  ) 

Test the functions defined in RIM/lrd.h.

Parameters:
param Opaque handle for the test control structure (if any)
Returns:
Line number of the first error, or 0 if the test is successful

References getCrc(), getTam(), getTfe(), setCrc(), setTam(), setTfe(), and sizeofCpt().

unsigned t_latp ( void *  param  ) 

Test the RIM latp functions.

Parameters:
param Pointer to the test control structure, if any
Returns:
Line number of the first error, or 0 if the test is successful

References LATC_newDecode(), LATC_newLoad(), LATC_newRead(), newRIM(), newRIMmap(), and SET_FIRST_ERROR.

unsigned t_lrd ( void *  param  ) 

Test the functions defined in RIM/lrd.h.

Parameters:
param Opaque handle for the test control structure (if any)
Returns:
Line number of the first error, or 0 if the test is successful

References _RIM_addr::cpt, and tkr_layer.

unsigned t_map ( void *  param  ) 

Test the functions defined in RIM/lrd.h.

Parameters:
param Opaque handle for the test control structure (if any)
Returns:
Line number of the first error, or 0 if the test is successful

References checkBit(), clearBit(), newRIMmap(), setBit(), and sizeofMap().

unsigned t_rim ( void *  param  ) 

Test the functions defined in RIM/lrd.h.

Parameters:
param Opaque handle for the test control structure (if any)
Returns:
Line number of the first error, or 0 if the test is successful

References checkZero(), _RIM_addr::cpt, newRIM(), newRIMmap(), CptDescription::nregs, CptDescription::rd, RegDescription::regId, sizeofCpt(), pu::uc, pu::ui, and CptDescription::width.

int test_rim ( const char *  testname  ) 

Iterate over a set of unit tests.

Parameters:
testname Name of the test to run ("ALL" runs all)
Returns:
Number of failed tests

References NUMBER_OF_TESTS.


Generated on Wed Nov 21 19:29:14 2012 by  doxygen 1.5.8