GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> RIM / V3-1-2 > trim / mv2304
#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. |
$Id: RIM_descriptions.ic,v 1.3 2011/03/27 06:53:19 saxton Exp $
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.
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.
this | Pointer to one of the components being compared | |
that | Pointer to the other component be compared | |
cd | Description of the component registers |
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.
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.
cd | Description of the component registers |
References CptDescription::nregs, and CptDescription::width.
Referenced by clearCpt(), compareCpt(), copyCpt(), t_data(), and t_rim().