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_load.c File Reference
Utility to load files into the EEPROM boot partition. More...
#include "vxWorks.h"
#include "stdio.h"
#include "stdlib.h"
#include "ioLib.h"
#include "stat.h"
#include "tffs/tffsDrv.h"
#include "tffs/fatlite.h"
#include "Memmap.h"
#include "ZLIB/zlib.h"
Include dependency graph for tffs_boot_load.c:
|
Defines |
#define | BUF_SIZE 512 |
Functions |
static int | copy_file (int drv, const char *fileName, unsigned int offset, void *buf, unsigned int blkSize, unsigned int maxSize) |
int | tffs_boot_load (int drv, const char *rtosFile, const char *sbcFile0, const char *sbcFile1) |
Detailed Description
Utility to load files into the EEPROM boot partition.
- Author:
- D.L. Wood
Define Documentation
|
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, |
|
|
unsigned int |
maxSize |
|
) |
[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 load. |
| 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. |
| maxSize | The maximum size in bytes reserved in the boot partition for this file. |
- Return values:
-
|
int tffs_boot_load |
( |
int |
drv, |
|
|
const char * |
rtosFile, |
|
|
const char * |
sbcFile0, |
|
|
const char * |
sbcFile1 |
|
) |
|
|
|
This function loads one or more files into the EEPROM boot partition. Specify NULL for the file name to skip the load operation for that particular file.
- Parameters:
-
| drv | The TFFS drive number (0 or 1). |
| rtosFile | The name of the RTOS file to load into the boot partition. |
| sbcFile0 | The name of the SBC file 0 to load into the boot partition. |
| sbcFile1 | The name of the SBC file 1 to load into the boot partition. |
- Return values:
-
|
Generated on Tue Oct 25 22:44:53 2005 by
1.4.4