RGB Fusion Software Development Kit Guide
RGB Fusion Software Development Kit Guide
Version 1.1.6
Document Release Date: March 11, 2019
1
Table of Contents
Version History ……..................................................4
1 Introduction ……................................................5
2 Prerequisites ……................................................5
3 Motherboard LED Setting Data Reference …….......................6
3.1 LED Setting Data Structure ……...............................6
3.2 wTime & CtrlVal for LED ……...................................9
4 Motherboard LED Control API Reference …….......................17
4.1 The API Use Flow ……........................................17
4.2 APIs ……....................................................18
4.2.1 dllexp_GetSdkVersion ……..................................18
4.2.2 dllexp_InitAPI ……........................................18
4.2.3 dllexp_GetMaxDivision …….................................19
4.2.4 dllexp_GetLedLayout ……...................................19
4.2.5 dllexp_SetLedData …….....................................20
4.2.6 dllexp_Apply ……..........................................21
4.2.7 dllexp_BeatInput ……......................................22
4.2.8 dllexp_IT8295_Reset ……...................................23
4.2.9 dllexp_Get_IT8295_FwVer ……...............................23
4.3 RGB LED Strip Calibration ……...............................24
4.3.1 dllexp_RGBCalibration_Step1 ……...........................26
4.3.2 dllexp_RGBCalibration_Step2……............................26
4.3.3 dllexp_RGBCalibration_Step3 ……...........................27
4.3.4 dllexp_RGBCalibration_Done ……............................27
4.3.5 dllexp_GetCalibrationValue ……............................28
4.4 APIs For Monochrome LED …….................................28
4.4.1 Monochrome LED API Flow ……...............................29
4.4.2 dllexp_MonocLedCtrlSupport ……............................29
4.4.3 dllexp_GetRGBPinType ……..................................30
4.4.4 dllexp_SetMonocLedMode ……................................30
4.4.5 dllexp_RGBPinType1 ……....................................31
5 VGA & Peripherals LED Control API Reference …….................32
5.1 APIs ……....................................................32
5.1.1 dllexp_GvLedInitial……....................................32
5.1.2 dllexp_GvLedGetVersion ……................................34
5.1.3 dllexp_GvLedSet …….......................................34
5.1.4 dllexp_GvLedGetVgaModelName……............................35
2
3
Version History
Version Date Comments
1.1.6 March 11, 2019 1. Fix some driver security issue
1.0.0 September 23, 2017 1. First version of RGB Fusion Software Development.
4
1 Introduction
This guide describes how to use the RGB Fusion Software Development Kit (SDK).
The purpose of this guide is to provide information to third-party companies that
want to control LED lights on motherboards. This guide includes documentation
only for the structures and methods that can be used to control LED lights.
Third-party software can control the LED lights on the motherboards by employing
the methods exported by the components (dll, exe) of this SDK.
2 Prerequisites
These are the prerequisites for using this SDK:
The related components provided by the SDK must have been installed in
the computer.
The components are generated with Microsoft Visual Studio 2012 MFC
Project. Third-party software can be developed using MFC or C#.
Supported MCU:
IT8295
Support Motherboards:
Intel platform: X299/H310/B360/H370/Z370 Series.
AMD platform: AX370/X399/AX470 Series.
5
3 Motherboard LED Setting Data Reference
This chapter introduces the structure used to configure the motherboard LEDs and
explains the meaning and usage of each member in the structure.
Syntax
typedef struct _LEDSETTING {
BYTE Reserve0;
BYTE LedMode;
BYTE MaxBrightness;
BYTE MinBrightness;
DWORD dwColor;
WORD wTime0;
WORD wTime1;
WORD wTime2;
BYTE CtrlVal0;
BYTE CtrlVal1;
} LEDSETTING, *PLEDSETTING
Members
Reserve0
Reserved for future use.
LedMode
LED mode. This member can be one of the following values. Default value is
0.
6
Value Meaning
0 Null
1 Pulse
2 Music
3 Color Cycle
4 Static
5 Flash
8 Transition
10 Digital Mode A
11 Digital Mode B
12 Digital Mode C
13 Digital Mode D
14 Digital Mode E
15 Digital Mode F
16 Digital Mode G
17 Digital Mode H
18 Digital Mode I
MaxBrightness
LED maximum brightness. The valid values for this member are 0 through 100.
Default value is 100.
MinBrightness
LED minimum brightness. The valid values for this member are 0 through 100.
Default value is 0.
dwColor
WW, RR, GG, BB have a data length of one byte respectively. Configurable values
are 0x0 ~ 0xFF. WW represents white light. Currently, white light is supported
only when using an external LED strip. WW=0 is to turn off the white light
while WW=0xFF is to turn on the white light. At present there is no function
to turn off the LEDs. To turn off the LEDs, you can set LedMode to Static and
set this member to 0.
wTime0
LED Timing 0, in millisecond. The valid values for this member are 0 through
65535. Default value is 0. This member represents time parameters with
different functions based on the selected LED Mode. This part will be discussed
in Chapter 3.2.
7
wTime1
LED Timing 1, in millisecond. The valid values for this member are 0 through
65535. Default value is 0. This member represents time parameters with
different functions based on the selected LED Mode. This part will be discussed
in Chapter 3.2.
wTime2
LED Timing 2, in millisecond. The valid values for this member are 0 through
65535. Default value is 0. This member represents time parameters with
different functions based on the selected LED Mode. This part will be discussed
in Chapter 3.2.
CtrlVal0
LED Control Value 0. The valid values for this member are 0 through 255. Default
value is 0. This member represents configuration parameters with different
functions based on the selected LED Mode. This part will be discussed in
Chapter 3.2.
CtrlVal1
LED Control Value 1. The valid values for this member are 0 through 255. Default
value is 0. This member represents configuration parameters with different
functions based on the selected LED Mode. This part will be discussed in
Chapter 3.2.
Remark
1. The LedMode value start form 10 is digital LED mode that is for digital
LED strip used only. Currently there are two kinds of digital LED strips
on the motherboard. One is the LED strip integrated in the audio shield
for some high-end motherboards supporting the RGB fusion; the other is
the digital LED strip purchased by end-user and is connected to the
motherboard through the D_LED header.
2. Not all above-mentioned digital LED modes are supported by the two kinds
of LED strips. The table below lists their supported modes:
8
3.2 wTime & CtrlVal for LED Mode
This section explains the roles of the wTime and CtrlVal parameters in each LED
Mode using tables. If the “Value” member in the table shows "X", it means this
parameter can be ignored in this LED mode. For all LED modes, the unit for the
time parameters wTime0 ~ wTime2 is millisecond.
Pulse Mode
Name Value Description
LedMode 1 Pulse Mode
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor R/G/B Set a color RGB code
wTime0 0-65535 Lighting on time of pulsing
wTime1 0-65535 Lighting off time of pulsing
wTime2 X
CtrlVal0 X
CtrlVal1 X
Remark
N/A.
Music Mode
Name Value Description
LedMode 2 Music Mode
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor R/G/B Set a color RGB code
wTime0 X
wTime1 X
wTime2 X
CtrlVal0 X
CtrlVal1 X
Remark
Music mode is driven by software. The MCU will enter a state where it can
only be passively triggered by software after switching to Music mode. In
9
this moment, all of the LEDs are turned off. Programmers have to capture
the rhythm of music and then set the brightness of the LEDs to change with
the music beats through the dllexp_BeatInput (see 4.2.7) API.
Remark
N/A.
Static Mode
Name Value Description
LedMode 4 Static Mode
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor R/G/B Set a color RGB code
wTime0 X
wTime1 X
wTime2 X
CtrlVal0 X
CtrlVal1 X
Remark
N/A.
10
Flash Mode
Name Value Description
LedMode 5 Flash Mode
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor R/G/B Set a color RGB code
wTime0 0-65535 Flash on/off time
wTime1 0-65535 Flash interval (Flash off/on time =
Flash interval – flash on/off time)
wTime2 0-65535 Flash cycle time
CtrlVal0 1-255 Flash “N”times
CtrlVal1 X
Remark
1. If MCU firmware version < 0x00020001, then wTime0 = Flash On Time
2. If 0x00020001 >= MCU firmware version < 0x00030000, then
wTime0 = Flash Off Time.
3. Please note that in Flash Mode, wTime0, wTime1, wTime2 must meet the
following conditions, otherwise Flash Mode will be unable to display
correctly.
wTime0 < wTime1 <= wTime2
If CtrlVal0 > 1, then (CtrlVal0 * wTime1) <= wTime2
Transition Mode
Name Value Description
LedMode 9 Transition Mode
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor R/G/B Set a color RGB code
wTime0 0-65535 Transition time
wTime1 X
wTime2 X
CtrlVal0 X
CtrlVal1 X
Remark
11
The effect of this mode is to gradually convert the color from the current
color to the dwColor. The Transition time parameter can be used to set the
color transition time, but there will be some time difference and may not
be 100% accurate.
Digital Mode A
Name Value Description
LedMode 10 Digital Mode A
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor X
wTime0 0-65535 Speed
wTime1 X
wTime2 X
CtrlVal0 0/1 Wave Direction
0 = right to left
1 = left to right
CtrlVal1 X
Remark
N/A.
Digital Mode B
Name Value Description
LedMode 11 Digital Mode B
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor R/G/B Set a color RGB code
wTime0 0-65535 Speed
wTime1 X
wTime2 X
CtrlVal0 X
CtrlVal1 X
Remark
N/A.
12
Digital Mode C
Name Value Description
LedMode 12 Digital Mode C
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor R/G/B Set a color RGB code
wTime0 0-65535 Forward step time interval
wTime1 X
wTime2 X
CtrlVal0 0-100 Brightness off speed
CtrlVal1 X
Remark
N/A.
Digital Mode D
Name Value Description
LedMode 13 Digital Mode D
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor R/G/B Set a color RGB code
wTime0 0-65535 Speed
wTime1 X
wTime2 X
CtrlVal0 X
CtrlVal1 X
Remark
N/A.
13
Digital Mode E
Name Value Description
LedMode 14 Digital Mode E
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor R/G/B Set a color RGB code
wTime0 0-65535 Cycle time
wTime1 X
wTime2 X
CtrlVal0 X
CtrlVal1 X
Remark
N/A.
Digital Mode F
Name Value Description
LedMode 15 Digital Mode F
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor X
wTime0 0-65535 Speed
wTime1 X
wTime2 X
CtrlVal0 X
CtrlVal1 X
Remark
N/A.
14
Digital Mode G
Name Value Description
LedMode 16 Digital Mode G
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor R/G/B Set a color RGB code
wTime0 0-65535 Forward step time interval
wTime1 X
wTime2 X
CtrlVal0 0-100 Brightness off speed
CtrlVal1 X
Remark
N/A.
Digital Mode H
Name Value Description
LedMode 17 Digital Mode H
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor R/G/B if no color is set, it will
automatically change color
wTime0 0-65535 Speed
wTime1 X
wTime2 X
CtrlVal0 X
CtrlVal1 X
Remark
N/A.
15
Digital Mode I
Name Value Description
LedMode 18 Digital Mode I
MaxBrightness 0-100 (%)
MinBrightness 0-100 (%)
dwColor R/G/B if no color is set, it will
automatically change color
wTime0 0-65535 Speed
wTime1 X
wTime2 X
CtrlVal0 X
CtrlVal1 X
Remark
N/A.
16
4 Motherboard LED Control API Reference
The API allows the application to control the LEDs on the motherboard and the
LED strip connected to the motherboard. The current LED arrangement on the
motherboard (including the LED strip connected to the motherboard) can be 8 or
9-zone at maximum based on the MCU Firmware version. However, not all motherboards
have the maximum 8 or 9-zone LED arrangement. When setting the data, you must
set to the maximum number of LED zones the FW can support. The APIs provided by
this SDK allow for individually setting different LED effects for each zone.
Start
Call dllexp_InitAPI()
Call dllexp_Apply(iApplyBit)
End
17
4.2 APIs
This section describes the APIs export from GLedApi.dll that is used to control
the LEDs on the motherboard.
4.2.1 dllexp_GetSdkVersion
This method returns the revision number of the RGB Fusion SDK currently being
used.
Syntax
DWORD dllexp_GetSdkVersion(LPTSTR lpBuf, int bufSize)
Parameters
Name Type Description
lpBuf Output Pointer to a buffer that receives the SDK revision
string. The return string is Unicode encode.
bufSize Input Size, in characters, of the buffer indicated by lpBuf.
This value should not be less than 16.
Return Values
Value Description
ERROR_SUCCESS(0x0) Success
ERROR_INSUFFICIENT_BUFFER(0x7A) The data area passed to a function call is
too small
Remarks
N/A.
4.2.2 dllexp_InitAPI
This method initializes the SDK library on the current application.
Syntax
DWORD dllexp_InitAPI(void)
Parameters
N/A
18
Return Values
Value Description
ERROR_SUCCESS(0x0) Success
ERROR_INVALID_OPERATION(0x10DD) Fail
Remarks
You need to initialize the SDK library before you call any of the library
functions except for dllexp_GetSdkVersion.
4.2.3 dllexp_GetMaxDivision
This method returns the maximum number of LED zones that the MCU currently
supports.
Syntax
int dllexp_GetMaxDivision(void)
Parameters
N/A.
Return Values
Returns the maximum number of LED zones that the MCU currently supports if success;
otherwise -1 is returned.
Remarks
N/A.
4.2.4 dllexp_GetLedLayout
This method returns the current LED layout on the motherboard.
Syntax
DWORD dllexp_GetLedLayout(PBYTE bytArray, int arySize)
19
Parameters
Name Type Description
bytArray Output Pointer to a buffer that receives the LED layout on
motherboard. The values of the elements in the array
are as follows:
Value Meaning
0(NA) No implement LED
Return Values
Value Description
ERROR_SUCCESS(0x0) Success.
ERROR_INVALID_OPERATION(0x10DD) Fail.
ERROR_INSUFFICIENT_BUFFER(0x7A) The data area passed to a function call is
too small.
ERROR_NOT_SUPPORTED(0x32) The request is not supported.
Remarks
If the return value is ERROR_INVALID_OPERATION, check to see if arySize is less
than the return value of dllexp_GetMaxDivision. If the return value is
ERROR_NOT_SUPPORTED, it means this SDK does not support the current LED layout
on the motherboard.
4.2.5 dllexp_SetLedData
This method writes settings into the MCU. The settings will not apply until
Dllexp_Apply (see 4.2.6) is called to complete the whole setup process.
Syntax
DWORD dllexp_SetLedData(PBYTE bytArray, int arySize)
20
Parameters
Name Type Description
bytArray Input Pointer to a byte array converted from the LEDSETTING
structure array.
arySize Input Size, in bytes, of the buffer indicated by bytArray.
Return Values
Value Description
ERROR_SUCCESS(0x0) Success
ERROR_INVALID_OPERATION(0x10DD) Fail
Remarks
N/A.
4.2.6 dllexp_Apply
This method applies settings to the MCU and the LEDs will begin to function
according to the configured mode.
Syntax
DWORD dllexp_Apply(int iApplyBit)
21
Parameters
Name Type Description
iApplyBit Input This value can be used to control which LED zone to
apply the new settings. You can apply the settings to
all LED zones or to only a few zones. The maximum number
of currently supported LED zone can be obtained by
calling the dllexp_GetMaxDivision API (see 4.2.3).
The corresponding values of each zone are as follows:
1: Apply to LED division 0
2: Apply to LED division 1
4: Apply to LED division 2
8: Apply to LED division 3
16: Apply to LED division 4
32: Apply to LED division 5
64: Apply to LED division 6
128: Apply to LED division 7
256: Apply to LED division 8
-1: Apply to all division
Example: To change division 0, division 2,
division 4 only, then iApplyBit = 1 + 4 + 16 = 21
Return Values
Value Description
ERROR_SUCCESS(0x0) Success
ERROR_INVALID_OPERATION(0x10DD) Fail
Remarks
N/A.
4.2.7 dllexp_BeatInput
This API begins to function after the MCU enters Music mode. Programmers need
to retrieve the music signals and use this API to set the LEDs to turn on or
off with music signals.
Syntax
DWORD dllexp_BeatInput(int iCtrl)
22
Parameters
Name Type Description
iCtrl Input 0:LED turn off, 1:LED turn on
Return Values
Value Description
ERROR_SUCCESS(0x0) Success
ERROR_INVALID_OPERATION(0x10DD) Fail
Remarks
N/A.
4.2.8 dllexp_IT8295_Reset
Calling this API is equivalent to sending the last commands (including mode, speed,
brightness) to the MCU again.
Syntax
DWORD dllexp_IT8295_Reset(void)
Parameters
N/A.
Return Values
Value Description
ERROR_SUCCESS(0x0) Success
ERROR_INVALID_OPERATION(0x10DD) Fail
Remarks
N/A.
4.2.9 dllexp_Get_IT8295_FwVer
Call this API to get the MCU firmware version.
Syntax
DWORD dllexp_Get_IT8295_FwVer(PBYTE bytArray, int arySize)
23
Parameters
Name Type Description
bytArray Input Pointer to a byte array that receives MCU firmware
version.
arySize Input Size, in bytes, of the buffer indicated by bytArray.
This value should not be less than 4.
Return Values
Value Description
ERROR_SUCCESS(0x0) Success
ERROR_INVALID_OPERATION(0x10DD) Fail
ERROR_INSUFFICIENT_BUFFER(0x7A) The data area passed to a function call
is too small.
Remarks
Example: if the return buffer is bytArray[] = {0x11, 0x01, 0x01, 0x0}, then
the Firmware version is 0.1.1.17.
24
Start
Call dllexp_RGBValibration_Step1(index)
Call dllexp_RGBValibration_Step2(void)
Call dllexp_RGBValibration_Step3(void)
Call dllexp_RGBCalibration_Done(void)
End
25
4.3.1 dllexp_RGBCalibration_Step1
Calls this API to start calibrating the RGB LED strip. This function will
temporarily turn off the LEDs other than the calibrated LED zone and will send
0xFF0000 (0xRRGGBB) RGB value to the calibrated LED zone. If the red pin of the
LED strip corresponds to that of the header on the motherboard, the LED strip will
light red.
Syntax
DWORD dllexp_RGBCalibration_Step1(int cal_div)
Parameters
The cal_div value is the index used to correct the location of LED strip on the
motherboard, that is, the previously-mentioned element index value used to
control the LED strip in the LEDSETTING structure array. According to the present
motherboard layout, the LED strip must be located after area 4, meaning
programmers can start testing which element in the array the LED strip to be
corrected is from LEDSETTING[4].
Return Values
Value Description
ERROR_SUCCESS(0x0) Success
ERROR_INVALID_OPERATION(0x10DD) Fail
Remarks
N/A.
4.3.2 dllexp_RGBCalibration_Step2
Call the API to proceed to the step 2 of calibrating the RGB LED strip. This function
will send 0x00FF00(0xRRGGBB) RGB value to the calibrated LED zone. If the green
pin of the LED strip corresponds to that of the header on the motherboard, the
LED strip will light green.
Syntax
void dllexp_RGBCalibration_Step2(void)
Parameters
26
N/A.
Return Values
N/A.
Remarks
N/A.
4.3.3 dllexp_RGBCalibration_Step3
Call the API to proceed to the step 3 of calibrating the RGB LED strip. This function
will send 0x0000FF(0xRRGGBB) RGB value to the calibrated LED zone. If the blue
pin of the LED strip corresponds to that of the header on the motherboard, the
LED strip will light blue.
Syntax
void dllexp_RGBCalibration_Step3(void)
Parameters
N/A.
Return Values
N/A.
Remarks
N/A.
4.3.4 dllexp_RGBCalibration_Done
Call the API to finish calibrating the RGB LED strip. This function will save the
correction result to the MCU and restore all LEDs to the state before the
calibration.
Syntax
DWORD dllexp_RGBCalibration_Done(void)
Parameters
N/A.
Return Values
Value Description
ERROR_SUCCESS(0x0) Success
27
ERROR_INVALID_OPERATION(0x10DD) Fail
Remarks
N/A.
4.3.5 dllexp_GetCalibrationValue
Call this API to input the actual LED strip color in step 1~3 of the calibration.
Syntax
void dllexp_GetCalibrationValue(int iStep, int color_see)
Parameters
Name Type Description
iStep Input Available values are 1 ~ 3, representing step 1
to step 3.
Color_see Input The color you see on the LED strip
1: Red
2: Green
3: Blue
Return Values
N/A.
Remarks
N/A.
28
4.4.1 Monochrome LED APIs Flow
Start
Call dllexp_InitAPI()
Call dllexp_MonocLedCtrlSupport()
Yes
Call dllexp_GetRGBPinType()
dllexp_RGBPin_Type(x) to Set
End
4.4.2 dllexp_MonocLedCtrlSupport
Call the API to verify if monochrome LED control is supported. If the return
value is greater than 0, it means monochrome LED control is supported. Moreover,
you can see which monochrome modes are supported by analyzing the return value.
Syntax
int dllexp_MonocLedCtrlSupport(void)
Parameters
N/A.
29
Return Values
Value Description
0 Not support
1 Support static mode
2 Support pulse mode
4 Support music mode
The return value can be generated by combining the three values, 1, 2, 4. For
example, if the return value is 7, it means the three modes above are supported.
Remarks
To achieve monochrome LED music mode, programmers also have to capture music
signals and then call dllexp_BeatInput(see 4.2.7).
4.4.3 dllexp_GetRGBPinType
Call the API to decide which function to call to control the LED strip. If the
the return value is x, it means you need to call the dllexp_RGBPin_Type (x)
function to control the LED strip.
Syntax
int dllexp_GetRGBPinType(void)
Parameters
N/A.
Return Values
Value Description
0 Not support
1 Call dllexp_RGBPin_Type1 to control RGB LED Strip
Remarks
N/A.
4.4.4 dllexp_SetMonocLedMode
Call the API to control the LED modes of a motherboard with monochrome LEDs.
Currently supported modes are Off mode, Static mode, Pulse Mode, and Music mode.
30
Syntax
BOOL dllexp_SetMonocLedMode(int mnoLedMode)
Parameters
Name Type Description
mnoLedMode Input Available value are as follows:
0: Off mode
1: Static mode
2: Pulse mode
3: Music mode
Return Values
Return TRUE, if success else return FALSE.
Remarks
N/A.
4.4.5 dllexp_RGBPin_Type1
Call the API to control the RGB LED strip color of a motherboard with monochrome
LEDs. The three parameters respectively control the three pins of the RGB LED strip
header on the motherboard. Accepted values are 0 (off) and 1 (on).
Syntax
DWORD dllexp_RGBPin_Type1(int pin1, int pin2, int pin3)
Parameters
Name Type Description
pin1/pin2/pin3 Input Available values are as follows:
0: R/G/B light turn off
1: R/G/B light turn on
Return Values
Value Description
ERROR_SUCCESS(0x0) Success
ERROR_INVALID_OPERATION(0x10DD) Fail
Remarks
As the pin layout of the RGB LED strips on the market may not be exactly the
31
same, programmers have to write their own RGB correction codes. The purpose of
the correction codes is to know how pins 1, 2, 3 of the motherboard LED strip
5.1 APIs
This section describes the APIs export from GvLedLib.dll that is used to control
the LEDs on the VGA & peripherals.
5.1.1 dllexp_GvLedInitial
This method initializes the SDK library on the current application.
Syntax
DWORD dllexp_GvLedInitial(int &iDeviceCount, int *iDeviceIdArray)
32
Parameters
Name Type Description
iDeviceCount Output The count connected to PC that LED can be
controlled.
iDeviceIdArray Output Pointer to a buffer that receives the LED
connected to PC. The values of the elements in
the array are as follows:
Value Meaning
0x1001 VGA
Return Values
Value Description
GV_LED_API_OK (0x0) Success
Remarks
You need to initialize the SDK library before you call any of the library
functions.
33
5.1.2 dllexp_GvLedGetVersion
This method returns the revision number of the GvLedLib.dllcurrently being used.
Syntax
DWORD dllexp_GetSdkVersion(int &iMajorVersion, int &iMinorVersion)
Parameters
Name Type Description
iMajorVersion Output Major version of GvLedLib.dll.
iMinorVersion Output Minor version of GvLedLib.dll.
Return Values
Value Description
GV_LED_API_OK (0x0) Success
Remarks
N/A.
5.1.3 dllexp_GvLedSet
This method writes LED settings into the devicies.
Syntax
DWORD dllexp_GvSetLed(int nIndex, GVLED_CFG config)
Parameters
Name Type Description
nIndex Input The device id want to apply the LED setting, reference
6.1.1 iDeviceIdArray setting
-1 means all devicies
Config Input The LED effect setting, please reference 5.1 LED
Setting Data structure.
34
Return Values
Value Description
GV_LED_API_OK (0x0) Success
GV_LED_API_DEVICE_NOT_AVAILABLE (0x2) Fail, the device is not
available.
GV_LED_API_ERROR_PARAM(3) Fail, parameter error.
Remarks
N/A.
5.1.4 dllexp_GvLedGetVgaModelName
This method gets the VGA model name if VGA is supported LED control.
Syntax
DWORD dllexp_GvLedGetVgaModelName(byte *pVgaModelName)
Parameters
Name Type Description
pVgaModelName Output The character array that contains the VGA model name.
Return Values
Value Description
GV_LED_API_OK (0x0) Success
Remarks
N/A.
35