GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LFS / V1-12-3 > lfs_scp / mv2304
#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>
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. |
static void cmdFree | ( | ITC_QueueItem * | qitem, | |
unsigned int | status, | |||
void * | prm0, | |||
void * | prm1, | |||
void * | prm2 | |||
) | [static] |
Free memory after sending ITC commands.
qitem | The memory buffer. | |
status | Status of command. | |
prm0 | Completion callback paramter 0. | |
prm1 | Completion callback paramter 1. | |
prm2 | Completion callback paramter 2. |
Referenced by LFS_sendDirCreate(), LFS_sendDirDelete(), LFS_sendDirDump(), LFS_sendFileCopy(), LFS_sendFileDelete(), LFS_sendFileDump(), LFS_sendFileDumpSSR(), LFS_sendNoop(), LFS_sendSysCheck(), LFS_sendSysFormat(), LFS_sendSysMount(), LFS_sendSysRepair(), and LFS_sendSysStatus().
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).
latUnit | The LAT CPU to work on. | |
dev | Device number of directory to delete. | |
dir | Directory number to delete. | |
xactId | The transaction ID. |
References cmdFree(), LFS_APID_CMD, and LFS_dumpDirCreateCmd().
Referenced by LFS_sendDirCreateCli().
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).
latUnit | The LAT CPU to work on. | |
dev | Device number of directory to delete. | |
dir | Directory number to delete. | |
xactId | The transaction ID. |
References cmdFree(), LFS_APID_CMD, and LFS_dumpDirDeleteCmd().
Referenced by LFS_sendDirDeleteCli().
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).
latUnit | The LAT CPU to work on. | |
dev | Device number of directory to dump. | |
dir | Directory number to dump. | |
xactId | The transaction ID. |
References cmdFree(), LFS_APID_CMD, and LFS_dumpDirDumpCmd().
Referenced by LFS_sendDirDumpCli().
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).
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. |
References cmdFree(), LFS_APID_CMD, and LFS_dumpFileCopyCmd().
Referenced by LFS_sendFileCopyCli().
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).
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. |
References cmdFree(), LFS_APID_CMD, and LFS_dumpFileDeleteCmd().
Referenced by LFS_sendFileDeleteCli().
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).
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. |
References cmdFree(), LFS_APID_CMD, and LFS_dumpFileDumpCmd().
Referenced by LFS_sendFileDumpCli().
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).
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. |
References cmdFree(), LFS_APID_CMD, and LFS_dumpFileDumpCmd().
unsigned int LFS_sendNoop | ( | unsigned int | latUnit | ) |
Send a LFS/FILE no-op telecommand.
Send a LFS no-op telecommand (LFSNOOP).
latUnit | The LAT CPU to work on. |
References cmdFree(), LFS_APID_CMD, and LFS_dumpNoopCmd().
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).
latUnit | The LAT CPU to work on. | |
dev | Device number of device to interrogate. |
References cmdFree(), LFS_APID_CMD, and LFS_dumpSysCheckCmd().
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).
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. |
References cmdFree(), LFS_APID_CRIT, and LFS_dumpSysFormatCmd().
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).
latUnit | The LAT CPU to work on. | |
dev | Device number of device to interrogate. |
References cmdFree(), LFS_APID_CRIT, and LFS_dumpSysMountCmd().
unsigned int LFS_sendSysRepair | ( | unsigned int | latUnit, | |
unsigned int | dev | |||
) |
Send a file system repair telecommand.
Send a LFS file system repair telecommand (LFSSYSREPAIR).
latUnit | The LAT CPU to work on. | |
dev | Device number of device to repair. |
References cmdFree(), LFS_APID_CRIT, and LFS_dumpSysRepairCmd().
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).
latUnit | The LAT CPU to work on. | |
dev | Device number of device to interrogate. | |
xactId | The transaction ID. |
References cmdFree(), LFS_APID_CMD, and LFS_dumpSysStatCmd().
Referenced by LFS_sendSysStatusCli().