Download Print this page

Hitachi HF-BT1000 User Manual page 88

Advertisement

CHAPTER 6 LIBRARY FUNCTIONS
A user application can get and control the hardware status of this equipment by using the RAS
library.
6.1 RAS Library Interface
6.1.1 Overview
This chapter describes the interface to the functions provided by the RAS library.
Table 6-1 shows a list of RAS library functions.
No.
Function name
1
BSSysShut
2
WdtControl
3
MconWriteMessage
4
hfbDiskStat
5
hfbRaidStat
6
SetStCode7seg
7
TurnOff7seg
8
SetMode7seg
Those functions mentioned above are offered in the DLLs (hfbras.dll and ctrl7seg.dll).
The functions offered by hfbras.dll and ctrl7seg.dll can be called from Visual Basic®. When
you call functions number 1 through 3 and 6 through 8 from Visual Basic®, add "_VB" to
the end of the name of each function. Function parameters are the same. For example, when
you call the WdtControl function from Visual Basic®, use the function name
"WdtControl_VB".
The following files are provided as import libraries:
%ProgramFiles%\HFWRAS\lib\hfbras.lib
%ProgramFiles%\HFWRAS\lib\ctrl7seg.lib
When you use a library, link the corresponding import library.
The following files are provided as header files for the libraries:
%ProgramFiles%\HFWRAS\include\hfbras.h
%ProgramFiles%\HFWRAS\include\ctrl7seg.h
When you use a library in C, include the corresponding header file.
Table 6-1 RAS Library Functions
Shuts down the equipment.
Retriggers, gets the status of, and stops the watchdog timer.
Records a specified message (characters) in this equipment's
own log files.
Acquires the status of the drive.
Acquires the RAID status.
Outputs an application status code on the status display digital
LEDs.
Clears an application status code on the status display digital
LEDs.
Configures the status display mode of the status display digital
LEDs.
Use
6-1
6. LIBRARY FUNCTIONS
DLL
hfbras.dll
ctrl7seg.dll

Advertisement

loading