Status Display Digital Leds Control Functions (Setstcode7Seg, Turnoff7Seg, Setmode7Seg) - Hitachi HF-W7500 40 Manual

Industrial computer, ras features
Table of Contents

Advertisement

6.1.11 Status display digital LEDs control functions
(1) Application status code display function (SetStCode7seg)
<Name>
SetStCode7seg - Displaying an application status code
<Syntax>
#include <ctrl7seg.h>
BOOL SetStCode7seg(DWORD dwStCode);
<Description>
This function outputs an application status code on the status display digital LEDs. On the
status display digital LEDs, the value specified by this function is displayed in hexadecimal.
The parameters of this function are explained below.
dwStCode:
This parameter specifies an application status code to be displayed on the LEDs. You can
specify a value between 0 and 255. If a value other than the above is specified, this function
terminates with an error. If you call the GetLastError Windows API function, an error code
CTRL7SEG_INVALID_PARAMETER is returned.
<Diagnosis>
If this function completes successfully, the function returns TRUE as a return value. If this
function terminates with an error, the function returns FALSE.
When this function terminates with an error, call the GetLastError Windows API function to
get the error code. Error codes returned by this function on its own are as follows.
Error code (value)
CTRL7SEG_INVALID_PARAMETER
(0x2001)
Other error codes come from the Windows API functions used by this function. For details
about those error codes, refer to the Windows API help.
<Sample program>
We provide a sample program that uses this function in C. For information about the name of
the sample program and where you can find it, see "6.2 Sample Programs".
(SetStCode7seg, TurnOff7seg, SetMode7seg)
Description
There is an error in the specified parameters.
6-27
6. LIBRARY FUNCTIONS

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents