Iei-integration AFL2-17A-H61 v1.11 Instrukcja Użytkownika Strona 46

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 275
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 45
AFL2-17A/AB-H61
Page 27
2.4.3 Structures
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_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,
Przeglądanie stron 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 274 275

Komentarze do niniejszej Instrukcji

Brak uwag