Library Interface Reference; Rasledctl (Lighting Control Of The Ras Indicator Ap Lamp) - Hitachi CE50-10 Instruction Manual

Table of Contents

Advertisement

G. Library Interface Reference
G. Library Interface Reference
This appendix describes the following library interfaces:
• Lighting control of the RAS indicator AP lamp
• DIDO input/output operation
• Forced CPU restart
• USB device connection/disconnection operation
G.1 rasledctl (lighting control of the RAS indicator AP lamp)
This interface allows the user to control lighting of the RAS indicator AP lamp.
(1) Compiling
To compile the program in the development environment, enter as follows:
$ sudo cc -I/hitachi/usr/include -o xxx xxx.c -L/hitachi/lib64 -lras
• xxx: Specify the object file name.
• xxx.c: Specify the source file name.
For details about include files and libraries that are to be specified when compiling the program, see Table 5‒10: Files
for application development by using the unique functions of CE50-10.
(2) Reference
(a) Format
#include <rasif.h>
int
rasledctl(int cmd);
(b) Description
You can control lighting of the RAS indicator AP lamp by issuing this library interface with an argument added.
(c) Arguments
USER_GREEN
Turn on the green RAS indicator AP lamp.
USER_RED
Turn on the red RAS indicator AP lamp.
USER_OFF
Turn off the RAS indicator AP lamp.
USER_INFO
Return the status of the RAS indicator AP lamp.
(d) Return values
-1
Returned when an error occurs. The error number is set for errno.
0
If an argument other than USER_INFO is specified, the return value is 0 if the status is normal.
170

Advertisement

Table of Contents
loading

Table of Contents