GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LTX / V2-4-0

Constituent: ltx_utils     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LTX_utils.c File Reference

LTX utilties library, contains the socket initialization and LAT flight software and hardware discovery routines. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <ctype.h>
#include "CMX/CMX_asBuiltPub.h"
#include "LTX_pcihdr.h"
#include "LTX/LTX_utils.h"
#include "LTX_utils_priv.h"
#include "LTX/LTX_server.h"

Include dependency graph for LTX_utils.c:

Include dependency graph

Defines

#define LTX_SOCK_BUFSIZE   256
#define LTX_STR_SIZE   32
#define LTX_TASK_ID   "tLTXrx"
#define LTX_TASK_PRI   160

Functions

int LTX_Initialize (int tx_port, int rx_port, int msg)
 Initializes the socket server.

int LTX_Shutdown (void)
 Shuts down the socket server.

int LTX_SwReport (void)
 Runs the software reporting mechanism.

int LTX_HwReport (int type)
 Runs the hardware reporting mechanism.


Variables

void * svr
LTX_server_config svrCfg

Detailed Description

LTX utilties library, contains the socket initialization and LAT flight software and hardware discovery routines.

Author:
S. Maldonado - smaldona@slac.stanford.edu

   CVS $Id: LTX_utils.c,v 1.2 2003/11/10 17:46:18 smaldona Exp $
   

Define Documentation

#define LTX_SOCK_BUFSIZE   256
 

Socket buffer size

#define LTX_STR_SIZE   32
 

The max string size

#define LTX_TASK_ID   "tLTXrx"
 

The LTX task ID

#define LTX_TASK_PRI   160
 

The LTX task priority


Function Documentation

int LTX_HwReport int  type  ) 
 

Runs the hardware reporting mechanism.

Parameters:
type Specifies print only type report
Return values:
LTX_OK Success.
LTX_ERR Failure.

int LTX_Initialize int  tx_port,
int  rx_port,
int  msg
 

Initializes the socket server.

Parameters:
tx_port The transmit socket port number.
rx_port The receive socket port number.
msg Flag to enable message printing
Return values:
LTX_OK Success.
LTX_ERR Failure.

Here is the call graph for this function:

int LTX_Shutdown void   ) 
 

Shuts down the socket server.

Return values:
LTX_OK Success.
LTX_ERR Failure.

Here is the call graph for this function:

int LTX_SwReport void   ) 
 

Runs the software reporting mechanism.

Return values:
LTX_OK Success.
LTX_ERR Failure.

Here is the call graph for this function:


Variable Documentation

void* svr
 

Socket server handle

LTX_server_config svrCfg
 

Socket server configuration handle


Generated on Fri Apr 8 20:11:47 2005 by doxygen 1.3.3