Manual

Embedded Box TKS-G21-QM77B
AppendixE Digital I/O Ports E - 7
IOWriteByte(SIOIndex, 0x01);
IOWriteByte(SIOIndex, 0x55);
IOWriteByte(SIOIndex, 0x55);
}
VOID
SIOExitMBPnPMode(){
IOWriteByte(SIOIndex, 0x02);
IOWriteByte(SIOData, 0x01);
}
VOID
SIOSelectLDN(byte LDN){
IOWriteByte(SIOIndex, 0x07); // SIO LDN Register Offset = 0x07
IOWriteByte(SIOData,
LDN);
}
********************************************************************************
********************************************************************************Boo
lean
IoBitRead(byte Address, byte BitNum){
Byte TmpValue;
TmpValue = IOReadByte(Address);
TmpValue &= (1 << BitNum);
If(TmpValue == 0)
Return 0;
Return 1;
}
Boolean
IoBitSet(byte Address, byte BitNum, Byte Value){
Byte TmpValue;
TmpValue = IOReadByte(Address);
TmpValue &= ~(1 << BitNum);
TmpValue |= (Value & 0x01) << BitNum;
IOWriteByte(Address, TmpValue);
Return 1;
}
VOID
ConfigDioMode(byte PinBit, byte Mode){