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

Constituent: rim     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

RIM_create.c File Reference

Functions that create files from a RIM structure. More...

#include "RIM_p.h"
#include "RIM_descriptions.ic"
#include "RIM_number.ic"
#include "RIM_AG_init_p.h"
#include "PBS/BSWP.h"
#include <unistd.h>

Include dependency graph for RIM_create.c:


Functions

static unsigned createNormal (RIM *rim, int fd, RIM_type type)
 Write the data for this type into the file.
static unsigned createDefault (RIM *rim, int fd)
 Write the default data to file.
static unsigned createGEM (RIM *rim, int fd)
 Write the GEM data to file.
static unsigned createAEM (RIM *rim, int fd)
 Write the AEM data to file.
unsigned file_write (int fd, void *ptr, int nword)
 Write a block of data to a file.
unsigned RIM_createMap (RIM_map *map, int fd)
 Write out the data of a RIM_map structure.
unsigned RIM_createMask (RIM *rim)
 Creates a bitmask indicating which types can successfully be used with RIM_create.
unsigned RIM_create (RIM *rim, RIM_type type, int fd)
 Create a single binary configuration file containing the data of one component (or the default data).

Variables

static RIM_type GEM_type [] = {RIM_TAM, RIM_ROI, RIM_TIE, RIM_SCH, -1}
 List of component types that make up the GEM configuration The GEM configuration is made up of several component types.

Detailed Description

Functions that create files from a RIM structure.

Author:
James Swain & Owen Saxton
Id
RIM_create.c,v 1.1 2007/03/16 19:21:10 saxton Exp

Function Documentation

unsigned createAEM RIM rim,
int  fd
[inline, static]
 

Write the AEM data to file.

Parameters:
rim Pointer to the RIM structure to populate
fd Descriptor of a file opened for reading
Return values:
RIM_SUCCESS If the data are transferred successfully
RIM_FILE_WRITE if one of the file write operations failed

unsigned createDefault RIM rim,
int  fd
[inline, static]
 

Write the default data to file.

Parameters:
fd Descriptor of a file opened for writing
rim RIM structure to use as a source
Return values:
RIM_SUCCESS if all goes well
RIM_FILE_WRITE if one of the file write operations failed

unsigned createGEM RIM rim,
int  fd
[inline, static]
 

Write the GEM data to file.

Parameters:
rim Pointer to the RIM structure to populate
fd Descriptor of a file opened for reading
Return values:
RIM_SUCCESS If the data are transferred successfully
RIM_FILE_WRITE if one of the file write operations failed

unsigned createNormal RIM rim,
int  fd,
RIM_type  type
[inline, static]
 

Write the data for this type into the file.

Parameters:
fd Descriptor of a file opened for writing
rim RIM structure to use as a source
type Component type to write out
Return values:
RIM_SUCCESS if all goes well
RIM_FILE_WRITE if one of the file write operations failed

unsigned file_write int  fd,
void *  ptr,
int  nword
 

Write a block of data to a file.

Parameters:
fd Descriptor of a file opened for writing
ptr Pointer to the buffer to write to file
nword Number of 32-bit words to write to the file
Return values:
RIM_SUCCESS If all goes well
RIM_FILE_WRITE If there is an error writing to the file

unsigned RIM_create RIM rim,
RIM_type  type,
int  fd
 

Create a single binary configuration file containing the data of one component (or the default data).

Parameters:
rim RIM structure to use as a source
type Component type to write out
fd Descriptor of a file opened for writing
Return values:
RIM_SUCCESS if all goes well
RIM_FILE_WRITE if one of the file write operations failed
RIM_MAP_NONE if the selected type is not written seperately
RIM_CPT_NONE if the selected type has not data specified

unsigned RIM_createMap RIM_map map,
int  fd
 

Write out the data of a RIM_map structure.

Parameters:
map Pointer to the RIM_map whose data should be written to file
fd Descriptor of a file opened for writing
Return values:
RIM_SUCCESS if all goes well
RIM_FILE_WRITE if one of the file write operations failed

unsigned RIM_createMask RIM rim  ) 
 

Creates a bitmask indicating which types can successfully be used with RIM_create.

Parameters:
rim Pointer to the in-memory model
Returns:
Bit mask indicating the types of files that can be created


Variable Documentation

RIM_type GEM_type[] = {RIM_TAM, RIM_ROI, RIM_TIE, RIM_SCH, -1} [static]
 

List of component types that make up the GEM configuration The GEM configuration is made up of several component types.

This list is used to collect the data from these components into one file.


Generated on Fri Jun 15 02:02:20 2007 by  doxygen 1.4.4