GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > FBS / V0-2-1
Constituent: fbs_rtos     Tag: sun-gcc
#include "stdlib.h"
#include "string.h"
#include "MDB/MDB_pubdefs.h"
#include "FBS/FBS_pubrtos.h"
#include "FBS/FBS_msgs.h"
Include dependency graph for FBS_path.c:
Defines | |
#define | FILE_ID_TO_PATH_USR(_str, _dev, _dir, _file) snprintf((_str), FILE_PATH_STR_SIZE_USR, "%s/d%03u/f%07u", (_dev), (_dir), (_file)); |
#define | FILE_DEV_NUM_MAX FILE_DEV_NUM_USR1 |
Functions | |
unsigned int | FILE_pathInit (const char *usrName5, const char *usrName6) |
Initialize the file path mapping library. | |
unsigned int | FILE_pathSizeof (void) |
Get the size of a file path string. | |
unsigned int | FILE_pathIdToNum (unsigned int id, unsigned int *dev, unsigned int *dir, unsigned int *file) |
Translates a file ID word into component numbers. | |
unsigned int | FILE_pathNumToId (unsigned int *id, unsigned int dev, unsigned int dir, unsigned int file) |
Translates file component numbers to an ID word. | |
unsigned int | FILE_pathIdToPath (unsigned int id, char *str) |
Translates file ID word to an ASCII path name. | |
unsigned int | FILE_pathPathToId (const char *nam) |
Convert a file name to a file ID (if possible). | |
Variables | |
static char | FILE_devUser5 [FILE_PATH_STR_SIZE_USR] |
static char | FILE_devUser6 [FILE_PATH_STR_SIZE_USR] |
static char * | FILE_devNames [8] |
|
The largest valid device number allowed for mapping functions. |
|
Translates user-defined file component numbers to an ASCII path name.
|
|
Translates a file ID word into component numbers.
|
|
Translates file ID word to an ASCII path name.
|
|
Initialize the file path mapping library.
|
|
Translates file component numbers to an ID word.
|
|
Convert a file name to a file ID (if possible).
|
|
Get the size of a file path string.
|
|
Initial value: { FILE_DEV_NAME_BOOT, FILE_DEV_NAME_RAM, FILE_DEV_NAME_EE0, FILE_DEV_NAME_EE1, FILE_DEV_NAME_TMP, NULL, NULL, NULL, } |
|
Name storage for a user defined "device 5" |
|
Name storage for a user defined "device 6" |