AAEON ACP-1103 User Manual
Page 115

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-7
**************************************************************************
Boolean
SIOBitRead(byte LDN, byte Register, byte BitNum)
{
Byte TmpValue;
SIOEnterMBPnPMode();
SIOSelectLDN(LDN);
IOWriteByte(SIOIndex, Register);
TmpValue = IOReadByte(SIOData);
TmpValue &= (1 << BitNum);
SIOExitMBPnPMode();
If(TmpValue == 0)
Return 0;
Return 1;
}
VOID
ConfigDioMode(byte PinBit, byte Mode)
{
Byte TmpValue;
SIOEnterMBPnPMode();
SIOSelectLDN(DIOLDN);
IOWriteByte(SIOIndex, DirReg);
TmpValue = IOReadByte(SIOData);
TmpValue |= (Mode << PinBit);
IOWriteByte(SIOData, DirReg);
SIOExitMBPnPMode();
}
**************************************************************************