3 structures, 1 _led_color_info, 2 _led_blnk_set – IEI Integration AFL2-17A-H61 v1.11 User Manual
Page 46: 2 _led_blnk_s et
AFL2-17A/AB-H61
P a g e 27
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:
R_LEVEL、G_LEVEL、B_LEVEL [int] - Store the Brightness Level information for
R, G and B LED. The brightness level was from 0 to 7.
LED_Info [structure] - The LED IC address was stored in Main_Addr on the I2c
bus, and LED List number are stored in R_LN、G_LN and B_LN parameters:
typedef struct _LED_INFO {
UCHAR
Main_Addr;
//Main address
UCHAR
R_LN;
//Red list number
UCHAR
G_LN;
//Green list number
UCHAR
B_LN;
//Blue list number
} LED_INFO, *PLED_INFO;
Remarks:
This structure has included essential information to set LED IC.
2.4.3.2 _LED_BLNK_S ET
Syntax:
typedef struct _LED_BLNK_SET{
UCHAR
Main_Addr;
//Main address
BYTE
BLNK_DutCyc;
//Duty Cycle
BYTE
BLNK_Freq;
//Blinking Frequency
}LED_BLNK_SET, *PLED_BLNK_SET;
Parameters:
Main_Addr [UCHAR] - IC Address on I2C bus.
BLNK_DutCyc [BYTE] - Duty Cycle of LED blinking. Duty cycle = (0
~ 255)/256 = x%
。
BLNK_Freq [BYTE] -Frequency of LED blinking. 0x00 = (41ms,