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

Constituent: rim     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

create.c File Reference

Function to create files from a RIM structure. More...

#include "RIM/rim.h"
#include "error_p.h"
#include "descriptions.ic"
#include "number.ic"
#include "AG_initRIM_p.h"
#include "PBS/BSWP.h"
#include <unistd.h>

Include dependency graph for create.c:


Functions

static unsigned createNormal (RIM *rim, int fd, RIM_type type)
 Writes the data for this type into the file.
static unsigned createDefault (RIM *rim, int fd)
 Writes the default data to file.
static unsigned createGEM (RIM *rim, int fd)
 Writes 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)
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. This list is used to collect the data from these components into one file.

Detailed Description

Function to create files from a RIM structure.

Author:
James Swain -- jswain@slac.stanford.edu

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]
 

Writes 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]
 

Writes 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]
 

Writes 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
 

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_READ 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


Generated on Thu Apr 13 23:39:21 2006 by  doxygen 1.4.4