GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > SCP / V0-10-1

Constituent: scp     Tag: mv2304


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"

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.10 2005/07/19 03:46:30 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 Tue Jul 19 21:31:46 2005 by doxygen 1.3.3