GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSM / dev > lsm_epu / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

LSM_pubdefs.h File Reference

Public definitions for the LSM package. More...


Functions

unsigned int LSM_initialize (void)
 Initialize the LSM system.
unsigned int LSM_initThs (unsigned int mask)
 init THS with LSM
unsigned int LSM_shutdown (void)
 Shut down the LSM system (currently a no-op).
unsigned int LSM_startTask (TASK_attr *attr)
 Create and start the LSM task.
unsigned int LSM_start (void)
 Start the LSM task using info from CPU_DB.
unsigned int LSM_stopTask (void)
 Stop the LSM task (currently a no-op).


Detailed Description

Public definitions for the LSM package.

CVS $Id: LSM_pubdefs.h,v 1.4 2005/08/23 22:46:28 ebacho Exp $
Author:
A.P.Waite

Function Documentation

unsigned int LSM_initialize ( void   ) 

Initialize the LSM system.

Return values:
LSM_ALOCFAIL Memory allocation failure
LSM_BADSTAT Not in state "uninitialized" (bad state transition)
LSM_MUALOCFL Cannot allocate a mutex
LSM_SUCCESS Success
LSM_initialize() initializes the LAT Spacecraft Messages system.

References _LSM_Control::att, _LSM_Control::cmd_hdr_size, _LSM_Control::cmdCfrmBuff, _LSM_Control::inCmdMsgBuff, _LSM_Control::inCtlMsgBuff, LSM_Apid690, LSM_Apid701, LSM_CTL_INITIALIZED, LSM_CTL_UNINITIALIZED, _LSM_Control::mtx, _LSM_Control::rwi, _LSM_Control::state, and _LSM_Control::task.

unsigned int LSM_initThs ( unsigned int  mask  ) 

init THS with LSM

Return values:
LSM_SUCCESS Success

Referenced by LSM_start().

unsigned int LSM_shutdown ( void   ) 

Shut down the LSM system (currently a no-op).

Return values:
LSM_SUCCESS Success
LSM_shutdown() shuts down the LAT Spacecraft Messages system.

unsigned int LSM_startTask ( TASK_attr *  attr  ) 

Create and start the LSM task.

Parameters:
attr (in) Task attributes (can be NULL)
Return values:
LSM_BADSTAT Not in state "initialized" (bad state transition)
LSM_NOTINIT Control block has not been allocated/initialized
LSM_SUCCESS Success
LSM_startTask() starts the LAT Spacecraft Messages master task (only the master task ... for the moment).

References LSM_CTL_INITIALIZED, LSM_CTL_STARTED, _LSM_Control::mtx, _LSM_Control::state, and _LSM_Control::task.

Referenced by LSM_start().

unsigned int LSM_stopTask ( void   ) 

Stop the LSM task (currently a no-op).

Return values:
LSM_SUCCESS Success
LSM_stopTask() stops the LAT Spacecraft Messages task(s).


Generated on Tue Mar 29 14:51:18 2011 by  doxygen 1.5.8