User's Guide
II-VI Incorporated
375 Saxonburg Boulevard
Saxonburg, PA 16056
T. 724.352.4455 | F. 724.352.5284 | www.ii-vi.com
6.1.6 LED Control Library Usage
1. User needs to include the header file <led_control.h> of the library into the application source
code.
2. User needs to initialize the library by calling the LEDInit() function.
[Once Init is successful, multiple APIs can be called before deinit.]
3. Call the relevant API from following list in LED Control Interface Table to perform operation on
LED I2C interface.
4. De-initialize the library by calling the LEDDeInit().
5. Link the library while compiling the application by “-lledinterface”.
LED Control Interface Table:
Sr
No.
Command
API
Remarks
1
Init - Custom API
int LEDInit(void)
2
DeInit - Custom API
void LEDDeInit(void)
3
Enable Controller
int LEDEnableController(bool i_b_state)
4
LED Brightness
int LEDBrightness(E_LEDID i_e_ledId, uint8_t
i_ui8_colorRed, uint8_t i_ui8_colorGreen, uint8_t
i_ui8_colorBlue)
typedef enum {
LED_ID_ALM=0x01,
LED_ID_WIFI=0x02,
LED_ID_PWR=0x04,
LED_ID_BAT=0x08,
LED_ID_ALL=0x0F }
E_LEDID;
Valid range for
brightness: 0-128
5
Reset Power Control Logic
int ResetPowerContolLogic(void)
6.1.7 Common Interface Library Usage
1. User needs to include the header file of the library into the application. For Common interface,
It will be <common_i2c_operation.h> file.
2. Call the relevant API from following list in Common Interface Table to perform operation on I2C
interface. This functions expects different arguments. common_i2c_operation.h describes all
functions operations, input & output parameters.