GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> SCP / dev > scp / linux-gcc
#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. |
CVS $Id: SCP_control.c,v 1.13 2011/03/31 00:39:54 russell Exp $
static unsigned int SCP_dispatchCmd | ( | void * | prm, | |
unsigned char * | pkt | |||
) | [static] |
Dispatch routine for arriving telecommand.
prm | (in) User context parameter | |
pkt | (in) The CTDB received telecommand |
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.
prm | (in) User context parameter | |
pkt | (in) The CTDB received telemetry |
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.
SCP_SUCCESS | Success | |
SCP_GENERROR | Generic error |
static unsigned int SCP_getAlert | ( | void | ) | [static] |
To dump or not to dump alert telemetry.
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.
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.
0 | Do not dump | |
x | Dump |
References _SCP_Control::cntHousekeeping.
Referenced by SCP_dispatchTlm().
unsigned int SCP_init | ( | void * | addr | ) |
Initialize the spacecraft.
addr | Address of remote terminal (1553 RT or IP). |
SCP_SUCCESS | Success | |
SCP_GENERROR | Generic error |
References SCP_dispatchCmd(), and SCP_dispatchTlm().