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

Constituent: trd     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

TRD_pubdefs.h File Reference

Public definitions for the TRD (turbo-reset database) facility. More...

This graph shows which files directly or indirectly include this file:


Typedefs

typedef _TRD_Row TRD_Row
 Typedef for struct _TRD_Row.
typedef void TRD_cb_Reset (unsigned short fmt, unsigned short len, const void *dat)
 Signature for a TRD reset routine.

Functions

unsigned int TRD_databaseRead (unsigned int vol)
 Read the TRD database from non-volatile memory and execute.
unsigned int TRD_databaseWrite (unsigned int vol)
 Write the TRD database to non-volatile memory.
unsigned int TRD_initialize (void)
 Initialize the tracing facility.
unsigned int TRD_rowCreate (TRD_Row **row, const char *rtn, unsigned short fmt, unsigned short len, const void *dat)
 Create a row in the database.
unsigned int TRD_rowDelete (TRD_Row *row)
 Delete a row in the database.
unsigned int TRD_rowModifyData (TRD_Row *row, unsigned short fmt, unsigned short len, const void *dat)
 Modify a row in the database.

Detailed Description

Public definitions for the TRD (turbo-reset database) facility.

CVS $Id: TRD_pubdefs.h,v 1.1.1.1 2008/10/03 01:04:33 apw Exp $
Author:
A.P.Waite

Function Documentation

unsigned int TRD_databaseRead unsigned int  vol  ) 
 

Read the TRD database from non-volatile memory and execute.

Parameters:
vol (in) TFFS volume. Must be either 2 (/mm0) or 3 (/mm1)
TRD_databaseRead() reads back and executes a TRD database.

unsigned int TRD_databaseWrite unsigned int  vol  ) 
 

Write the TRD database to non-volatile memory.

Parameters:
vol (in) TFFS volume. Must be either 2 (/mm0) or 3 (/mm1)
TRD_databaseWrite() writes out a TRD database.

unsigned int TRD_initialize void   ) 
 

Initialize the tracing facility.

Return values:
TRD_ADDHOOK Cannot add task switch hook routine
TRD_ALLOCMEM Cannot allocate memory
TRD_ALLOCMTX Cannot allocate mutex
TRD_BADSTATE Invalid state for operation
TRD_SUCCESS Success
TRD_initialize() builds up the necessary resources.

unsigned int TRD_rowCreate TRD_Row **  hnd,
const char *  rtn,
unsigned short  fmt,
unsigned short  len,
const void *  dat
 

Create a row in the database.

Parameters:
hnd (in/out) Row handle
rtn (in) Name of a callback routine
fmt (in) Format of data to follow
len (in) Length (bytes) of data to follow
dat (in) Data
TRD_rowCreate() creates a new row in the database.

unsigned int TRD_rowDelete TRD_Row row  ) 
 

Delete a row in the database.

Parameters:
row (in) Row (handle) to delete
TRD_rowDelete() deletes an existing row in the database.

unsigned int TRD_rowModifyData TRD_Row row,
unsigned short  fmt,
unsigned short  len,
const void *  dat
 

Modify a row in the database.

Parameters:
row (in) Row handle
fmt (in) Format of data to follow
len (in) Length (bytes) of data to follow
dat (in) Data
TRD_rowModifyData() modifies (replaces) the data stored with a database row.


Generated on Fri Oct 3 01:18:29 2008 by  doxygen 1.4.4