5 lightbar_brightness_single, 3 structures, 1 _led_color_info – IEI Integration AFL2-17A-H61 v1.02 User Manual

Page 43

Advertising
background image

AFL2-17A/AB-H61

P a g e 24

2.4.2.5 LIGHTBAR_Brig h tn e s s _S in g le

Syntax:

PACSM_LIGHTBAR_CTRL STD_BOOLEN LIGHTBAR_Brightness_Single(

HANDLE hDev,

PLED_COLOR_INFO Brightness_Step,

int INFO_Size)

Parameters:

hDev [IN] – enter a device handle

Brightness_Step [IN] – enter data structure array indicators (see Section 2.4.3 for

details)。

INFO_Size [IN] – describe the data structure array size.

Remarks:

Call this function to send information control packets and use the information in the

packets to control LED.

2.4.3 S tru c tu re s

2.4.3.1 _LED_COLOR_INFO

Syntax:

typedef struct _LED_COLOR_INFO{

LED_INFO LED_Info;

int R_LEVEL;

int G_LEVEL;

int B_LEVEL;

}LED_COLOR_INFO, *PLED_COLOR_INFO;

Parameters:

LED_Info – The target LED device address information (see Section 2.4.3.2

_LED_INFO for details):structure

R_LEVEL、G_LEVEL、B_LEVEL – The brightness level of each LED:int

Remarks:

The structure includes a target LED device address which should be an actual LED

address. It is the best if the LED device is composed of tri-color (R, G, B) LED. The

structure also contains the brightness level that each individual LED will show.

There are eight different brightness levels (0~7).

Advertising