GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> SCP / dev > scp / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

SCP_control.c File Reference

The basic control of the spacecraft control program. More...

#include <PBS/PBS.h>
#include <PBS/TASK.h>
#include <MSG/MSG_pubdefs.h>
#include <MSG/MSG_printProc.h>
#include <CCSDS/CCSDS_pkt.h>
#include <IMM/FPM_pubdefs.h>
#include <IMM/RBM_pubdefs.h>
#include <ITC/ITC_dump.h>
#include <ITC/ITC_apidefs.h>
#include <ITC/ITC_pubdefs.h>
#include <CTS/CTS_pubdefs.h>
#include <PBC/PBC_scpside.h>
#include <MEM/MEM_scpside.h>
#include <FILE/FILE_scp.h>
#include <SCP/SCP_msgs.h>
#include <LFS/LFS_tlmdefs.h>
#include <LFS/LFS_dump.h>
#include <LCM/LCM_tlmdefs.h>
#include <LCM/LCM_dump.h>
#include <LSM/LSM_scpside.h>
#include <SCP_prvdefs.h>

Functions

static unsigned int SCP_dispatchCmd (void *prm, unsigned char *pkt)
 Dispatch routine for arriving telecommand.
static unsigned int SCP_dispatchTlm (void *prm, unsigned char *pkt)
 Dispatch routine for arriving telemetry.
static unsigned int SCP_getAlert (void)
 To dump or not to dump alert telemetry.
static unsigned int SCP_getDiagnostic (void)
 To dump or not to dump diagnostic telemetry.
static unsigned int SCP_getHousekeeping (void)
 To dump or not to dump housekeeping telemetry.
unsigned int SCP_init (void *addr)
 Initialize the spacecraft.
void SCP_setAlert (unsigned int cnt)
 Set the dump count for alert messages.
void SCP_setDiagnostic (unsigned int cnt)
 Set the dump count for alert messages.
void SCP_setHousekeeping (unsigned int cnt)
 Set the dump count for alert messages.
unsigned int SCP_exit ()
 Shut everything down.

Variables

SCP_Control SCP_scp
 The global instance of the SCP control block.


Detailed Description

The basic control of the spacecraft control program.

CVS $Id: SCP_control.c,v 1.13 2011/03/31 00:39:54 russell Exp $
Author:
A.P.Waite

Function Documentation

static unsigned int SCP_dispatchCmd ( void *  prm,
unsigned char *  pkt 
) [static]

Dispatch routine for arriving telecommand.

Parameters:
prm (in) User context parameter
pkt (in) The CTDB received telecommand
Return values:
SCP_SUCCESS Success
SCP_GENERROR Failure

Referenced by SCP_init().

static unsigned int SCP_dispatchTlm ( void *  prm,
unsigned char *  pkt 
) [static]

Dispatch routine for arriving telemetry.

Parameters:
prm (in) User context parameter
pkt (in) The CTDB received telemetry
Return values:
SCP_SUCCESS Success
SCP_GENERROR Failure

References SCP_getAlert(), SCP_getDiagnostic(), and SCP_getHousekeeping().

Referenced by SCP_init().

unsigned int SCP_exit (  ) 

Shut everything down.

Return values:
SCP_SUCCESS Success
SCP_GENERROR Generic error

static unsigned int SCP_getAlert ( void   )  [static]

To dump or not to dump alert telemetry.

Return values:
0 Do not dump
x Dump

References _SCP_Control::cntAlert.

Referenced by SCP_dispatchTlm().

static unsigned int SCP_getDiagnostic ( void   )  [static]

To dump or not to dump diagnostic telemetry.

Return values:
0 Do not dump
x Dump

References _SCP_Control::cntDiagnostic.

Referenced by SCP_dispatchTlm().

static unsigned int SCP_getHousekeeping ( void   )  [static]

To dump or not to dump housekeeping telemetry.

Return values:
0 Do not dump
x Dump

References _SCP_Control::cntHousekeeping.

Referenced by SCP_dispatchTlm().

unsigned int SCP_init ( void *  addr  ) 

Initialize the spacecraft.

Parameters:
addr Address of remote terminal (1553 RT or IP).
Return values:
SCP_SUCCESS Success
SCP_GENERROR Generic error
The device specific initialization is handled in SCP_initDevice(). SCP_initDevice() is provided externally to allow this routine to function in both the ethernet and 1553 world. This overloads the meaning of addr.

References SCP_dispatchCmd(), and SCP_dispatchTlm().


Generated on Wed Mar 30 17:41:23 2011 by  doxygen 1.5.8