Asus AAEON GENE-SKU6 User Manual page 129

3.5” subcompact board
Hide thumbs Also See for AAEON GENE-SKU6:
Table of Contents

Advertisement

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;
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();
}
**************************************************************************
Appendix D – Digital I/O Ports
115

Advertisement

Table of Contents
loading

Table of Contents