GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > RAD750 / V1-3-0

Constituent: rad750_reboot     Tag: rad750


Interface   Compound List   File List   Compound Members   File Members  

RAD750_reboot.h File Reference

RAD750 application reboot library. More...

#include "BootDiagnostics.h"

Include dependency graph for RAD750_reboot.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Defines

#define RAD750_REBOOT_N_APP_WORDS   BOOT_DIAGS_APP_NUM_WORD

Typedefs

typedef enum _RAD750_Reboot_Type RAD750_Reboot_Type

Enumerations

enum  _RAD750_Reboot_Type {
  RAD750_REBOOT_TYPE_VXWORKS = BOOT_START_VXW,
  RAD750_REBOOT_TYPE_COLD = BOOT_START_COLD,
  RAD750_REBOOT_TYPE_WATCHDOG = BOOT_START_WDOG,
  RAD750_REBOOT_TYPE_PANIC = BOOT_START_PANIC,
  RAD750_REBOOT_TYPE_EXCEPTION = BOOT_START_EXCEPTION,
  RAD750_REBOOT_TYPE_COMMAND = BOOT_START_COMMAND
}

Functions

void RAD750_rebootGo (RAD750_Reboot_Type bootType, const unsigned int *appInfo, unsigned int options)
 Reboot the processor from the application level.

void RAD750_rebootGet (RAD750_Reboot_Type *bootType, unsigned int *appInfo)
 Get the application reboot information.


Detailed Description

RAD750 application reboot library.

Author:
D.L. Wood
This library implements a method for rebooting LAT RAD750 processors from the application level. The functions handle the low-level details of interfacing to the RAD750 boot diagntics region and the primary boot code.

Define Documentation

#define RAD750_REBOOT_N_APP_WORDS   BOOT_DIAGS_APP_NUM_WORD
 

The number of application information words to store or get.


Typedef Documentation

RAD750_Reboot_Type
 

The typedef for _RAD750_Reboot_Type.


Enumeration Type Documentation

enum _RAD750_Reboot_Type
 

Defines the reboot types for the RAD750 processor. This information may be interpreted by the primary boot code.

Enumeration values:
RAD750_REBOOT_TYPE_VXWORKS  VxWorks internal warm reboot
RAD750_REBOOT_TYPE_COLD  Cold boot from power on or hard reset.
RAD750_REBOOT_TYPE_WATCHDOG  Watchdog timeout reboot.
RAD750_REBOOT_TYPE_PANIC  Software critical error warm reboot.
RAD750_REBOOT_TYPE_EXCEPTION  Software exception warm reboot.
RAD750_REBOOT_TYPE_COMMAND  Commanded warm reboot.


Function Documentation

void RAD750_rebootGet RAD750_Reboot_Type bootType,
unsigned int *  appInfo
 

Get the application reboot information.

Returns the information in the boot diagnosics area. This may be used to diagnose the cause of a reboot when applications are starting up. The returned bootType value should be one of the RAD750_Reboot_Type values,indicating the reboot cause. The application reboot information words are copied into the user buffer appInfo. These should be the same values as from the last call to RAD750_rebootGo(), if the reboot was peformed in that manner.

Parameters:
bootType Holds the reboot cause or type code on return.
appInfo A pointer to an array of RAD750_REBOOT_N_APP_WORDS 32-bit words. These words are copied from the area of the boot diagnostics region reserved for application use.

void RAD750_rebootGo RAD750_Reboot_Type  bootType,
const unsigned int *  appInfo,
unsigned int  options
 

Reboot the processor from the application level.

Performs a reboot of the processor. The relevant information is stored in the boot diagnostics area in RAM for the primary boot code and is eventually available after the reboot is complete using RAD750_rebootGet(). The bit BOOT_DIAGS_PBF_APP_RESET is set in the primary boot flags to indicate a reboot from the application level. The bootType parameter is also passed in to the primary boot code. In general, users of this function should only implement types RAD750_REBOOT_TYPE_PANIC or RAD750_REBOOT_TYPE_COMMAND.

Parameters:
bootType The reboot cause or type code.
appInfo A pointer to an array of RAD750_REBOOT_N_APP_WORDS 32-bit words. These words are copied into the area of the boot diagnostics region reserved for application use.
options A set of bit mask options; not currently implemented.


Generated on Fri Jul 30 02:27:05 2004 by doxygen 1.3.3