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

Constituent: grbs_siu     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

GRBS_sim.c File Reference

Gamma Ray Burst Analysis Code GRBS detection simulation. More...

#include <stdio.h>
#include <string.h>
#include "PBS/WCT.h"
#include "PBS/WUT.h"
#include "PBS/TOV.h"
#include "PBS/FORK.h"
#include "MSG/MSG_pubdefs.h"
#include "GRBS/GRBS_pubdefs.h"
#include "GRBS_siu_p.h"
#include "GRBS_util_p.h"

Include dependency graph for GRBS_sim.c:


Functions

static WUT_cb_status GRBS_simWutCb (void *prm, WUT_tmr *wut)
 WUT callback routine.
static FORK_cb_status GRBS_simForkCb (FORK_cb_prm *prm, FORK_msg_hdr *hdr)
 Processes simulation callbacks.
int GRBS_simConfig (void *siu_ctl, unsigned int mode, unsigned int repoint, unsigned int interval)
 Configure for a simulated GRBS detection.
int GRBS_simDetect (void *siu_ctl, FORK_que *que)
 Simulate a GRBS detection.
int GRBS_simReset (void *siu_ctl)
 Reset the GRBS simulation.

Detailed Description

Gamma Ray Burst Analysis Code GRBS detection simulation.

Author:
Sergio Maldonado - smaldona@slac.stanford.edu
   CVS $Id: GRBS_sim.c,v 1.4 2007/07/07 03:10:57 smaldona Exp $

Function Documentation

int GRBS_simConfig void *  siu_ctl,
unsigned int  mode,
unsigned int  repoint,
unsigned int  interval
 

Configure for a simulated GRBS detection.

Return values:
0,Success 
-1,Failure 
Parameters:
siu_ctl The GRBS algorithm control block
mode The GRBS simulation mode
repoint The GRBS repoint time
interval The interval in seconds between state transitions

int GRBS_simDetect void *  siu_ctl,
FORK_que *  que
 

Simulate a GRBS detection.

Return values:
0,Success 
-1,Failure 
Parameters:
siu_ctl The GRBS algorithm control block
que Task fork queue

static FORK_cb_status GRBS_simForkCb FORK_cb_prm *  prm,
FORK_msg_hdr *  hdr
[static]
 

Processes simulation callbacks.

Parameters:
prm Pointer to callback parameter
hdr Pointer to the message

int GRBS_simReset void *  siu_ctl  ) 
 

Reset the GRBS simulation.

Return values:
0,Success 
-1,Failure 
Parameters:
siu_ctl The GRBS algorithm control block

static WUT_cb_status GRBS_simWutCb void *  prm,
WUT_tmr *  wut
[static]
 

WUT callback routine.

Returns:
WUT constant WUT_K_STATE_CHANGE_YES
Parameters:
prm User context parameter
wut Wake up timer


Generated on Wed Dec 5 07:32:18 2007 by  doxygen 1.4.4