GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LCM / V1-4-4

Constituent: lcm_siu     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

LCM_control.c File Reference

CPU generic control functions. More...

#include <string.h>
#include "CCSDS/CCSDS_pkt.h"
#include "CDM/CDM_pubdefs.h"
#include "IMM/FPM_pubdefs.h"
#include "IMM/RBM_pubdefs.h"
#include "ITC/ITC_pubdefs.h"
#include "LCM_DB/LCM_DB_schema.h"
#include "MDB/MDB_pubdefs.h"
#include "PBS/MBA.h"
#include "PBS/MTX.h"
#include "PBS/RW.h"
#include "PBS/SEM.h"
#include "PBS/WUT.h"
#include "LCM/LCM_cmdxtrn.h"
#include "LCM/LCM_pubdefs.h"
#include "LCM/LCM_msgs.h"
#include "LCM_prvdefs.h"
#include "SMON.h"

Include dependency graph for LCM_control.c:


Functions

static unsigned int LCM_taskInitialize (LCM_Control *ctl)
 Initialize the LCM task (elements common to all CPUs).
static void taskStartOnce (void *prm)
 One-time call in task context to start the LCM task.
unsigned int LCM_initialize ()
 Initialize the LCM system.
unsigned int LCM_shutdown ()
 Shut down the LCM system.
unsigned int LCM_start ()
 Start the LCM task.
unsigned int LCM_stop ()
 Stop the LCM task.

Variables

LCM_ControlLCM_lcb
 Control block for LCM facility.
static const LCM_DB_Schema configData
 Default LCM configuration data.

Detailed Description

CPU generic control functions.

CVS $Id: LCM_control.c,v 1.38 2007/10/31 20:34:38 apw Exp $
Author:
A.P.Waite
LCM_control.c provides CPU generic control facilities

Function Documentation

unsigned int LCM_initialize void   ) 
 

Initialize the LCM system.

Return values:
LCM_ALOCFAIL Memory allocation failure
LCM_BADSTAT Not in state "uninitialized" (bad state transition)
LCM_MUALOCFL Cannot allocate a mutex
LCM_SUCCESS Success
LCM_initialize() initializes the LAT Spacecraft Messages system.

unsigned int LCM_shutdown void   ) 
 

Shut down the LCM system.

Return values:
LCM_SUCCESS Success
LCM_shutdown() shuts down the LAT Spacecraft Messages system.

unsigned int LCM_start void   ) 
 

Start the LCM task.

LCM_start() starts the LCM task. The LCM control state should be LCM_CTL_INITIALIZED before calling this function. On successful exit from this function, the LCM control state will be LCM_CTL_STARTING. As part of LCM's task start procedures, the LCM task first runs a one-time task initialization routine in LCM task context. If that is successful, the LCM control state is changed to LCM_CTL_RUNNING.

Any failures along the way and the LCM control state is set to LCM_CTL_BROKEN.

unsigned int LCM_stop void   ) 
 

Stop the LCM task.

The LCM control state should be LCM_CTL_RUNNING before calling this function (after calling LCM_start()). Sets LCM control state to LCM_CTL_INITIALIZED.

This function is a replacement for LCM_stopTask().

Returns:
A FILE MSG code.

static unsigned int LCM_taskInitialize LCM_Control ctl  )  [static]
 

Initialize the LCM task (elements common to all CPUs).

Parameters:
ctl (in) LCM control block
LCM_taskInitialize() builds up the CPU common elements of the LCM task.


Variable Documentation

static const LCM_DB_Schema configData [static]
 

Initial value:

{
        {
                0,                      
                0,                      
                1,                      
        },
        256,                            
        128,                            
        125,                            
        125,                            
      5,                
}
Default LCM configuration data.


Generated on Mon Nov 5 02:23:11 2007 by  doxygen 1.4.4