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_file.c File Reference

Process LAT file load telecommands. More...

#include "PBC/PBC.h"
#include "bootshell.h"
#include "cmdtlm.h"
#include "PBC/PBC_msgs.h"
#include "PBC/PBC_string.h"
#include "CCSDS/CCSDS_pkt.h"
#include "CCSDS/CCSDS_msg.h"
#include "FILE/FILE_upl.h"
#include "pbc_sio.h"
#include "MSG/MSG_macdefs.h"
#include "pbc_memmap.h"

Include dependency graph for cmd_file.c:

Include dependency graph

Data Structures

struct  _pbc_FileLoadContext

Functions

void Pbc_InitFileLoad ()
 Initialize file upload command handling.

unsigned int Pbc_ProcessFileLoad (const unsigned short apid, unsigned short funcCode, const void *fileLoad, const unsigned int pktSize)
 Process LAT file load telecommands.

void Pbc_GetFileLoadTlm (unsigned short *fileUploadState, unsigned short *fileUploadPktCnt, unsigned long *fileUploadError)
 Get file load telemetry.

void Pbc_ResetFileLoad ()
 Reset FILE upload state machine.


Variables

_pbc_FileLoadContext pbc_fileLoadContext

Detailed Description

Process LAT file load telecommands.

Author:
Ray Caperoon
Date:
Thu Dec 18 07:38:10 2003
  CVS $Id: cmd_file.c,v 1.12 2005/01/10 22:42:31 dmay Exp $
  

Process LAT file load telecommands.


Function Documentation

void Pbc_GetFileLoadTlm unsigned short *  fileUploadState,
unsigned short *  fileUploadPktCnt,
unsigned long *  fileUploadError
 

Get file load telemetry.

Get file load telemetry.

void Pbc_InitFileLoad  ) 
 

Initialize file upload command handling.

Initialize file upload command handling.

unsigned int Pbc_ProcessFileLoad const unsigned short  apid,
unsigned short  funcCode,
const void *  fileLoad,
const unsigned int  pktSize
 

Process LAT file load telecommands.

This function will process file load telecommands received by the LAT. Processing depends on function code.

Parameters:
apid Application ID, shall be PBC_APID_LAT_FILE_LOAD.
funcCode Function code of packet.
fileLoad 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_LAT_FILE_LOAD.
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:

void Pbc_ResetFileLoad  ) 
 

Reset FILE upload state machine.

A simple front end to FILE_uplReset()


Variable Documentation

pbc_fileLoadContext [static]
 

Context information describing the state of file load command operations. See _pbc_FileLoadContext.


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