GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > FILE / V3-8-1

Constituent: file_tools     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

tffs_boot_dump.c File Reference

Utility to dump files from the EEPROM boot partition. More...

#include "vxWorks.h"
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "ioLib.h"
#include "stat.h"
#include "unistd.h"
#include "time.h"
#include "tffs/tffsDrv.h"
#include "tffs/fatlite.h"
#include "Memmap.h"
#include "FILE/file_tools.h"
#include "FILE/FILE_hdr.h"
#include "MSG/MSG_pubdefs.h"
#include "ZLIB/zlib.h"
#include "PBS/WCT.h"

Include dependency graph for tffs_boot_dump.c:


Defines

#define BUF_SIZE   MEMMAP_BHDR_SIZE

Functions

static int copy_file (int drv, const char *fileName, unsigned int offset, void *buf, unsigned int blkSize, const char *desc)
int tffs_boot_dump (int drv, const char *rtosFile, const char *sbcFile0, const char *sbcFile1)

Detailed Description

Utility to dump files from the EEPROM boot partition.

Author:
D.L. Wood

Define Documentation

#define BUF_SIZE   MEMMAP_BHDR_SIZE
 

The size in bytes of the file data transfer buffer.


Function Documentation

static int copy_file int  drv,
const char *  fileName,
unsigned int  offset,
void *  buf,
unsigned int  blkSize,
const char *  desc
[static]
 

Reads file data one block at a time and writes the data into the EEPROM.

Parameters:
drv The TFFS drive number (0 or 1).
fileName The name of the file to dump to.
offset The offset into the boot partition where the file storage starts.
buf A buffer for holding file data (blkSize bytes in size).
blkSize The size in bytes of the blocks for transfers.
desc A brief description of the file.
Return values:
0 Success.
-1 Failure.

int tffs_boot_dump int  drv,
const char *  rtosFile,
const char *  sbcFile0,
const char *  sbcFile1
 

This function dumps one or more files from the EEPROM boot partition. Specify NULL for the file name to skip the dump operation for that particular file.

Parameters:
drv The TFFS drive number (0 or 1).
rtosFile The name of the file to store the RTOS boot partition file.
sbcFile0 The name of the file to store the SBC 0 boot partition file.
sbcFile1 The name of the file to store the SBC 1 boot partition file.
Return values:
0 Success.
-1 Failure.


Generated on Tue Oct 25 22:44:52 2005 by  doxygen 1.4.4