GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > SCP / V0-4-0

Constituent: scp     Tag: 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 "ITC/ITC_dump.h"
#include "ITC/ITC_apidefs.h"
#include "ITC/ITC_pubdefs.h"
#include "CTS/CTX_pubdefs.h"
#include "CTS/CTS_pubdefs.h"
#include "FILE/FILE_scp.h"
#include "SCP/SCP_msgs.h"
#include "SCP_prvdefs.h"

Include dependency graph for SCP_control.c:

Include dependency graph

Functions

unsigned int SCP_dispatchCmd (void *prm, unsigned char *pkt)
 Dispatch routine for arriving telecommand.

unsigned int SCP_dispatchTlm (void *prm, unsigned char *pkt)
 Dispatch routine for arriving telemetry.

unsigned int SCP_getAlert (void)
 To dump or not to dump alert telemetry.

unsigned int SCP_getDiagnostic (void)
 To dump or not to dump diagnostic telemetry.

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.4 2004/11/24 03:59:44 apw Exp $
Author:
A.P.Waite

Function Documentation

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

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

Here is the call graph for this function:

unsigned int SCP_exit  ) 
 

Shut everything down.

Return values:
SCP_SUCCESS Success
SCP_GENERROR Generic error

unsigned int SCP_getAlert void   )  [static]
 

To dump or not to dump alert telemetry.

Return values:
0 Do not dump
x Dump

unsigned int SCP_getDiagnostic void   )  [static]
 

To dump or not to dump diagnostic telemetry.

Return values:
0 Do not dump
x Dump

unsigned int SCP_getHousekeeping void   )  [static]
 

To dump or not to dump housekeeping telemetry.

Return values:
0 Do not dump
x Dump

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.

Here is the call graph for this function:


Generated on Sun Dec 12 03:09:05 2004 by doxygen 1.3.3