GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > SBC / V1-3-2

Constituent: sbc_debug     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

SBC_parse.c File Reference

Functions to read and parse the LAT secondary boot code application database. More...

#include "vxWorks.h"
#include "stdlib.h"
#include "string.h"
#include "ioLib.h"
#include "errno.h"
#include "tffs/tffsDrv.h"
#include "Memmap.h"
#include "SBC/SBC_msg.h"
#include "FBS/FBS_pubrtos.h"
#include "ZLIB/zlib.h"
#include "MSG/MSG_macdefs.h"
#include "SBC_private.h"

Include dependency graph for SBC_parse.c:


Defines

#define SBC_DB_HDR_0   'S'
#define SBC_DB_HDR_1   'B'
#define SBC_DB_HDR_2   'C'
#define SBC_DB_VERSION   1
#define SBC_DB_ALIGN_SIZE   4

Functions

static unsigned int SBC_parseRead (unsigned int addr, void *buf, unsigned int size, const BOOT_Diagnostics *diag)
void SBC_parse (BOOT_Diagnostics *diag)

Detailed Description

Functions to read and parse the LAT secondary boot code application database.

Author:
D.L. Wood

Define Documentation

#define SBC_DB_ALIGN_SIZE   4
 

The size in bytes of the SBC database file structure alignment minimum.

#define SBC_DB_HDR_0   'S'
 

The value of the SBC database header word byte 0.

#define SBC_DB_HDR_1   'B'
 

The value of the SBC database header word byte 1.

#define SBC_DB_HDR_2   'C'
 

The value of the SBC database header word byte 2.

#define SBC_DB_VERSION   1
 

The current version of the SBC binary database file.


Function Documentation

void SBC_parse BOOT_Diagnostics *  diag  ) 
 

Reads the application database file. Loads all specified application ELF object modules. Calls all specified application initialization functions.

Parameters:
diag A pointer to the boot diagnostics area.

static unsigned int SBC_parseRead unsigned int  addr,
void *  buf,
unsigned int  size,
const BOOT_Diagnostics *  diag
[static]
 

Read in data from the SBC application database file.

Parameters:
addr The address or offset to read from.
buf The buffer to hold the read data.
size The number of bytes to read.
diag A pointer to the boot diagnostics area.
diag A pointer to the boot diagnostics area.
Returns:
A SBC MSG code


Generated on Thu Apr 20 20:33:03 2006 by  doxygen 1.4.4