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


Interface   Data Structures   File List   Data Fields   Globals  

t_rim.c File Reference

Test the interface to the RIM functions. More...

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

Classes

union  pu
 Union of a char array and an unsigned array, used as payloads. More...

Functions

int checkZero (RIM *this, unsigned igtype, RIM_addr *igaddr, int igregId)
 Iterate over all the leaves of the tree and checks that they are zero.
unsigned t_rim (void *param)
 Test the functions defined in RIM/lrd.h.


Detailed Description

Test the interface to the RIM functions.

Author:
James Swain & Owen Saxton
$Id: t_rim.c,v 1.5 2011/03/27 06:41:14 saxton Exp $

Function Documentation

int checkZero ( RIM this,
unsigned  igtype,
RIM_addr igaddr,
int  igregId 
)

Iterate over all the leaves of the tree and checks that they are zero.

Parameters:
this Configuration to check
igtype Type of the leaf to ignore (that is known to be non-zero)
igaddr Pointer to an address structure for the leaf to ignore
igregId Register ID of the register to ignore.
Returns:
0 or the line number of the first error

References _RIM_addr::cpt, and CptDescription::nregs.

Referenced by t_rim().

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.


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