GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCS / dev > lcs / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

LCS_configure.c File Reference

Management of the LCS master control block. More...

#include <stdio.h>
#include <string.h>
#include <CDM/CDM_pubdefs.h>
#include <PBS/TASK.h>
#include <CPU_DB/CPU_DB_pubdefs.h>
#include <LCS_DB/LCS_DB_schema.h>
#include <MSG/MSG_pubdefs.h>
#include <LCS/LCS_pubdefs.h>
#include <LCS/LCS_msgs.h>
#include <LCS_prvdefs.h>

Functions

unsigned int LCS_configure ()
 Configure the LCS system from a CDM configuration database.
unsigned int LCS_rundown ()
 Run down the LCS tasks/resources configured with LCS_configure().

Variables

static const LCS_DB_Schema * ldb
 Pointer to the database data structure.
static const LCS_DB_LTX_Service compiled_siu_services []
 List of LTX (CPU/CPU) service descriptions (SIU version).
static const LCS_DB_Schema compiled_siu
 Configurable settings for the LCS system (SIU version).
static const LCS_DB_LTX_Service compiled_epu_services []
 List of LTX (CPU/CPU) service descriptions (EPU version).
static const LCS_DB_Schema compiled_epu
 Configurable settings for the LCS system (EPU version).
static TASK_attr LRXR_taskAttributes
 Internally compiled configuration defaults: LRX "result" task attributes.
static TASK_attr LRXE_taskAttributes
 Internally compiled configuration defaults: LRX "event" task attributes.
static TASK_attr STX_taskAttributes
 Internally compiled configuration defaults: STX task attributes.
static TASK_attr LTX_taskAttributes
 Internally compiled configuration defaults: LTX task attributes.
static const char * s_msg [3]
 Elements of an information message.


Detailed Description

Management of the LCS master control block.

CVS $Id: LCS_configure.c,v 1.3 2011/03/28 22:49:56 apw Exp $
Author:
A.P.Waite

Function Documentation

unsigned int LCS_configure ( void   ) 

Configure the LCS system from a CDM configuration database.

Return values:
LCS_SUCCESS Success
LCS_configure() creates and starts the LCS services (both transmit and receive, and in the case of transmit, both CPU/CPU and CPU/SDI) based on parameters found in the LCS CDM configuration database.

References ldb, LRX_createService(), LRX_startService(), LTX_createService(), and LTX_startService().

unsigned int LCS_rundown ( void   ) 

Run down the LCS tasks/resources configured with LCS_configure().

Return values:
LCS_SUCCESS Success
LCS_rundown() uses contextual information gathered during LCS_configure() to run down all the LCS tasks and their associated resources.

References ldb, LRX_deleteService(), LRX_stopService(), LTX_deleteService(), and LTX_stopService().


Variable Documentation

static const LCS_DB_Schema compiled_epu [static]

Initial value:

{
                                
    7,                          

                                
    sizeof( compiled_epu_services ) /
        sizeof( LCS_DB_LTX_Service ),
                                
    compiled_epu_services       
}
Configurable settings for the LCS system (EPU version).

static const LCS_DB_LTX_Service compiled_epu_services[] [static]

Initial value:

 
{
    {                           
        ITC_SID_LTX0   ,        
        ITC_NIM_SIU    |        
        ITC_NIM_EPU0   |        
        ITC_NIM_EPU1   |        
        ITC_NIM_EPU2   |        
        ITC_NIM_EPU3   |        
        ITC_NIM_SC     ,        
        7              ,        
        100000         ,        

                                
        NULL           ,        
        0              ,        
        0              ,        
        NULL                    
    }
}
List of LTX (CPU/CPU) service descriptions (EPU version).

static const LCS_DB_Schema compiled_siu [static]

Initial value:

{
                                
    7,                          

                                
    sizeof( compiled_siu_services ) /
        sizeof( LCS_DB_LTX_Service ),
                                
    compiled_siu_services       
}
Configurable settings for the LCS system (SIU version).

static const LCS_DB_LTX_Service compiled_siu_services[] [static]

Initial value:

 
{
    {                           
        ITC_SID_LTX0   ,        
        ITC_NIM_EPU0   |        
        ITC_NIM_EPU1   |        
        ITC_NIM_EPU2   |        
        ITC_NIM_EPU3   ,        
        7              ,        
        100000         ,        

                                
        "rLTX0"        ,        
        1024           ,        
        256            ,        
        NULL                    
    }
}
List of LTX (CPU/CPU) service descriptions (SIU version).

static TASK_attr LRXE_taskAttributes [static]

Initial value:

{
    "dLRXevt",  67,  0,  NULL,  0
}
Internally compiled configuration defaults: LRX "event" task attributes.

static TASK_attr LRXR_taskAttributes [static]

Initial value:

{
    "dLRXrst",  65,  0,  NULL,  0
}
Internally compiled configuration defaults: LRX "result" task attributes.

static TASK_attr LTX_taskAttributes [static]

Initial value:

{
    "uLTX",    201,  0,  NULL,  0
}
Internally compiled configuration defaults: LTX task attributes.

static const char * s_msg[3] [static]

Initial value:

{
    "name",
    "priority",
    "name, priority"
}
Elements of an information message.

static TASK_attr STX_taskAttributes [static]

Initial value:

{
    "uSTX",    210,  0,  NULL,  0
}
Internally compiled configuration defaults: STX task attributes.


Generated on Mon Mar 28 15:54:26 2011 by  doxygen 1.5.8