2 backlight example, Mopslcdlx software guide – Kontron MOPSlcdLX User Manual
Page 15
KTD-S0006-B
Page 12
Watchdog and Backlight
MOPSlcdLX Software Guide
4.2
Backlight Example
#include
#include
#include
#define JIDA16_INT
0x15
#define BACKL_OUT
0xEA29
#define BACKL_IN
0xEA28
#define JIDA_ID
0x4648
#define BOARD_NUM
1
void WriteBacklight (unsigned char value)
{
union REGS regs;
regs.x.ax = BACKL_OUT;
regs.x.dx = JIDA_ID;
regs.h.cl = BOARD_NUM;
regs.h.ch = value;
int86 (JIDA16_INT, ®s, ®s);
}
unsigned char ReadBacklight (void)
{
union REGS regs;
regs.x.ax = BACKL_IN;
regs.x.dx = JIDA_ID;
regs.h.cl = BOARD_NUM;
int86 (JIDA16_INT, ®s, ®s);
return
regs.h.ch;
}
void main (void)
{
unsigned
char
val;
char str [32];
WriteBacklight
(0x80);
val = ReadBacklight ();
sprintf (str, "\n%02X\n", val);
printf
(str);
}
- CP3003-SA uEFI BIOS (72 pages)
- CP3003-SA (36 pages)
- CP3002 (38 pages)
- CP3002-RC uEFI (64 pages)
- CP-RIO3-05 (42 pages)
- CP3002-RC (30 pages)
- CP342 (52 pages)
- CP930 (46 pages)
- CP932 (52 pages)
- CP346 (72 pages)
- CP384 (66 pages)
- CP383 (74 pages)
- CP382 (58 pages)
- CP381 (60 pages)
- CP372 (64 pages)
- CP371 (60 pages)
- CP-RIO3-04S (38 pages)
- CP390 (36 pages)
- CPS3410 (9 pages)
- CPS3402 (9 pages)
- CPS3105 (9 pages)
- CPS3101 (9 pages)
- CPS3003-SA (19 pages)
- PB-SIO4 (34 pages)
- PB-SIO4A (34 pages)
- PB-DOUT8 (34 pages)
- VMOD-2 (82 pages)
- VSBC-32 (110 pages)
- VM42 (62 pages)
- Bootstrap Loader (24 pages)
- VMP1 with Netbootloader (120 pages)
- VMP1 (106 pages)
- NetBootLoader (86 pages)
- VMP2 (142 pages)
- VMP3 (154 pages)
- CP-RIO6-923 (32 pages)
- CP-RIO6-923-F (32 pages)
- CP-RIO6-001 (28 pages)
- CP-RIO6-001-HD-VGA (46 pages)
- CP-RIO6-M (20 pages)
- CP-RIO6-B (28 pages)
- CP6925 (42 pages)
- CP6002 uEFI BIOS (76 pages)
- CP6002 IPMI (40 pages)
- CP6002 (42 pages)