Asus AAEON BOXER-6615 User Manual page 100

Fanless embedded box pc
Table of Contents

Advertisement

TmpValue = IOReadByte(SIOData);
TmpValue &= ~(1 << BitNum);
TmpValue |= (Value << BitNum);
IOWriteByte(SIOData, TmpValue);
SIOExitMBPnPMode();
}
VOID SIOByteSet(byte LDN, byte Register, byte Value){
SIOEnterMBPnPMode();
SIOSelectLDN(LDN);
IOWriteByte(SIOIndex, Register);
IOWriteByte(SIOData, Value);
SIOExitMBPnPMode();
}
********************************************************************************
********************************************************************************
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;
Appendix C – Digital I/O Information
87

Advertisement

Table of Contents
loading

Table of Contents