GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIM / V1-22-3 > lim_unit_test_lpa / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

lim_util_lpa.c File Reference

Emulate some LPA functions. More...

#include <ITC/ITC_pubdefs.h>
#include <LIM/LIM_msgs.h>
#include <MSG/MSG_pubdefs.h>
#include <PBS/MBA.h>
#include <lim_util_sim.h>

Functions

void LPA_fail_next_bulk (void)
 Indicate that next message to the LPA BULK queue should fail.
static void lpa_free_bulk (ITC_QueueItem *qitem_p, unsigned int status_in, void *parm_0, void *parm_1, void *parm_2, unsigned int tx)
 Free a packet sent to the LPA bulk queue.
unsigned int LPA_gbm_int (void)
 Emulate the LPA_gbm_int() function.
unsigned int LPA_set_mode (unsigned int mode)
 Emulate the LPA_set_mode() function.

Variables

static int Lpa_Fail_Next_Bulk = 0
 Flag to indicate that next msg to the LPA BULK queue should fail.


Detailed Description

Emulate some LPA functions.

**  CVS $Id: lim_util_lpa.c,v 1.6 2011/03/29 21:20:27 apw Exp $
**  

Function Documentation

void LPA_fail_next_bulk ( void   ) 

Indicate that next message to the LPA BULK queue should fail.

Returns:
Nothing.

References Lpa_Fail_Next_Bulk.

void lpa_free_bulk ( ITC_QueueItem *  qitem_p,
unsigned int  status_in,
void *  parm_0,
void *  parm_1,
void *  parm_2,
unsigned int  tx 
) [static]

Free a packet sent to the LPA bulk queue.

Parameters:
qitem_p Pointer to queue item.
status_in Completion code.
parm_0 Callback parameter 0 (pointer to queue item).
parm_1 Callback parameter 1 (unused).
parm_2 Callback parameter 2 (unused).
tx Flag indicating sender-side failure (unused).
Returns:
Nothing.

Referenced by LPA_set_mode().

unsigned int LPA_gbm_int ( void   ) 

Emulate the LPA_gbm_int() function.

Returns:
MSG code.

unsigned int LPA_set_mode ( unsigned int  mode  ) 

Emulate the LPA_set_mode() function.

Parameters:
mode New mode.
Returns:
MSG code.

References Lpa_Fail_Next_Bulk, and lpa_free_bulk().


Generated on Tue Mar 29 14:49:40 2011 by  doxygen 1.5.8