GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBC / V4-5-0

Constituent: pbc_bootshell     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

cmd_sc.c File Reference

Handle SC broadcast commands for boot. More...

#include "PBC/PBC.h"
#include "bootshell.h"
#include "PBC/PBC_msgs.h"
#include "PBC/PBC_types.h"
#include "PBC/PBC_string.h"
#include "CCSDS/CCSDS_pkt.h"
#include "CCSDS/CCSDS_msg.h"
#include "MSG/MSG_macdefs.h"
#include "cmdtlm.h"

Include dependency graph for cmd_sc.c:

Include dependency graph

Functions

unsigned int Pbc_ProcessScBroadcast (const unsigned short apid, unsigned short funcCode, const void *scBroadcast, const unsigned int pktSize)
 Process spacecraft broadcast telecommand.


Detailed Description

Handle SC broadcast commands for boot.

Author:
Ray Caperoon
Date:
Wed Dec 3 07:45:04 2003
  CVS $Id: cmd_sc.c,v 1.4 2005/01/10 22:42:46 dmay Exp $
  

Handle SC broadcast commands for boot....


Function Documentation

unsigned int Pbc_ProcessScBroadcast const unsigned short  apid,
unsigned short  funcCode,
const void *  scBroadcast,
const unsigned int  pktSize
 

Process spacecraft broadcast telecommand.

This function will process spacecraft broadcast telecommands received by the LAT. The only function code of the spacecraft broadcast telecommand that is processed is the SITIMETONE. When a SITIMETONE packet is received, the seconds parameter in that packet is recorded as the current time in the PBC.

No processing is done for SIANCILLARY and SIATTITUDE function codes.

Parameters:
apid Application ID, shall be PBC_APID_SC_BROADCAST.
funcCode Function code.
scBroadcast contents of packet, including header.
pktSize size of packet, including header.
Return values:
PBC_SUCCESS Successful command processing.
PBC_CMDIGN Command ignored (consider this successful processing).
PBC_BADPID apid was not PBC_APID_SC_BROADCAST.
PBC_NULLPTR pkt was NULL pointer.
PBC_PKTSIZE pktSize was not correct.
PBC_CMDBDFC Bad function code encountered.

Here is the call graph for this function:


Generated on Fri Jul 22 20:17:21 2005 by doxygen 1.3.3