GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > RIM / V1-0-0

Constituent: trim     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

t_data.c File Reference

Test internal data handling RIM functions. More...

#include "ctors_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>

Include dependency graph for t_data.c:


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 -- jswain@slac.stanford.edu

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.

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.

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.

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

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

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

unsigned t_data void *  param  ) 
 

Test the functions defined in RIM/lrd.h.

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


Generated on Fri Jun 15 02:07:01 2007 by  doxygen 1.4.4