6. LIBRARY FUNCTIONS
6-14
(3) Status display mode setup function (SetMode7seg)
<Name>
SetMode7seg - Setting up the status display mode
<Syntax>
#include <ctrl7seg.h>
BOOL SetMode7seg(DWORD dwMode);
<Description>
This function configures the status display mode of the status display digital LEDs.
The parameters of this function are explained below.
dwMode:
This parameter specifies the “status display mode” of the status display digital LEDs.
Table 6-8 shows a list of values that can be specified by dwMode.
Table 6-8 List of Values Specified by dwMode in the SetMode7seg Function
dwMode
Explanation of the action
APPST_MODE (0x00)
Selects the application status display mode.
RASST_MODE (0x01)
Selects the status display mode.
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”.
Содержание HF-BT1000
Страница 1: ...BT 63 0004 01 ...
Страница 2: ...BT 63 0004 01 ...
Страница 15: ...This Page Intentionally Left Blank ...
Страница 79: ...This Page Intentionally Left Blank ...
Страница 103: ...This Page Intentionally Left Blank ...
Страница 111: ...This Page Intentionally Left Blank ...
Страница 127: ...This Page Intentionally Left Blank ...
Страница 129: ...This Page Intentionally Left Blank ...