GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LMC / V0-9-1

Constituent: lmc     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

LMC_control.c File Reference

LAT Multiplexed Counters control initialization routines. More...

#include "LMC_prvdefs.h"
#include "LMC/LMC_msgs.h"
#include "LMC/LMC_cmdxtrn.h"
#include "LMC/LMC_cmddefs.h"
#include "LMC/LMC_tlmdefs.h"
#include "LMC/LMC_pubdefs.h"
#include "PBS/RW.ih"
#include "PBS/MBA.h"
#include "PBS/SEM.h"
#include "PBS/WUT.h"
#include "PBS/FPA.h"
#include "MSG/MSG_pubdefs.h"
#include "ITC/ITC_pubdefs.h"
#include "IMM/RBM_pubdefs.h"
#include "CDM/CDM_pubdefs.h"
#include "CPU_DB/CPU_DB_pubdefs.h"
#include "CCSDS/CCSDS_pkt.h"
#include <string.h>

Include dependency graph for LMC_control.c:


Functions

static unsigned int allocCcb (LMC_Counter **cntr, LMC_CntrType type)
static void freeCcb (LMC_Counter *cnt)
static void shutdown (void)
static unsigned int changeState (unsigned int old, unsigned int new, RW_ctl *rwi, unsigned int *cur, const char *fnc)
unsigned int LMC_initialize (void)
 Initialize the LMC system.
unsigned int LMC_shutdown (void)
 Shut down the LMC system.
unsigned int LMC_start (void)
 Start the LMC system.
unsigned int LMC_startTask (TASK_attr *attr)
 Create and start the LMC task.
unsigned int LMC_stopTask (void)
 Stop the LMC task.
LMC_ControlLMC_getCtrl (void)
 Get the control block address.

Variables

static LMC_Control lmc = {LMC_CTL_UNINITIALIZED}

Detailed Description

LAT Multiplexed Counters control initialization routines.

Author:
S.Maldonado and Owen Saxton
Id
LMC_control.c,v 1.11 2007/07/20 21:34:59 saxton Exp

Function Documentation

LMC_Control* LMC_getCtrl void   ) 
 

Get the control block address.

Returns:
The address of the control block

unsigned int LMC_initialize void   ) 
 

Initialize the LMC system.

Return values:
LMC_SUCCESS Success

unsigned int LMC_shutdown void   ) 
 

Shut down the LMC system.

Return values:
LMC_SUCCESS Success
LMC_INVSTATE Not in initialized state

unsigned int LMC_start void   ) 
 

Start the LMC system.

Return values:
LMC_SUCCESS Success
LMC_NOTINIT Not initialized

unsigned int LMC_startTask TASK_attr *  attr  ) 
 

Create and start the LMC task.

Parameters:
attr (in) Task attributes (can be NULL)
Return values:
LMC_SUCCESS Success
LMC_INVSTATE Not in INITIALIZED state
ITC_ALOCFAIL Cannot allocate for fork control block
ITC_CTLSTAT ITC control block not in state initialized
ITC_FORKINIT Fork initialization failed
ITC_FORKQHND Cannot recover all fork queue handles (obscure)
ITC_NOTINIT ITC control block does not exist

unsigned int LMC_stopTask void   ) 
 

Stop the LMC task.

Return values:
LMC_SUCCESS Success
LMC_INVSTATE Not in STARTED state
ITC_CTLSTAT ITC control block not in state initialized
ITC_NOTINIT ITC control block does not exist
ITC_TASKHNDL Task handle is invalid
ITC_TASKSTAT Invalid task state for this operation


Generated on Tue Jul 1 01:18:54 2008 by  doxygen 1.4.4