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_prvdefs.h File Reference

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

#include "PBS/MTX.h"
#include "PBS/RW.ih"
#include "TRD/TRD_pubdefs.h"

Include dependency graph for TRD_prvdefs.h:

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


Data Structures

struct  _TRD_BufferHeader
 Structure of turbo reset database overall header. More...
struct  _TRD_RowHeader
 Structure of turbo reset database row header. More...
struct  _TRD_Row
 Structure of one row in the turbo reset database. More...
struct  _TRD_Control
 Structure of turbo reset database control block. More...

Defines

#define TRD_K_BDB5   (0xbdb5)
#define TRD_K_BDBA   (0xbdba)
#define TRD_L_ROWS   (32)
#define TRD_L_ROWBUF   (1024)

Typedefs

typedef enum _TRD_State TRD_State
 Typedef for enum _TRD_State.
typedef unsigned int TRD_cb_TffsRawio (int tffsDriveNo, int functionNo, int arg0, int arg1, int arg3)
 Signature for a TRD reset routine.
typedef _TRD_BufferHeader TRD_BufferHeader
 Typedef for struct _TRD_BufferHeader.
typedef _TRD_RowHeader TRD_RowHeader
 Typedef for struct _TRD_RowHeader.
typedef _TRD_Control TRD_Control
 Typedef for struct _TRD_Control.

Enumerations

enum  _TRD_State {
  TRD_CTL_UNINITIALIZED = 0,
  TRD_CTL_BROKEN = 1,
  TRD_CTL_INITIALIZED = 2
}
 Enumeration of TRD control states. More...

Functions

unsigned int TRD_databaseSpace (TRD_Control *tcb, unsigned int vol, unsigned int *off, unsigned int *siz)
 Identify save/restore space in EEPROM.
int TRD_fakeTffsRawio (int tffsDriveNo, int functionNo, int arg0, int arg1, int arg3)
 TFFS raw IO routine (pure fakery for use on unix hosts).

Variables

TRD_ControlTRD_tcb
 Pointer to trace control block (initialized to NULL).

Detailed Description

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

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

Enumeration Type Documentation

enum _TRD_State
 

Enumeration of TRD control states.

Enumerator:
TRD_CTL_UNINITIALIZED  Uninitialized
TRD_CTL_BROKEN  Fatal error
TRD_CTL_INITIALIZED  Initialized


Function Documentation

unsigned int TRD_databaseSpace TRD_Control tcb,
unsigned int  vol,
unsigned int *  off,
unsigned int *  siz
 

Identify save/restore space in EEPROM.

Parameters:
tcb (in) TRD control block
vol (in) EEPROM bank (/mm0, /mm1 convention)
off (out) Offset to database in EEPROM
siz (out) Maximum allowed size of database in EEPROM
TRD_databaseWrite() writes out a TRD database.
Parameters:
vol  TRD control block
off  EEPROM bank (/mm0, /mm1 convention)
siz  Offset to database in EEPROM Maximum size of database in EEPROM

int TRD_fakeTffsRawio int  tffsDriveNo,
int  functionNo,
int  arg0,
int  arg1,
int  arg3
 

TFFS raw IO routine (pure fakery for use on unix hosts).

Parameters:
tffsDriveNo (in) Routine name
functionNo (in)
arg0 (in)
arg1 (in)
arg3 (in)
Return values:
-1 Routine name is invalid
x Length of name (like strlen())
validRoutineName() validates a routine name
Parameters:
functionNo  TrueFFS drive number
arg0  TrueFFS function code
arg1  Argument 0
arg3  Argument 1 Argument 2


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