beautypg.com

D.6.2 _led_blnk_set, D.6.3 _led_blnk_type, D.6.2 – IEI Integration IBS-19A User Manual

Page 150: Led_blnk_set for de, D.6.3, Ibs-19a series medical panel pc page 19

background image

IBS-19A Series Medical Panel PC

Page 19

UCHAR

G_LN;

//Green list number

UCHAR

B_LN;

//Blue list number

} LED_INFO, *PLED_INFO;

Remarks:

The structure includes essential information to set LED IC.

D.6.2 _LED_BLNK_SET

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, frequency

24Hz), 0xFF = (10.73s), Frequency = [(0~255) + 1]/24= x(second), Ex:300ms =

(7 + 1) / 24 ≒ 0.333s

Remarks:

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

Please note that 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.

D.6.3 _LED_BLNK_TYPE

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 is used to turn on/off blinking circuit on the LED IC.