GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LFS / V1-12-0

Constituent: lfs_scp     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

LFS_scp_command.c File Reference

SCP side of LFS commanding. More...

#include "stdio.h"
#include "errno.h"
#include "PBI/Endianness.h"
#include "PBS/MBA.h"
#include "MSG/MSG_pubdefs.h"
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_dump.h"
#include "ITC/ITC_pubdefs.h"
#include "FBS/FBS_pubrtos.h"
#include "LFS/LFS_scp.h"
#include "LFS/LFS_cmddefs.h"
#include "LFS/LFS_dump.h"
#include "LFS/LFS_msg.h"
#include "LFS_lcp_private.h"

Include dependency graph for LFS_scp_command.c:


Functions

static void cmdFree (ITC_QueueItem *qitem, unsigned int status, void *prm0, void *prm1, void *prm2)
unsigned int LFS_sendFileDump (unsigned int latUnit, unsigned int dev, unsigned int dir, unsigned int file, unsigned int xactId)
 Send a file dump CTDB telecommand.
unsigned int LFS_sendFileDumpSSR (unsigned int latUnit, unsigned int dev, unsigned int dir, unsigned int file, unsigned int xactId)
 Send a file dump SSR telecommand.
unsigned int LFS_sendFileDelete (unsigned int latUnit, unsigned int dev, unsigned int dir, unsigned int file, unsigned int xactId)
 Send a file delete telecommand.
unsigned int LFS_sendFileCopy (unsigned int latUnit, unsigned int srcDev, unsigned int srcDir, unsigned int srcFile, unsigned int destDev, unsigned int destDir, unsigned int destFile, unsigned int xactId)
 Send a file local copy telecommand.
unsigned int LFS_sendDirCreate (unsigned int latUnit, unsigned int dev, unsigned int dir, unsigned int xactId)
 Send a directory create telecommand.
unsigned int LFS_sendDirDelete (unsigned int latUnit, unsigned int dev, unsigned int dir, unsigned int xactId)
 Send a directory delete telecommand.
unsigned int LFS_sendDirDump (unsigned int latUnit, unsigned int dev, unsigned int dir, unsigned int xactId)
 Send a directory listing dump telecommand.
unsigned int LFS_sendSysStatus (unsigned int latUnit, unsigned int dev, unsigned int xactId)
 Send a file system status report telecommand.
unsigned int LFS_sendSysMount (unsigned int latUnit, unsigned int dev)
 Send a file system mount report telecommand.
unsigned int LFS_sendSysCheck (unsigned int latUnit, unsigned int dev)
 Send a file system check report telecommand.
unsigned int LFS_sendSysRepair (unsigned int latUnit, unsigned int dev)
 Send a file system repair telecommand.
unsigned int LFS_sendSysFormat (unsigned int latUnit, unsigned int dev, unsigned int offset)
 Send a file system format report telecommand.
unsigned int LFS_sendNoop (unsigned int latUnit)
 Send a LFS/FILE no-op telecommand.

Detailed Description

SCP side of LFS commanding.

Author:
D.L.Wood

Function Documentation

static void cmdFree ITC_QueueItem *  qitem,
unsigned int  status,
void *  prm0,
void *  prm1,
void *  prm2
[static]
 

Free memory after sending ITC commands.

Parameters:
qitem The memory buffer.
status Status of command.
prm0 Completion callback paramter 0.
prm1 Completion callback paramter 1.
prm2 Completion callback paramter 2.

unsigned int LFS_sendDirCreate unsigned int  latUnit,
unsigned int  dev,
unsigned int  dir,
unsigned int  xactId
 

Send a directory create telecommand.

Send a LFS directory create telecommand (LFSDIRCREATE).

Parameters:
latUnit The LAT CPU to work on.
dev Device number of directory to delete.
dir Directory number to delete.
xactId The transaction ID.
Returns:
A LFS MSG code.

unsigned int LFS_sendDirDelete unsigned int  latUnit,
unsigned int  dev,
unsigned int  dir,
unsigned int  xactId
 

Send a directory delete telecommand.

Send a LFS directory delete telecommand (LFSDIRDELETE).

Parameters:
latUnit The LAT CPU to work on.
dev Device number of directory to delete.
dir Directory number to delete.
xactId The transaction ID.
Returns:
A LFS MSG code.

unsigned int LFS_sendDirDump unsigned int  latUnit,
unsigned int  dev,
unsigned int  dir,
unsigned int  xactId
 

Send a directory listing dump telecommand.

Send a LFS directory dump listing telecommand (LFSDIRDUMP).

