
- 65 -
Appendix
Vol +
Vol +
N/A
Vol -
Vol -
N/A
Nurse Call
F17
104
D.5.2. Linux Sample Code
Note: NumLock isn’t enabled upon Linux boot-up. Must make sure NumLock
is active for keypad numbers. Use “apt-get install numlockx” or “yum install
numlockx” to enable NumLock during application starting. See the sample code
hereunder.
#include <sys/io.h>
#include <stdio.h>
#include <linux/input.h>
#define ARBOR_M1858_ECRAM_ADDR 0x0500
#define ARBOR_M1858_ECRAM_ADDR2 0x160A
#define ARBOR_M1858_ECRAM_ADDR3 0x0202
#define ARBOR_M1858_ECRAM_ADDR4 0x0461
//----------------------------------------------------------------------
-----------------------------------------------------
//----------------------------------- ARBOR GPIO ------------------------
------------------------------------------------
unsigned long Process_686C_Command_Write(unsigned long m_ECCMD, unsigned
long m_ECDATA)
{
//---------------------------------------------------------------------
-----
int i,temp;
unsigned long m_OutBuf;
//---------------------------------------------------------------------
-----
m_OutBuf=inb_p(0x6C);
if ( ( m_OutBuf&0x00000003) > 0 )
{
temp=inb_p(0x68);
return 0xFFFFFFFF;
}
outb_p(m_ECCMD, 0x6C);
for ( i=0; i<=4000; i++ )
{
m_OutBuf=inb_p(0x6C);
Summary of Contents for M1858
Page 2: ...2 This page is intentionally left blank...
Page 4: ...ii This page is intentionally left blank...
Page 15: ...1 1 Chapter 1 General Information Chapter 1 General Information...
Page 21: ...7 2 Chapter 2 Getting Started Chapter 2 Getting Started...
Page 22: ...8 Getting Started 2 1 Dimensions 337 502 558 66 47 Unit mm...
Page 43: ...29 3 Chapter 3 Use the Computer Chapter 3 Use the Computer...
Page 47: ...33 Use the Computer 6 Or you can choose Program to set Function Keys as any program s hot key...
Page 53: ...39 Use the Computer 3 Set destination folder...
Page 57: ...43 4 Chapter 4 BIOS Chapter 4 BIOS...
Page 68: ...54 This page is intentionally left blank...
Page 69: ...55 Appendix Appendix...
Page 103: ...89 Appendix Drawing Test Grid...
Page 114: ...100 Appendix This tab provides a general overview of the eGalax driver H 2 8 About Tab...