AAEON ACP-1103 User Manual

Page 113

Advertising
background image

M u l t i - T o u c h P a n e l P C

A C P - 1 1 0 3

Appendix E Digital I/O Ports

E-5

// Procedure : AaeonSetOutputLevel

// Input :

//

Example, Set Digital I/O Pin 2 to high level

AaeonSetOutputLevel(

Pin2Bit, PinHigh

);

}
**************************************************************************

**************************************************************************
Boolean

AaeonReadPinStatus(byte PinBit)

{

Boolean PinStatus ;


PinStatus = SIOBitRead(

DIOLDN, StatusReg, PinBit

);

Return PinStatus ;

}
VOID

AaeonSetOutputLevel(byte PinBit, byte Value)

{

ConfigDioMode(

PinBit, OutputPin

);

SIOBitSet(

DIOLDN, OutputReg, PinBit, Value

);

}
**************************************************************************
******

**************************************************************************
******VOID

SIOEnterMBPnPMode()

{

IOWriteByte(SIOIndex, 0x87);

IOWriteByte(SIOIndex, 0x87);

}

VOID

SIOExitMBPnPMode()

{

IOWriteByte(SIOIndex, 0xAA);

}

VOID

SIOSelectLDN(byte LDN)

{

IOWriteByte(SIOIndex, 0x07);

// SIO LDN Register Offset = 0x07

IOWriteByte(SIOData,

LDN

);

}

VOID

SIOBitSet(byte LDN, byte Register, byte BitNum, byte Value)

{

Advertising