Parameters:
latUnit The LAT CPU to work on.
dev Device number of directory to dump.
dir Directory number to dump.
xactId The transaction ID.
Returns:
A LFS MSG code.

unsigned int LFS_sendFileCopy unsigned int  latUnit,
unsigned int  srcDev,
unsigned int  srcDir,
unsigned int  srcFile,
unsigned int  destDev,
unsigned int  destDir,
unsigned int  destFile,
unsigned int  xactId
 

Send a file local copy telecommand.

Send a LFS file copy (local) telecommand (LFSFILECOPY).

Parameters:
latUnit The LAT CPU to work on.
srcDev Device number of source file to copy from.
srcDir Directory number of source file to copy from.
srcFile File number of source file to copy from.
destDev Device number of destination file to copy to.
destDir Directory number of destination file to copy to.
destFile File number of destination file to copy to.
xactId The transaction ID.
Returns:
A LFS MSG code.

unsigned int LFS_sendFileDelete unsigned int  latUnit,
unsigned int  dev,
unsigned int  dir,
unsigned int  file,
unsigned int  xactId
 

Send a file delete telecommand.

Send a LFS file delete telecommand (LFSFILEDELETE).

Parameters:
latUnit The LAT CPU to work on.
dev Device number of file to delete.
dir Directory number of file to delete.
file File number of file to delete.
xactId The transaction ID.
Returns:
A LFS MSG code.

unsigned int LFS_sendFileDump unsigned int  latUnit,
unsigned int  dev,
unsigned int  dir,
unsigned int  file,
unsigned int  xactId
 

Send a file dump CTDB telecommand.

Send a LFS file dump CTDB telecommand (LFSFILEDUMPC).

Parameters:
latUnit The LAT CPU to work on.
dev Device number of file to delete.
dir Directory number of file to delete.
file File number of file to delete.
xactId The transaction ID.
Returns:
A LFS MSG code.

unsigned int LFS_sendFileDumpSSR unsigned int  latUnit,
unsigned int  dev,
unsigned int  dir,
unsigned int  file,
unsigned int  xactId
 

Send a file dump SSR telecommand.

Send a LFS file dump SSR telecommand (LFSFILEDUMPS).

Parameters:
latUnit The LAT CPU to work on.
dev Device number of file to delete.
dir Directory number of file to delete.
file File number of file to delete.
xactId The transaction ID.
Returns:
A LFS MSG code.

unsigned int LFS_sendNoop unsigned int  latUnit  ) 
 

Send a LFS/FILE no-op telecommand.

Send a LFS no-op telecommand (LFSNOOP).

Parameters:
latUnit The LAT CPU to work on.
Returns:
A LFS MSG code.

unsigned int LFS_sendSysCheck unsigned int  latUnit,
unsigned int  dev
 

Send a file system check report telecommand.

Send a LFS file system check telecommand (LFSSYSCHECK).

Parameters:
latUnit The LAT CPU to work on.
dev Device number of device to interrogate.
Returns:
A LFS MSG code.

unsigned int LFS_sendSysFormat unsigned int  latUnit,
unsigned int  dev,
unsigned int  offset
 

Send a file system format report telecommand.

Send a LFS file system format telecommand (LFSSYSFORMAT).

Parameters:
latUnit The LAT CPU to work on.
dev Device number of device to interrogate.
offset The offset in bytes of the file system partition into the bank.
Returns:
A LFS MSG code.

unsigned int LFS_sendSysMount unsigned int  latUnit,
unsigned int  dev
 

Send a file system mount report telecommand.

Send a LFS file system mount telecommand (LFSSYSMOUNT).

Parameters:
latUnit The LAT CPU to work on.
dev Device number of device to interrogate.
Returns:
A LFS MSG code.

unsigned int LFS_sendSysRepair unsigned int  latUnit,
unsigned int  dev
 

Send a file system repair telecommand.

Send a LFS file system repair telecommand (LFSSYSREPAIR).

Parameters:
latUnit The LAT CPU to work on.
dev Device number of device to repair.
Returns:
A LFS MSG code.

unsigned int LFS_sendSysStatus unsigned int  latUnit,
unsigned int  dev,
unsigned int  xactId
 

Send a file system status report telecommand.

Send a LFS file system status dump telecommand (LFSSYSSTATUS).

Parameters:
latUnit The LAT CPU to work on.
dev Device number of device to interrogate.
xactId The transaction ID.
Returns:
A LFS MSG code.


Generated on Thu Dec 14 02:10:53 2006 by  doxygen 1.4.4