beautypg.com

Return value, Portability, Hm_rebootboard – Rockwell Automation 6182 SDK User Manual

Page 88: Syntax, Remarks

background image

4–48

RAC6182-Specific Extensions to the CE API

Publication 6182-UM002B-EN-P

Parameter

Description

pdwMonitorID

Pointer to an application-allocated DWORD that will
receive a bitmask combination of all monitor sources
currently in the warning state. The following macros
defined in HardwareMonitorAPI.h can be used to
test for specific parameters:

MONITOR_ID_SUPPLY_3V
MONITOR_ID_SUPPLY_5V
MONITOR_ID_SUPPLY_12V
MONITOR_ID_SUPPLY_BATTERY

MONITOR_ID_TEMPERATURE_BOARD

Return Value
Returns TRUE if the function succeeds. Returns FALSE on failure.

Portability
This function is specific to the RAC6182 hardware.

hm_RebootBoard

This function reboots the system. It is prototyped in
HardwareMonitorAPI.h.

Syntax

#include

#include

BOOL hm_RebootBoard (void)

Remarks
This function performs a reboot the RAC6182 board. The reboot reason
code is set, caches are flushed, and a full reboot is performed, including
reset of hardware chips. Applications should use this function instead of
alternatives such as using KernelIoControl to reset the board.

Return Value
Returns FALSE on failure. Function will not return on success as the
board will reset.

Portability
This function is specific to the RAC6182 hardware.

This manual is related to the following products: