beautypg.com

3 _led_blnk_set, 3 _led_blnk_s et – IEI Integration AFL2-W21-H61 User Manual

Page 47

background image

AFL2-W21A/AB-H61

P a g e 28

frequency 24Hz)

,0xFF = (10.73s),Frequency = [(0~255) + 1]/24=

x(second)

,Ex:300ms = (7 + 1) / 24 ≒ 0.333s。

Remarks:

This structure has used to store the blinking duty cycle and frequency of LED IC.

Please attention one LED IC only has one duty cycle and frequency to be group

used, It means all LED has the same blink mode on a LED IC.

2.4.3.3 _LED_BLNK_S ET

Syntax:

typedef struct _LED_BLNK_TYPE{

UCHAR

Main_Addr; //Main address

int

BLNK_TYPE;

}LED_BLNK_TYPE, *PLED_BLNK_TYPE;

Parameters:

Main_Addr [UCHAR] – IC Address on I2C bus.

BLNK_Type [int] - Turn on/off blinking circuit on the LED IC. Defined

by:

#define

LED_BLNK_ON

0

#define

LED_BLNK_OFF

1

Remarks:

This structure has used to turn on/off blinking circuit on the LED IC.