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


Interface   Data Structures   File List   Data Fields   Globals  

RIM_descriptions.ic File Reference

Static inline functions that calculate some simple component properties. More...

#include "RIM_p.h"
#include <string.h>

Functions

static size_t sizeofCpt (const CptDescription *cd)
 Returns the size of a component, rounded to an integer boundary.
static void clearCpt (void *cpt, const CptDescription *cd)
 Clears all the bits of the data block, assuming that it is described by the CptDescription.
static void copyCpt (void *dest, const void *source, const CptDescription *cd)
 Copy source component to dest component.
static int compareCpt (const void *this, const void *that, const CptDescription *cd)
 Compare two components.


Detailed Description

Static inline functions that calculate some simple component properties.

Author:
James Swain & Owen Saxton
$Id: RIM_descriptions.ic,v 1.3 2011/03/27 06:53:19 saxton Exp $

Function Documentation

void clearCpt ( void *  cpt,
const CptDescription cd 
) [inline, static]

Clears all the bits of the data block, assuming that it is described by the CptDescription.

Parameters:
cpt Pointer to start of the component data
cd Description of the component registers

References sizeofCpt().

int compareCpt ( const void *  this,
const void *  that,
const CptDescription cd 
) [inline, static]

Compare two components.

Parameters:
this Pointer to one of the components being compared
that Pointer to the other component be compared
cd Description of the component registers
Return values:
0 if identical
non-zero if different

References sizeofCpt().

void copyCpt ( void *  dest,
const void *  source,
const CptDescription cd 
) [inline, static]

Copy source component to dest component.

Parameters:
dest Destination to copy to
source Place to copy from
cd Description of the component registers

References sizeofCpt().

size_t sizeofCpt ( const CptDescription cd  )  [inline, static]

Returns the size of a component, rounded to an integer boundary.

Parameters:
cd Description of the component registers
Returns:
Size of data volume required to hold the component

References CptDescription::nregs, and CptDescription::width.

Referenced by clearCpt(), compareCpt(), copyCpt(), t_data(), and t_rim().


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