beautypg.com

Rockwell Automation 2711P Software Development Kit User Manual User Manual

Page 68

background image

Publication 2711P-UM005A-EN-P - March 2007

68 PanelView Plus CE-Specific Extensions to the WinCE API

Return Values:

Remarks:

The watchdog register and some non-volatile codes in CMOS support
the Last Boot Reason. An application can use this function to
determine its startup behavior based on how the system was last
shutdown.

Portability:

This function is specific to PanelView Plus CE and the RAC6182
hardware. Some of the return codes are different between the
platforms.

Requirements:

hm_GetBootReason - Return Codes

Value

Description

BOOT_REASON_

WARM_REQUESTED

The System was reset by hm_RebootBoard(). Possibly
called by the Software Watchdog.

BOOT_REASON_

WARM_INTERNAL

The System was reset by some operating system
operation, such as the boot ROM, or a firmware update
that required a reboot.

BOOT_REASON_

WATCHDOG

The hardware watchdog reset the System. Possible
causes are a software or hardware failure.

BOOT_REASON_

COLD_POWER_CYCLE

The board was powered down and the system was
rebooted after enough time for RAM to discharge.

BOOT_REASON_

UNKNOWN

The System was reset but the reason is unknown.
Possible causes are a software or hardware failure, or
simply power down during boot, or an extremely brief
power outage wherein memory endures.

BOOT_REASON_RESET_

BUTTON_OR_BROWNOUT

The System has been rebooted. The board reset button
was pressed or the power supply dropped below an
acceptable voltage level.

BOOT_REASON_

CPU_TOO_HOT

The CPU temperature was too high and the system was
shutdown by the CPU temperature sensor. Possible
causes are a failure of the heat sink or an extremely
high ambient temperature.

Runs On

Version

Defined In

Link To

PanelView Plus CE

RAC6182

All

HardwareMonitorAPI.h

HardwareMonitor.lib