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


Interface   Data Structures   File List   Data Fields   Globals  

t_data.c File Reference

Test internal data handling RIM functions. More...

#include <test_rim_p.h>
#include <RIM_p.h>
#include <RIM_AG_init_p.h>
#include <RIM_descriptions.ic>
#include <RIM_number.ic>
#include <PBI/Endianness.h>
#include <stdlib.h>

Functions

int setTam (void *leaf, void *tst, unsigned reg, unsigned val)
 Set a TAM register and the corresponding word in the test array then return the result of a comparison.
int getTam (void *leaf, void *tst)
 Check the value obtained by "get" matches the test array.
int setTfe (void *leaf, void *tst, unsigned reg, unsigned val)
 Set a TFE register and the corresponding word in the test array then return the result of a comparison.
int getTfe (void *leaf, void *tst)
 Check the value obtained by "get" matches the test array.
int setCrc (void *leaf, void *tst, unsigned reg, unsigned short val)
 Set a TFE register and the corresponding word in the test array then return the result of a comparison.
int getCrc (void *leaf, void *tst)
 Check the value obtained by "get" matches the test array.
unsigned t_data (void *param)
 Test the functions defined in RIM/lrd.h.


Detailed Description

Test internal data handling RIM functions.

Author:
James Swain & Owen Saxton
$Id: t_data.c,v 1.4 2011/03/27 06:43:06 saxton Exp $

Function Documentation

int getCrc ( void *  leaf,
void *  tst 
)

Check the value obtained by "get" matches the test array.

Parameters:
leaf Pointer to the leaf being set by RIM function
tst Pointer to an array used for comparison
Returns:
0 if everything is good.

Referenced by t_data().

int getTam ( void *  leaf,
void *  tst 
)

Check the value obtained by "get" matches the test array.

Parameters:
leaf Pointer to the leaf being set by RIM function
tst Pointer to an array used for comparison
Returns:
0 if everything is good.

Referenced by t_data().

int getTfe ( void *  leaf,
void *  tst 
)

Check the value obtained by "get" matches the test array.

Parameters:
leaf Pointer to the leaf being set by RIM function
tst Pointer to an array used for comparison
Returns:
0 if everything is good.

Referenced by t_data().

int setCrc ( void *  leaf,
void *  tst,
unsigned  reg,
unsigned short  val 
)

Set a TFE register and the corresponding word in the test array then return the result of a comparison.

Parameters:
leaf Pointer to the leaf being set by RIM function
tst Pointer to an array used for comparison
reg Register to set
val Value to set the register to.
Returns:
Result of the comparison

Referenced by t_data().

int setTam ( void *  leaf,
void *  tst,
unsigned  reg,
unsigned  val 
)

Set a TAM register and the corresponding word in the test array then return the result of a comparison.

Parameters:
leaf Pointer to the leaf being set by RIM function
tst Pointer to an array used for comparison
reg Register to set
val Value to set the register to.
Returns:
Result of the comparison

Referenced by t_data().

int setTfe ( void *  leaf,
void *  tst,
unsigned  reg,
unsigned  val 
)

Set a TFE register and the corresponding word in the test array then return the result of a comparison.

Parameters:
leaf Pointer to the leaf being set by RIM function
tst Pointer to an array used for comparison
reg Register to set
val Value to set the register to.
Returns:
Result of the comparison

Referenced by t_data().

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().


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