GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LIM / V1-19-1

Constituent: lim_unit_test     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

lim_util_sim.h File Reference

Interface to the functions found in lim_util_sim.c. More...

#include "ITC/ITC_pubdefs.h"
#include "lim_unit_test.h"

Include dependency graph for lim_util_sim.h:

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


Defines

#define SIM_TID_LCI   (ITC_TID_LCI_M)
#define SIM_TID_LDF   (ITC_TID_LCI_S)
#define SIM_TID_LPA   (ITC_TID_LSM_M)
#define SIM_TID_LTC   (ITC_TID_LTC)
#define SIM_APID_GBM   (0x660)
#define SIM_APID_LCI   (0x67c)
#define SIM_APID_LDF   (0x684)
#define SIM_APID_LPA   (0x674)
#define SIM_APID_LPA_IDLE   (0x675)
#define SIM_APID_LTC   (0x658)
#define SIM_FC_CAL_ABORT   2
#define SIM_FC_CAL_OTHER   5
#define SIM_FC_CAL_START   1
#define SIM_FC_DIAG_ABORT   13
#define SIM_FC_DIAG_OTHER   14
#define SIM_FC_DIAG_START   15
#define SIM_FC_GBM_CALC_INFO   1
#define SIM_FC_GBM_CLOSEOUT   3
#define SIM_FC_GBM_REPOINT   2
#define SIM_FC_GRB_CONFIRM   0xf1
#define SIM_FC_GRB_FINISH   0xf2
#define SIM_FC_GRB_SUSPECT   0xf3
#define SIM_FC_PHYS_ACTIVE   2
#define SIM_FC_PHYS_IDLE_1   0
#define SIM_FC_PHYS_IDLE_2   10
#define SIM_FC_PHYS_START   1
#define SIM_FC_PHYS_STOP   3
#define SIM_FC_LTC_STOP   3
#define SIM_FC_COMPLETE   0xf0
#define SIM_FC_RECONFIG   0xf8
#define SIM_FC_RESTART   0xf9

Functions

int SIM_init_tasks (test_Test_Descriptor *td_p)
 Initialize the simulated tasks.
int SIM_shutdown_tasks (test_Test_Descriptor *td_p)
 Shutdown the simulated tasks.
int SIM_start_tasks (test_Test_Descriptor *td_p)
 Start the simulated tasks.
int SIM_stop_tasks (test_Test_Descriptor *td_p)
 Stop the simulated tasks.
void SIM_clear_stats (test_Test_Descriptor *td_p)
 Clear simulated task statistics.
int SIM_check_stats (test_Test_Descriptor *td_p, test_Cmd_Counts *exp_lci_p, test_Cmd_Counts *exp_ldf_p, test_Cmd_Counts *exp_lpa_p, test_Cmd_Counts *exp_ltc_p)
 Verify expected simulated task statistics.
int SIM_check_parms (test_Test_Descriptor *td_p, test_Start_Parms *exp_lpa_p)
 Verify expected simulated task start parameters.

Detailed Description

Interface to the functions found in lim_util_sim.c.

**  CVS $Id: lim_util_sim.h,v 1.14 2007/02/26 18:12:16 dmay Exp $
**  

Function Documentation

int SIM_check_parms test_Test_Descriptor td_p,
test_Start_Parms exp_lpa_p
 

Verify expected simulated task start parameters.

Parameters:
td_p Pointer to test descriptor.
exp_lpa_p Pointer to expected LPA task start parameters.
Return values:
0 Success.
-1 Failure.

int SIM_check_stats test_Test_Descriptor td_p,
test_Cmd_Counts exp_lci_p,
test_Cmd_Counts exp_ldf_p,
test_Cmd_Counts exp_lpa_p,
test_Cmd_Counts exp_ltc_p
 

Verify expected simulated task statistics.

Parameters:
td_p Pointer to test descriptor.
exp_lci_p Pointer to expected LCI task counts.
exp_ldf_p Pointer to expected LDF task counts.
exp_lpa_p Pointer to expected LPA task counts.
exp_ltc_p Pointer to expected LTC task counts.
Return values:
0 Success.
-1 Failure.

int SIM_clear_stats test_Test_Descriptor td_p  ) 
 

Clear simulated task statistics.

Parameters:
td_p Pointer to test descriptor.
Returns:
Nothing.

int SIM_init_tasks test_Test_Descriptor td_p  ) 
 

Initialize the simulated tasks.

Parameters:
td_p Pointer to test descriptor.
Return values:
0 Success.
-1 Failure.

int SIM_shutdown_tasks test_Test_Descriptor td_p  ) 
 

Shutdown the simulated tasks.

Parameters:
td_p Pointer to test descriptor.
Return values:
0 Success.
-1 Failure.

int SIM_start_tasks test_Test_Descriptor td_p  ) 
 

Start the simulated tasks.

Parameters:
td_p Pointer to test descriptor.
Return values:
0 Success.
-1 Failure.

int SIM_stop_tasks test_Test_Descriptor td_p  ) 
 

Stop the simulated tasks.

Parameters:
td_p Pointer to test descriptor.
Return values:
0 Success.
-1 Failure.


Generated on Mon Jan 14 12:16:18 2008 by  doxygen 1.4.4