6. LIBRARY FUNCTIONS
6-12
6.1.7 Status display digital LEDs control functions (SetStCode7seg, TurnOff7seg, SetMode7seg)
(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)
Description
CTRL7SEG_INVALID_PARAMETER
(0x2001)
There is an error in the specified parameters.
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”.
Summary of Contents for HF-BT1000
Page 1: ...BT 63 0004 01 ...
Page 2: ...BT 63 0004 01 ...
Page 15: ...This Page Intentionally Left Blank ...
Page 79: ...This Page Intentionally Left Blank ...
Page 103: ...This Page Intentionally Left Blank ...
Page 111: ...This Page Intentionally Left Blank ...